Calling generator from CLI in offline mode does not work
Closed this issue · 0 comments
UdoW commented
I call the generator via a Maven script with the Tycho Eclipse Run plug-in like this:
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
<version>2.7.2</version>
<configuration>
<repositories>
<repository>
<id>2022-03</id>
<layout>p2</layout>
<url>file:///${rootDir}/p2/platform/2022-03/target/repository</url>
</repository>
<repository>
<id>targetplatform</id>
<layout>p2</layout>
<url>file:///${rootDir}/p2/cbi/target/repository</url>
</repository>
</repositories>
<applicationsArgs>
<args>-consoleLog</args>
<args>-application</args>
<args>org.eclipse.cbi.targetplatform.tpd.converter</args>
<args>mytarget.targetplatform</args>
</applicationsArgs>
<executionEnvironment>JavaSE-11</executionEnvironment>
<!-- Set dependencies to launch the application -->
<dependencies>
<dependency>
<artifactId>org.eclipse.cbi.targetplatform.feature</artifactId>
<type>eclipse-feature</type>
</dependency>
<dependency>
<artifactId>org.eclipse.equinox.p2.sdk</artifactId>
<type>eclipse-feature</type>
</dependency>
<dependency>
<artifactId>org.slf4j.api</artifactId>
<type>eclipse-plugin</type>
</dependency>
<dependency>
<artifactId>org.eclipse.sdk</artifactId>
<type>eclipse-feature</type>
</dependency>
</dependencies>
</configuration>
<executions>
<execution>
<goals>
<goal>eclipse-run</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
where rootDir
contains mirrors of p2 repositories.
When I try to run it in Maven offline mode with option -o
then the TPD generator does find all locally stored artifacts from Maven central but it does not find the locally stored artifacts from other remote (company internal) repositories.
How should I configure the call of the TPD generator to use the local maven repository only?
The file mytarget.targetplatform
uses the
maven ... {
}
syntax to integrate Maven artifacts into the target platform of the target feature.