Skip to content

Commit

Permalink
add bnd-maven-plugin do generate jar with proper osgi manifest
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Bischof <[email protected]>
  • Loading branch information
stbischof committed Jan 11, 2025
1 parent 4231af1 commit ec495e5
Showing 1 changed file with 30 additions and 19 deletions.
49 changes: 30 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,25 +92,36 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
<configuration>
<archive>
<manifestEntries>
<Multi-Release>true</Multi-Release>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>7.1.0</version>
<extensions>true</extensions>
<executions>
<execution>
<id>jar</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<bnd><![CDATA[
Multi-Release: true
Import-Package: \
com.sun.jna*;resolution:=optional
Export-Package: com.googlecode.lanterna*
]]></bnd>
</configuration>
</execution>
<execution>
<id>test-jar</id>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand Down

0 comments on commit ec495e5

Please sign in to comment.