Skip to content

Commit

Permalink
use maven-bundle-plugin with extensions=true
Browse files Browse the repository at this point in the history
To avoid classloading problems
and API incompatibility when running in a Tycho build.

see #2914
  • Loading branch information
LorenzoBettini committed Jan 19, 2024
1 parent a1c6d7d commit 3203ee5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 30 deletions.
10 changes: 0 additions & 10 deletions org.eclipse.xtext.web.servlet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,6 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>5.1.8</version>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down
10 changes: 0 additions & 10 deletions org.eclipse.xtext.web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,6 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>5.1.8</version>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
10 changes: 0 additions & 10 deletions org.eclipse.xtext.xbase.web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,6 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>5.1.8</version>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
18 changes: 18 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,24 @@
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<!-- extensions is crucial to avoid classloading problems
and API incompatibility when running in a Tycho build.
see https://github.com/eclipse/xtext/issues/2914 -->
<extensions>true</extensions>
<version>5.1.9</version>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down

0 comments on commit 3203ee5

Please sign in to comment.