From 73e47695629f147eda618f3cbffc4631d6f0e8e9 Mon Sep 17 00:00:00 2001 From: Heiko Seeberger Date: Thu, 16 Sep 2010 09:29:04 +0200 Subject: [PATCH 1/2] OSGi work: Moved common configuration of Felix Bundle plugin to parent POM. --- pom.xml | 19 ++++++++++++ slf4j-scala-api/pom.xml | 69 +---------------------------------------- 2 files changed, 20 insertions(+), 68 deletions(-) diff --git a/pom.xml b/pom.xml index 5f688b0c..49421f0d 100644 --- a/pom.xml +++ b/pom.xml @@ -99,6 +99,25 @@ + + + + + org.apache.felix + maven-bundle-plugin + 2.1.0 + true + + + J2SE-1.4 + <_versionpolicy>[$(@),$(version;=+;$(@))) + + + + + + + org.apache.maven.plugins diff --git a/slf4j-scala-api/pom.xml b/slf4j-scala-api/pom.xml index 7ab9ef15..7960e601 100644 --- a/slf4j-scala-api/pom.xml +++ b/slf4j-scala-api/pom.xml @@ -102,86 +102,19 @@ org.apache.felix maven-bundle-plugin - 2.1.0 - true - + J2SE-1.5,JavaSE-1.6 org.slf4j.scala.*;version="${project.version}" scala.*;version="[${scala.version},${scala.version}]", * - <_versionpolicy>[$(@),$(version;=+;$(@))) - - - - - - From 7e9992fde390cf5ac6a969b61f10138192ba2d5a Mon Sep 17 00:00:00 2001 From: Heiko Seeberger Date: Thu, 16 Sep 2010 09:52:04 +0200 Subject: [PATCH 2/2] OSGi work: Using Felix Bundle plugin (BND) for slf4j-api now. Excluded org.slf4j.impl package from imported packages. --- slf4j-api/pom.xml | 23 +++++++++++++++++++---- slf4j-scala-api/pom.xml | 4 ++-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/slf4j-api/pom.xml b/slf4j-api/pom.xml index 4e3be809..2518e372 100644 --- a/slf4j-api/pom.xml +++ b/slf4j-api/pom.xml @@ -12,7 +12,7 @@ org.slf4j slf4j-api - jar + bundle SLF4J API Module http://www.slf4j.org @@ -20,7 +20,7 @@ - + @@ -39,6 +39,21 @@ + org.apache.felix + maven-bundle-plugin + + + org.slf4j.*;version="${project.version}" + + !org.slf4j.impl.*, + * + + + + + + + org.apache.maven.plugins @@ -85,7 +100,7 @@ - + diff --git a/slf4j-scala-api/pom.xml b/slf4j-scala-api/pom.xml index 7960e601..9ce57f28 100644 --- a/slf4j-scala-api/pom.xml +++ b/slf4j-scala-api/pom.xml @@ -57,7 +57,7 @@ ${project.version} test - + @@ -118,7 +118,7 @@ - +