Permalink
Browse files

this pom let to create a osgi bundle. Is better use ${project.version…

…} instead of ${pom.version} because it is deprecated. We need to ignore the dependency with bsh to install jgroups in a osgi repository. The maven 'Optional' tag doesn't work in maven-bundle-plugin
  • Loading branch information...
1 parent 4ab126c commit ba1727464ba45ffaf303dfdbcbf473af31c78a21 @flashboss flashboss committed Nov 22, 2010
Showing with 19 additions and 16 deletions.
  1. +19 −16 pom.xml
View
@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jgroups</groupId>
<artifactId>jgroups</artifactId>
- <packaging>jar</packaging>
+ <packaging>bundle</packaging>
<name>JGroups</name>
<version>2.12.0.Alpha1</version>
<url>http://www.jgroups.org</url>
@@ -193,22 +193,25 @@
<configuration>
<instructions>
<Export-Package>
- schema;version=${pom.version},
- org.jgroups;version=${pom.version},
- org.jgroups.annotations;version=${pom.version},
- org.jgroups.auth;version=${pom.version},
- org.jgroups.blocks;version=${pom.version},
- org.jgroups.conf;version=${pom.version},
- org.jgroups.debug;version=${pom.version},
- org.jgroups.jmx;version=${pom.version},
- org.jgroups.logging;version=${pom.version},
- org.jgroups.mux;version=${pom.version},
- org.jgroups.persistence;version=${pom.version},
- org.jgroups.protocols;version=${pom.version},
- org.jgroups.protocols.pbcast;version=${pom.version},
- org.jgroups.stack;version=${pom.version},
- org.jgroups.util;version=${pom.version},
+ schema;version=${project.version},
+ org.jgroups;version=${project.version},
+ org.jgroups.annotations;version=${project.version},
+ org.jgroups.auth;version=${project.version},
+ org.jgroups.blocks;version=${project.version},
+ org.jgroups.conf;version=${project.version},
+ org.jgroups.debug;version=${project.version},
+ org.jgroups.jmx;version=${project.version},
+ org.jgroups.logging;version=${project.version},
+ org.jgroups.mux;version=${project.version},
+ org.jgroups.persistence;version=${project.version},
+ org.jgroups.protocols;version=${project.version},
+ org.jgroups.protocols.pbcast;version=${project.version},
+ org.jgroups.stack;version=${project.version},
+ org.jgroups.util;version=${project.version}
</Export-Package>
+ <Import-Package>
+ !bsh.*,*
+ </Import-Package>
<Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
</instructions>
</configuration>

0 comments on commit ba17274

Please sign in to comment.