Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added BND plugin in pom.xml #701

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 35 additions & 1 deletion pom.xml
Expand Up @@ -5,6 +5,7 @@
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12-SNAPSHOT</version>
<packaging>bundle</packaging>

<name>JUnit</name>
<description>JUnit is a unit testing framework for Java, created by Erich Gamma and Kent Beck.</description>
Expand Down Expand Up @@ -191,7 +192,7 @@
<encoding>${project.build.sourceEncoding}</encoding>
<source>${jdkVersion}</source>
<target>${jdkVersion}</target>
<compilerVersion>1.5</compilerVersion>
<compilerVersion>${jdkVersion}</compilerVersion>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<debug>true</debug>
Expand All @@ -200,6 +201,39 @@
<maxmem>128m</maxmem>
</configuration>
</plugin>
<plugin>
<!-- OSGi bundle in JAR archive -->
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Main-Class>org.junit.runner.JUnitCore</Main-Class>
<Bundle-SymbolicName>org.${project.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${project.name}</Bundle-Name>
<Bundle-Description>${project.description}</Bundle-Description>
<Bundle-Vendor>${project.organization.name}</Bundle-Vendor>
<Bundle-DocURL>${project.organization.url}</Bundle-DocURL>
<Bundle-Version>${project.version}</Bundle-Version>
<Bundle-License>Eclipse Public License 1.0</Bundle-License>
<Export-Package>
!org.junit.internal.*,
!org.junit.experimental.theories.internal.*,
junit.*; version="${project.version}",
org.junit.*; version="${project.version}"
</Export-Package>
<Private-Package>
org.junit.internal.*,
org.junit.experimental.theories.internal.*
</Private-Package>
<Import-Package>
!org.hamcrest.internal.*,
org.hamcrest.*; resolution:=optional
</Import-Package>
</instructions>
</configuration>
</plugin>
<plugin>
<!--
A plugin which uses the JUnit framework in order to start
Expand Down