Skip to content

Commit

Permalink
Generate OSGi bundle manifests for core and library (hamcrest#32).
Browse files Browse the repository at this point in the history
Include maven-bundle-plugin to generate the default OSGi
manifests for the core and library artifacts.
  • Loading branch information
josephw committed Dec 2, 2014
1 parent 172723b commit c700f43
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
22 changes: 21 additions & 1 deletion hamcrest-core/pom.xml
Expand Up @@ -78,7 +78,27 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
</plugins>
</build>

</project>
21 changes: 21 additions & 0 deletions hamcrest-library/pom.xml
Expand Up @@ -84,6 +84,27 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
16 changes: 16 additions & 0 deletions pom.xml
Expand Up @@ -76,4 +76,20 @@
<easymock.version>2.2</easymock.version>
<junit.version>4.11</junit.version>
</properties>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.5.3</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.5</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>

0 comments on commit c700f43

Please sign in to comment.