diff --git a/activemq-core/pom.xml b/activemq-core/pom.xml index a5c48ce757..2339c10244 100755 --- a/activemq-core/pom.xml +++ b/activemq-core/pom.xml @@ -179,11 +179,9 @@ true - commons-net - commons-net - - - + commons-net + commons-net + @@ -307,7 +305,7 @@ - + org.apache.maven.plugins @@ -394,6 +392,28 @@ + + org.apache.felix + maven-bundle-plugin + ${felix-version} + true + + + org.apache.activemq.util.osgi.Activator + ${artifactId} + ${activemq.osgi.symbolic.name} + ${activemq.osgi.export} + ${activemq.osgi.import} + ${activemq.osgi.dynamic.import} + ${activemq.osgi.private.pkg} + Apache ActiveMQ + ${project.version} + <_versionpolicy>[$(version;==;$(@)),$(version;=+;$(@))) + <_failok>${servicemix.osgi.failok} + + + + maven-surefire-plugin diff --git a/activemq-core/src/main/java/org/apache/activemq/util/osgi/Activator.java b/activemq-core/src/main/java/org/apache/activemq/util/osgi/Activator.java index a1cee6855d..b910dc2cec 100644 --- a/activemq-core/src/main/java/org/apache/activemq/util/osgi/Activator.java +++ b/activemq-core/src/main/java/org/apache/activemq/util/osgi/Activator.java @@ -50,15 +50,6 @@ public class Activator implements BundleActivator, SynchronousBundleListener, Ob private final ConcurrentMap bundleWrappers = new ConcurrentHashMap(); private BundleContext bundleContext; - /** - * constructor for use as a blueprint bean rather than bundle activator - * @param bundleContext - */ - public Activator(BundleContext bundleContext) throws Exception { - start(bundleContext); - } - - // ================================================================ // BundleActivator interface impl // ================================================================