Working configuration to build products, plug-ins and features together [message #1841086] |
Mon, 03 May 2021 08:51  |
Eclipse User |
|
|
|
The documentation of JustJ says that products that use a JustJ JRE feature cannot build together with features and plug-ins using Maven/Tycho.
Therefore I want to report that since Tycho 2.3.0 the following configuration in the pom.xml works perfectly fine in the mentioned scenario:
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<executionEnvironment>org.eclipse.justj.openjdk.hotspot.jre.full-11</executionEnvironment>
</configuration>
</plugin>
Note that it is important to specify the executionEnvironment.
Specifying the executionEnvironmentDefault is not sufficient since that value is overwritten with the Bundle-RequiredExecutionEnvironment specified in a bundle's MANIFEST.MF.
For details in Tycho see org.eclipse.tycho.core.ee.ExecutionEnvironmentConfigurationImpl and org.eclipse.tycho.core.osgitools.AbstractTychoProject#readExecutionEnvironmentConfiguration(ReactorProject, MavenSession,ExecutionEnvironmentConfiguration)
I've verified only the mentioned configuration, but from what I've seen in Tycho's sources I expect building only products and features to work too.
If nothing else speaks against it I suggest to update the JustJ documentation and example product to primary use the mentioned configuration and keep the other ones only for those that cannot use Tycho 2.3.0.
|
|
|
|
Powered by
FUDForum. Page generated in 0.94969 seconds