<artifactId>xmlrouter-common</artifactId>
<version>0.1.0-SNAPSHOT</version>
</dependency>
- <dependency>
- <groupId>org.wamblee</groupId>
- <artifactId>wamblee-support-general</artifactId>
- </dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<groupId>org.ops4j.pax.url</groupId>
<artifactId>pax-url-aether</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.ops4j.pax.url</groupId>
+ <artifactId>pax-url-wrap</artifactId>
+ </dependency>
<!-- only native -->
<dependency>
@Configuration()
public Option[] config() {
- return options(junitBundles(),
- // mockito 1.7
- // wrappedBundle(mavenBundle().groupId("org.mockito")
- // .artifactId("mockito-all").version("1.7")),
- // mockito 1.8.5
+ return options(
+ // Test dependencies
+ mavenBundle().groupId("junit").artifactId("junit-dep")
+ .version("4.8.2"), //
mavenBundle().groupId("org.mockito").artifactId("mockito-all")
.version("1.8.5"), //
+
+ // Dependencies from wamblee utils (TODO create bundle of
+ // support-general with optional dependencies).
+ mavenBundle().groupId("org.eclipse.persistence")
+ .artifactId("javax.persistence").version("2.0.0"), //
+ wrappedBundle(mavenBundle().groupId("net.sf.ehcache")
+ .artifactId("ehcache-core").version("2.2.0")), //
+
+ // XML Router API packages.
+ mavenBundle().groupId("org.wamblee.xmlrouter")
+ .artifactId("xmlrouter-common").versionAsInProject(),//
+ mavenBundle().groupId("org.wamblee.xmlrouter")
+ .artifactId("xmlrouter-config").versionAsInProject(),//
+ mavenBundle().groupId("org.wamblee.xmlrouter")
+ .artifactId("xmlrouter-publish").versionAsInProject(),//
+ mavenBundle().groupId("org.wamblee.xmlrouter")
+ .artifactId("xmlrouter-subscribe").versionAsInProject(),//
+ mavenBundle().groupId("org.wamblee.xmlrouter")
+ .artifactId("xmlrouter-listener").versionAsInProject(),//
+
+ // OSGI runtimes
felix());
}
+ /*
+ * @Configuration() public Option[] config() { return
+ * options(mavenBundle().groupId("junit").artifactId("junit-dep")
+ * .version("4.8.2"), // mockito 1.7 //
+ * wrappedBundle(mavenBundle().groupId("org.mockito") //
+ * .artifactId("mockito-all").version("1.7")), // mockito 1.8.5 //
+ * mavenBundle().groupId("org.objenesis").artifactId("objenesis") //
+ * .version("1.0"), // // mavenBundle("org.hamcrest",
+ * "hamcrest-core").version("1.1"),//
+ * mavenBundle().groupId("org.mockito").artifactId("mockito-all")
+ * .version("1.8.5"), // felix()); }
+ */
+
@Test
public void test1(BundleContext aContext) {
System.out.println("=== Got context " + aContext);
<url>http://wamblee.org</url>
<dependencies>
+ <dependency>
+ <groupId>org.wamblee</groupId>
+ <artifactId>wamblee-support-general</artifactId>
+ </dependency>
<dependency>
<groupId>org.wamblee.xmlrouter</groupId>
<artifactId>xmlrouter-config</artifactId>
<configuration>
<instructions>
<Bundle-SymbolicName>${pom.groupId}.${pom.artifactId}</Bundle-SymbolicName>
+ <Embed-Dependency>wamblee-support-general;scope=compile|runtime</Embed-Dependency>
+ <Embed-Directory>lib</Embed-Directory>
</instructions>
</configuration>
</plugin>
<properties>
- <wamblee.utils.version>0.5</wamblee.utils.version>
+ <wamblee.utils.version>0.8-SNAPSHOT</wamblee.utils.version>
<pax.exam.version>2.2.0</pax.exam.version>
<pax.runner.version>1.7.4</pax.runner.version>
<pax.url.version>1.3.4</pax.url.version>
<dependency>
<groupId>org.wamblee</groupId>
<artifactId>wamblee-support-general</artifactId>
- <version>0.7-SNAPSHOT</version>
+ <version>${wamblee.utils.version}</version>
</dependency>
<dependency>
<groupId>org.wamblee</groupId>
<version>${pax.url.version}</version>
<scope>test</scope>
</dependency>
+
+ <dependency>
+ <groupId>org.ops4j.pax.url</groupId>
+ <artifactId>pax-url-wrap</artifactId>
+ <version>${pax.url.version}</version>
+ <scope>test</scope>
+ </dependency>
<!-- only native -->
<dependency>
--- /dev/null
+<?xml version="1.0"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+ <parent>
+ <groupId>org.wamblee.xmlrouter</groupId>
+ <artifactId>xmlrouter-router</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>xmlrouter-router-bundle</artifactId>
+ <packaging>bundle</packaging>
+ <name>/xmlrouter/router/bundle</name>
+ <url>http://wamblee.org</url>
+
+
+ <dependencies>
+ <dependency>
+ <groupId>org.wamblee.xmlrouter</groupId>
+ <artifactId>xmlrouter-router-impl</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>${pom.groupId}.${pom.artifactId}</Bundle-SymbolicName>
+ <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
+ <Embed-Directory>lib</Embed-Directory>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <distributionManagement>
+ <site>
+ <id>xmlrouter-site</id>
+ <url>file:${distrib}/cache</url>
+ </site>
+ </distributionManagement>
+
+</project>
--- /dev/null
+/*
+ * Copyright 2005-2011 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.wamblee.xmlrouter.bundle;
+
+public class XmlrouterActivator {
+
+}
<dependencies>
+ <dependency>
+ <groupId>org.wamblee</groupId>
+ <artifactId>wamblee-support-general</artifactId>
+ </dependency>
<dependency>
<groupId>org.wamblee.xmlrouter</groupId>
<artifactId>xmlrouter-config</artifactId>
<modules>
<module>impl</module>
+ <module>bundle</module>
</modules>
<distributionManagement>