Skip to content

Instantly share code, notes, and snippets.

@steinarb
Created March 20, 2020 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steinarb/ff216154387ca544af14d3ecb5bfc8db to your computer and use it in GitHub Desktop.
Save steinarb/ff216154387ca544af14d3ecb5bfc8db to your computer and use it in GitHub Desktop.
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