Permalink
Browse files

merged with latest

  • Loading branch information...
1 parent 26caa86 commit d8ace9ebd730126bc08a070a3d5495b7f675217c @Tibor17 committed Aug 7, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 build/maven/junit-pom-template.xml
@@ -5,6 +5,7 @@
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>@version@</version>
+ <packaging>bundle</packaging>
<name>JUnit</name>
<url>http://junit.org</url>
<description>
@@ -52,6 +53,24 @@
<target>${jdk.version}</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>2.3.7</version>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>org.junit</Bundle-SymbolicName>
+ <Bundle-Name>${project.name}</Bundle-Name>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Export-Package>org.hamcrest.*;version="${hamcrest.version}",junit.*;version="3.8.2",org.junit.*;version="${project.version}</Export-Package>
+ <Bundle-Description>${project.description}</Bundle-Description>
+ <Bundle-License>Common Public License Version 1.0</Bundle-License>
+ <Bundle-Vendor>${project.organization.name}</Bundle-Vendor>
+ <Bundle-DocURL>${project.organization.url}</Bundle-DocURL>
+ </instructions>
+ </configuration>
+ </plugin>
</plugins>
</build>
<dependencies>

2 comments on commit d8ace9e

The bundle plugin settings look good. One thing about hamcrest. Do you want to embed it in junit? It could also be a separate bundle. How do I build junit to see the effect of the pom? As the pom is not in the usual location I guess mvn clean install will not do?!

Owner

Tibor17 replied Aug 13, 2012

@cschneider
I am aware of this, however my local (not submited) pom.xml work as expected.
I propopsed an ordinal maven build process to @dsaff in #464. Pls see my longest comment in #464.
Currently this is only a template and we make changes a step by step. I wanted more step forward change.

Please sign in to comment.