OSGi descriptor pruning - see #489

This commit is contained in:
Julien Viet
2019-09-16 17:57:36 +02:00
parent ba5fd53583
commit c62ca1e219

54
pom.xml
View File

@@ -610,60 +610,6 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<configuration>
<archive>
<!-- Generate a jar INDEX.LIST -->
<index>true</index>
<!-- A manifest containing the OSGi metadata has been generated using the maven-bundle-plugin -->
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
<!-- Add the Maven coordinates in the manifest -->
<manifestEntries>
<Maven-Group-Id>${project.groupId}</Maven-Group-Id>
<Maven-Artifact-Id>${project.artifactId}</Maven-Artifact-Id>
<Maven-Version>${project.version}</Maven-Version>
</manifestEntries>
</archive>
<!-- Remove examples and docoverride -->
<excludes>
<exclude>/docoverride/**</exclude>
<exclude>/examples/**</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.5.3</version>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
<configuration>
<instructions>
<Export-Package>io.vertx.core*</Export-Package>
<Private-Package>!docoverride*, !examples*</Private-Package>
<Import-Package>org.slf4j*;resolution:=optional,
org.apache.log4j;resolution:=optional,
org.apache.logging.log4*;resolution:=optional,
*
</Import-Package>
</instructions>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>