<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>4.2.0</version>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.compendium</artifactId>
<version>4.2.0</version>
+ <scope>provided</scope>
</dependency>
<!-- Pax exam -->
<groupId>org.wamblee</groupId>
<artifactId>wamblee-support-general</artifactId>
</dependency>
-
+
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.compendium</artifactId>
+ </dependency>
+
+
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<artifactId>mockito-all</artifactId>
</dependency>
</dependencies>
-
+
<build>
<plugins>
<plugin>
<extensions>true</extensions>
<configuration>
<instructions>
+ <Bundle-Activator>org.wamblee.xmlrouter.bundle.XmlrouterActivator</Bundle-Activator>
<Bundle-SymbolicName>${pom.groupId}.${pom.artifactId}</Bundle-SymbolicName>
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
<Embed-Directory>lib</Embed-Directory>
*/
package org.wamblee.xmlrouter.bundle;
-public class XmlrouterActivator {
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+public class XmlrouterActivator implements BundleActivator {
+
+ @Override
+ public void start(BundleContext aContext) throws Exception {
+ System.out.println("Starting bundle");
+ }
+
+ @Override
+ public void stop(BundleContext aContext) throws Exception {
+ System.out.println("Stopping bundle");
+ }
}