Skip to content

Instantly share code, notes, and snippets.

@steinarb

steinarb/pom.xml

Created Mar 20, 2020
Embed
What would you like to do?
dependencyManagement config for maven-bundle-plugin and karaf-maven-plugin
<project>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>4.2.0</version>
<executions>
<execution>
<id>bundle</id>
<goals>
<goal>bundle</goal>
</goals>
<configuration>
<supportedProjectTypes>
<supportedProjectType>jar</supportedProjectType>
<supportedProjectType>bundle</supportedProjectType>
<supportedProjectType>war</supportedProjectType>
</supportedProjectTypes>
<instructions>
<Bundle-SymbolicName>no.priv.bang.demos.jerseyinkaraf.jerseyinkaraf</Bundle-SymbolicName>
<Import-Package>*</Import-Package>
<Export-Package>!*</Export-Package>
<_removeheaders>Private-Package,
Include-Resource,
Embed-Dependency,
Embed-Transitive</_removeheaders>
<_dsannotations>*</_dsannotations>
<_metatypeannotations>*</_metatypeannotations>
</instructions>
</configuration>
</execution>
</executions>
<configuration>
<supportedProjectTypes>
<supportedProjectType>jar</supportedProjectType>
<supportedProjectType>bundle</supportedProjectType>
<supportedProjectType>war</supportedProjectType>
</supportedProjectTypes>
<instructions>
<Bundle-SymbolicName>no.priv.bang.demos.jerseyinkaraf.jerseyinkaraf</Bundle-SymbolicName>
<Import-Package>*</Import-Package>
<Export-Package>!*</Export-Package>
<_removeheaders>Private-Package,
Include-Resource,
Embed-Dependency,
Embed-Transitive</_removeheaders>
<_dsannotations>*</_dsannotations>
<_metatypeannotations>*</_metatypeannotations>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>4.2.5</version>
<extensions>true</extensions>
<executions>
<execution>
<id>generate-features-file</id>
<phase>package</phase>
<goals>
<goal>features-generate-descriptor</goal>
</goals>
<configuration>
<startLevel>80</startLevel>
<aggregateFeatures>false</aggregateFeatures>
<includeProjectArtifact>true</includeProjectArtifact>
<primaryFeatureName>jerseyinkaraf</primaryFeatureName>
</configuration>
</execution>
</executions>
<configuration>
<startLevel>80</startLevel>
<aggregateFeatures>false</aggregateFeatures>
<includeProjectArtifact>true</includeProjectArtifact>
<primaryFeatureName>jerseyinkaraf</primaryFeatureName>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.