Skip to content

Commit

Permalink
Generate a manifest for all tycho jars
Browse files Browse the repository at this point in the history
Currently we sometimes generate a manifest and sometimes not using
different settings, this should be unified to simply generate a manifest
for any jar we produce in Tycho.
  • Loading branch information
laeubi committed Jul 17, 2023
1 parent 18c9743 commit 21364d4
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,37 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<executions>
<execution>
<id>bnd-process</id>
<goals>
<goal>bnd-process</goal>
</goals>
<configuration>
<packagingTypes>jar,maven-plugin</packagingTypes>
<bnd>
<![CDATA[
Import-Package: *
Export-Package: org.eclipse.tycho.*;-noimport:=true
-noimportjava: true
]]>
</bnd>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
Expand Down
16 changes: 16 additions & 0 deletions tycho-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,22 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<executions>
<execution>
<id>system-packages-companion-bnd-process</id>
<phase>generate-resources</phase>
<goals>
<goal>bnd-process</goal>
</goals>
<configuration>
<packagingTypes>jar,maven-plugin</packagingTypes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
Expand Down

0 comments on commit 21364d4

Please sign in to comment.