Skip to content
Browse files

Update build/maven/junit-pom-template.xml

Added new entries, and osgi framework dependency.
I will on Monday create a new pull request with Maven solution using OSGi integration tests as a copy of my public repo.
It seems we should use OSGi Activator to work properly in a real environment.
<Bundle-Activator>org.junit.osgi.JunitActivator</Bundle-Activator>
  • Loading branch information...
1 parent fdfe12b commit 6a4523490aff9a74c03a80e05a130b9fd8b315e8 @Tibor17 committed Sep 23, 2012
Showing with 12 additions and 2 deletions.
  1. +12 −2 build/maven/junit-pom-template.xml
View
14 build/maven/junit-pom-template.xml
@@ -60,14 +60,17 @@
<extensions>true</extensions>
<configuration>
<instructions>
- <Bundle-SymbolicName>org.junit</Bundle-SymbolicName>
+ <Main-Class>org.junit.runner.JUnitCore</Main-Class>
+ <Bundle-SymbolicName>org.${project.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${project.name}</Bundle-Name>
<Bundle-Version>${project.version}</Bundle-Version>
- <Export-Package>org.hamcrest.*;version="${hamcrest.version}",junit.*;version="${project.version}",org.junit.*;version="${project.version}</Export-Package>
+ <Export-Package>!org.junit.internal,!org.junit.experimental.theories.internal,org.hamcrest.*;version="1.3",junit.*;version="${project.version}",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>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Import-Package>org.osgi.framework.*;version="[1.6,2.0)";resolution:=optional</Import-Package>
</instructions>
</configuration>
</plugin>
@@ -80,6 +83,13 @@
<version>1.3</version>
<scope>compile</scope>
</dependency>
+ <dependency>
+ <!-- javac 1.5 and embedded in org.apache.felix:org.apache.felix.framework:4.0.3 -->
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.core</artifactId>
+ <version>4.3.0</version>
+ <scope>provided</scope>
+ </dependency>
</dependencies>
<properties>
<jdk.version>1.5</jdk.version>

0 comments on commit 6a45234

Please sign in to comment.
Something went wrong with that request. Please try again.