[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[tycho-user] http not working when using tycho-eclipserun-plugin
|
I'm starting the "B3 Aggregator" application via Tycho's eclipserun plugin. This application is trying to access some URLs via http as specified in a configuration file. During the build Tycho comes up with the following command line
cmd.exe /X /C ""C:\Program Files\Java\jre6\bin\java.exe" -jar C:\Users\d099999\.m2\repository\p2\osgi\bundle\org.eclipse.equinox.launcher\1.3.0.v20120522-1813\org.eclipse.equinox.launcher-1.3.0.v20120522-1813.jar -install C:\eclipse\eclipse4\workspace\B3fromTycho\feature\target\work -configuration C:\eclipse\eclipse4\workspace\B3fromTycho\feature\target\work\configuration -application org.eclipse.b3.cli.headless aggregate --buildModel test.b3aggr"
which lets B3 Aggregator fail with
Unable to load repository http://nexus ...
Unable to load repository http://nexus ...
Unable to load repository p2:http://nexus ...
Unable to load repository p2:http://nexus ...
Build failed! Exception was org.eclipse.core.runtime.CoreException: Not all repositories could be loaded (see log for details)
Not all repositories could be loaded (see log for details)
Using my "own" command line from a dos shell works fine if I'm using the equinox launcher from my local Eclipse installation
java.exe -jar C:\eclipse\eclipse4\eclipse\plugins\org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar -application org.eclipse.b3.cli.headless aggregate --buildModel test.b3aggr
Any idea what to do to get the Tycho command line working for http? Do I need additional dependencies in the eclipserun-plugin configuration? Here is my pom-snippet:
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<appArgLine>-application org.eclipse.b3.cli.headless aggregate --buildModel test.b3aggr</appArgLine>
<dependencies>
<dependency>
<artifactId>org.eclipse.b3.cli</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.b3.aggregator.engine</artifactId>
<type>eclipse-plugin</type>
</dependency>
</dependencies>
</configuration>
<executions>
<execution>
<goals>
<goal>eclipse-run</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
</plugin>
Thanks,
Klaus