Package 'annotations' as bundle
<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>
<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>
