Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Setting target-platform-configuration <environments> causes tycho-surefire-plugin failure

Hi,

I followed the advise in [1] to get rid of this warning:
 > [WARNING] No explicit target runtime environment configuration. Build
is platform dependent.

Unfortunately, adding <environments> to my target-platform-configuration
causes a failure further down the line when running my tests under OS X:

> [INFO] --- tycho-surefire-plugin:0.24.0:test (default-test) @ org.eclipse.recommenders.completion.rcp.tests ---
> [INFO] {osgi.os=win32, osgi.ws=win32, org.eclipse.update.install.features=true, osgi.arch=x86}
> [ERROR] Cannot resolve project dependencies:
> [ERROR]   You requested to install 'bundle org.eclipse.jdt.launching.macosx 0.0.0' but it could not be found
> [ERROR] 
> [ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.

FYI, the tests' pom.xml contains the following:

>  <build>
>   <plugins>
>    <plugin>
>     <groupId>org.eclipse.tycho</groupId>
>     <artifactId>tycho-surefire-plugin</artifactId>
>     <configuration>
>      <useUIHarness>true</useUIHarness>
>      <dependencies>
>       <dependency>
>        <artifactId>org.eclipse.jdt.core</artifactId>
>        <type>eclipse-plugin</type>
>       </dependency>
>       <dependency>
>        <artifactId>org.eclipse.jdt.launching</artifactId>
>        <type>eclipse-plugin</type>
>       </dependency>
>       <dependency>
>        <artifactId>org.eclipse.e4.rcp</artifactId>
>        <type>eclipse-feature</type>
>       </dependency>
>      </dependencies>
>     </configuration>
>    </plugin>
>   </plugins>
>  </build>
> 
>  <profiles>
>   <profile>
>    <id>mac</id>
>    <activation>
>     <os>
>      <family>mac</family>
>     </os>
>    </activation>
>    <build>
>     <plugins>
>      <plugin>
>       <groupId>org.eclipse.tycho</groupId>
>       <artifactId>tycho-surefire-plugin</artifactId>
>       <configuration>
>        <dependencies combine.children="append">
>         <dependency>
>          <artifactId>org.eclipse.jdt.launching.macosx</artifactId>
>          <type>eclipse-plugin</type>
>         </dependency>
>        </dependencies>
>       </configuration>
>      </plugin>
>     </plugins>
>    </build>
>   </profile>
>  </profiles>

Can someone please explain to me what's going on here? Why is Tycho
using the win32 environment (in which org.eclipse.jdt.launching.macosx
of course cannot be found)?

> [INFO] --- tycho-surefire-plugin:0.24.0:test (default-test) @ org.eclipse.recommenders.completion.rcp.tests ---
> [INFO] {osgi.os=win32, osgi.ws=win32, org.eclipse.update.install.features=true, osgi.arch=x86}

Best wishes,

Andreas

[1] <http://wiki.eclipse.org/Tycho/Reference_Card#Exemplary_parent_POM>

-- 
Codetrails GmbH
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Phone: +49-6151-276-7092
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940


Back to the top