Skip to content

Commit

Permalink
Remove publish-osgi-ee from the default life-cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Sep 12, 2024
1 parent e972652 commit 1aac0ff
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 2 deletions.
27 changes: 26 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ If `addOnlyProviding` is `true` repositories that don't provide any filtered uni
</repositoryReferenceFilter>
</configuration>
</plugin>

```

### Remove support for deployableFeature option
Expand Down Expand Up @@ -349,6 +348,32 @@ backports:
- api tools fixes
- new `tycho-eclipse-plugin`

### OSGi Execution Environment Units are no longer published by default

Previously Tycho has published so called 'Execution Environment Units' that represents the packages of the used Java version,
but this has the drawback that these units represents the packages used during the build and not represent what is actually available at runtime.
It could therefore happen that something is installed by P2 that later can't be resolved, especially since modular VMs can have any set of packages,
additional packages are exposed by the framework and so on.

Because of this there are some initiative to get rid of these generated units and let them be generated at runtime based on the actual VM present,
if one requires previous behavior (e.g. to support older Eclipse / P2 / PDE / ...) it can be enabled as follows:

```xml
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-publisher-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>publish-osgi-ee</id>
<goals>
<goal>publish-osgi-ee</goal>
</goals>
</execution>
</executions>
</plugin>
```

## 4.0.4

Backports:
Expand Down
13 changes: 13 additions & 0 deletions tycho-its/projects/eeProfile.java11/repository/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@
<packaging>eclipse-repository</packaging>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-publisher-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>publish-osgi-ee</id>
<goals>
<goal>publish-osgi-ee</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
Expand Down
13 changes: 13 additions & 0 deletions tycho-its/projects/eeProfile.java17/repository/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@
<executionEnvironment>JavaSE-17</executionEnvironment>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-publisher-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>publish-osgi-ee</id>
<goals>
<goal>publish-osgi-ee</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@
org.apache.maven.plugins:maven-resources-plugin:${resources-plugin.version}:resources
</process-resources>
<prepare-package>
org.eclipse.tycho:tycho-p2-publisher-plugin:${project.version}:publish-osgi-ee,
org.eclipse.tycho:tycho-p2-publisher-plugin:${project.version}:publish-products,
org.eclipse.tycho:tycho-p2-publisher-plugin:${project.version}:publish-categories,
org.eclipse.tycho:tycho-p2-publisher-plugin:${project.version}:attach-artifacts,
Expand Down

0 comments on commit 1aac0ff

Please sign in to comment.