diff options
Diffstat (limited to 'annotations')
-rw-r--r-- | annotations/pom.xml | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/annotations/pom.xml b/annotations/pom.xml index df4f14f2a7d..358188f71c2 100644 --- a/annotations/pom.xml +++ b/annotations/pom.xml @@ -9,7 +9,7 @@ <relativePath>../parent/pom.xml</relativePath> </parent> <artifactId>annotations</artifactId> - <packaging>jar</packaging> + <packaging>bundle</packaging> <version>7-SNAPSHOT</version> <name>annotations</name> <description>Public API annotations</description> @@ -46,6 +46,31 @@ <updateReleaseInfo>true</updateReleaseInfo> </configuration> </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>parse-version</id> + <goals> + <goal>parse-version</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <extensions>true</extensions> + <configuration> + <instructions> + <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> + <Bundle-Version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</Bundle-Version> + <Export-Package>com.yahoo.component.annotation;version=1.0.0;-noimport:=true</Export-Package> + <_nouses>true</_nouses> <!-- Don't include 'uses' directives for package exports --> + </instructions> + </configuration> + </plugin> </plugins> </build> </project> |