mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-04-24 00:00:04 -04:00
Add maven-bundle-plugin to build to give jar files OSGi manifest headers and make the jar files OSGi bundles, fixes #794
This commit is contained in:
committed by
Harald Kuhr
parent
8bd3f4f34a
commit
f2cc9faaf8
@@ -218,6 +218,42 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<version>5.1.9</version>
|
||||
<configuration>
|
||||
<supportedProjectTypes>
|
||||
<supportedProjectType>jar</supportedProjectType>
|
||||
<supportedProjectType>bundle</supportedProjectType>
|
||||
</supportedProjectTypes>
|
||||
<instructions>
|
||||
<!-- Enable processing of OSGI DS component annotations -->
|
||||
<_dsannotations>*</_dsannotations>
|
||||
<!-- Inherit service injections from base class -->
|
||||
<_dsannotations-options>inherit</_dsannotations-options>
|
||||
<!-- Enable processing of OSGI metatype annotations -->
|
||||
<_metatypeannotations>*</_metatypeannotations>
|
||||
</instructions>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>manifest</id>
|
||||
<goals>
|
||||
<goal>manifest</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<supportIncrementalBuild>true</supportIncrementalBuild>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>bundle</id>
|
||||
<goals>
|
||||
<goal>bundle</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
|
||||
Reference in New Issue
Block a user