diff --git a/activemq-karaf-itest/pom.xml b/activemq-karaf-itest/pom.xml
index 9e4530fe2b..f7c8ff0508 100644
--- a/activemq-karaf-itest/pom.xml
+++ b/activemq-karaf-itest/pom.xml
@@ -144,6 +144,15 @@
test
+
+ org.apache.camel.karaf
+ apache-camel
+ ${camel-version}
+ xml
+ features
+ test
+
+
junit
diff --git a/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/AbstractFeatureTest.java b/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/AbstractFeatureTest.java
index c3acfa74ec..9edeb8e250 100644
--- a/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/AbstractFeatureTest.java
+++ b/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/AbstractFeatureTest.java
@@ -54,7 +54,7 @@ public abstract class AbstractFeatureTest {
private static final Logger LOG = LoggerFactory.getLogger(AbstractFeatureTest.class);
private static final long ASSERTION_TIMEOUT = 20000L;
- private static final long COMMAND_TIMEOUT = 10000L;
+ private static final long COMMAND_TIMEOUT = 30000L;
public static final String USER = "karaf";
public static final String PASSWORD = "karaf";
@@ -164,7 +164,14 @@ public abstract class AbstractFeatureTest {
return mavenBundle().groupId("org.apache.activemq").
artifactId("activemq-karaf").versionAsInProject().type(type);
}
-
+
+ // for use from a probe
+ public String getCamelFeatureUrl() {
+ return "mvn:org.apache.camel.karaf/apache-camel/"
+ + System.getProperty("camel.version", "unknown")
+ + "/xml/features";
+ }
+
public static UrlReference getKarafFeatureUrl() {
LOG.info("*** The karaf version is " + karafVersion() + " ***");
@@ -192,8 +199,6 @@ public abstract class AbstractFeatureTest {
public static Option[] configure(String ...features) {
ArrayList f = new ArrayList();
- // install the cxf jaxb spec as the karaf doesn't provide it by default
- // f.add("cxf-jaxb");
f.addAll(Arrays.asList(features));
Option[] options =
@@ -205,10 +210,9 @@ public abstract class AbstractFeatureTest {
.unpackDirectory(new File("target/paxexam/unpack/")),
KarafDistributionOption.keepRuntimeFolder(),
- // override the config.properties (to fix pax-exam bug)
+ //logLevel(LogLevelOption.LogLevel.DEBUG),
replaceConfigurationFile("etc/config.properties", new File(basedir+"/src/test/resources/org/apache/activemq/karaf/itest/config.properties")),
replaceConfigurationFile("etc/custom.properties", new File(basedir+"/src/test/resources/org/apache/activemq/karaf/itest/custom.properties")),
- //replaceConfigurationFile("etc/org.ops4j.pax.logging.cfg", new File(basedir+"/src/test/resources/org/apache/activemq/karaf/itest/org.ops4j.pax.logging.cfg")),
scanFeatures(getActiveMQKarafFeatureUrl(), f.toArray(new String[f.size()]))};
return options;
diff --git a/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerFeatureTest.java b/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerFeatureTest.java
index f961d712f7..01d1f7d71a 100644
--- a/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerFeatureTest.java
+++ b/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerFeatureTest.java
@@ -36,7 +36,7 @@ public class ActiveMQBrokerFeatureTest extends AbstractFeatureTest {
@Configuration
public static Option[] configure() {
- return configureBrokerStart(configure("activemq-broker"));
+ return configureBrokerStart(configure("activemq"));
}
@Test
diff --git a/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerNdWebConsoleFeatureTest.java b/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerNdWebConsoleFeatureTest.java
index 3449a1ef51..e4b01d48d4 100644
--- a/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerNdWebConsoleFeatureTest.java
+++ b/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ActiveMQBrokerNdWebConsoleFeatureTest.java
@@ -40,7 +40,7 @@ public class ActiveMQBrokerNdWebConsoleFeatureTest extends ActiveMQBrokerFeature
public static Option[] configure() {
return append(CoreOptions.mavenBundle("commons-codec", "commons-codec").versionAsInProject(),
append(CoreOptions.mavenBundle("commons-httpclient", "commons-httpclient").versionAsInProject(),
- configureBrokerStart(configure("activemq-broker"))));
+ configure("activemq-broker")));
}
@Override
diff --git a/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ObrFeatureTest.java b/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ObrFeatureTest.java
index 3e2edbf866..c3283dfef5 100644
--- a/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ObrFeatureTest.java
+++ b/activemq-karaf-itest/src/test/java/org/apache/activemq/karaf/itest/ObrFeatureTest.java
@@ -18,17 +18,23 @@ package org.apache.activemq.karaf.itest;
import org.junit.Test;
import org.junit.runner.RunWith;
+import org.ops4j.pax.exam.MavenUtils;
import org.ops4j.pax.exam.Option;
import org.ops4j.pax.exam.junit.Configuration;
import org.ops4j.pax.exam.junit.JUnit4TestRunner;
+import static org.openengsb.labs.paxexam.karaf.options.KarafDistributionOption.editConfigurationFilePut;
+
+
@RunWith(JUnit4TestRunner.class)
public class ObrFeatureTest extends AbstractFeatureTest {
@Configuration
public static Option[] configure() {
- return configure("obr");
+ return append(
+ editConfigurationFilePut("etc/system.properties", "camel.version", MavenUtils.getArtifactVersion("org.apache.camel.karaf", "apache-camel")),
+ configure("obr"));
}
@Test
@@ -36,8 +42,19 @@ public class ObrFeatureTest extends AbstractFeatureTest {
installAndAssertFeature("activemq-client");
}
- //@Test
- public void testBroker() throws Throwable {
- installAndAssertFeature("activemq-broker");
+ @Test
+ public void testActiveMQ() throws Throwable {
+ installAndAssertFeature("activemq");
}
+
+ @Test
+ public void testBroker() throws Throwable {
+ installAndAssertFeature("activemq-broker");
+ }
+
+ @Test
+ public void testCamel() throws Throwable {
+ System.err.println(executeCommand("features:addurl " + getCamelFeatureUrl()));
+ installAndAssertFeature("activemq-camel");
+ }
}
diff --git a/activemq-karaf-itest/src/test/resources/org/apache/activemq/karaf/itest/activemq.xml b/activemq-karaf-itest/src/test/resources/org/apache/activemq/karaf/itest/activemq.xml
index 11258ae54c..34c9669c0d 100644
--- a/activemq-karaf-itest/src/test/resources/org/apache/activemq/karaf/itest/activemq.xml
+++ b/activemq-karaf-itest/src/test/resources/org/apache/activemq/karaf/itest/activemq.xml
@@ -49,7 +49,7 @@
-
+
@@ -72,6 +72,8 @@
+
+
diff --git a/activemq-karaf/src/main/resources/features.xml b/activemq-karaf/src/main/resources/features.xml
index 01b0a7dcfe..cbb7da75e9 100644
--- a/activemq-karaf/src/main/resources/features.xml
+++ b/activemq-karaf/src/main/resources/features.xml
@@ -37,8 +37,9 @@
jetty
- spring-dm
activemq-client
+ mvn:org.apache.activemq/activemq-karaf/${project.version}
+ mvn:org.apache.xbean/xbean-spring/${xbean-version}
mvn:commons-collections/commons-collections/${commons-collections-version}
mvn:commons-lang/commons-lang/${commons-lang-version}
mvn:commons-codec/commons-codec/1.4
@@ -56,7 +57,6 @@
mvn:org.codehaus.jettison/jettison/${jettison-version}
mvn:org.codehaus.jackson/jackson-core-asl/${jackson-version}
mvn:org.codehaus.jackson/jackson-mapper-asl/${jackson-version}
- mvn:org.apache.activemq/activemq-karaf/${project.version}
mvn:org.scala-lang/scala-library/${scala-version}
diff --git a/activemq-osgi/pom.xml b/activemq-osgi/pom.xml
index e7a5eb6eff..bcf6c8a0b4 100644
--- a/activemq-osgi/pom.xml
+++ b/activemq-osgi/pom.xml
@@ -53,18 +53,18 @@
org.jasypt*;resolution:=optional,
org.eclipse.jetty*;resolution:=optional,
org.springframework.jms*;version="[3,4]";resolution:=optional,
- org.springframework.osgi*;version="[3,4]";resolution:=optional,
+ org.springframework.osgi*;version="[1.2,1.3]";resolution:=optional,
org.springframework.transaction*;version="[3,4]";resolution:=optional,
org.xmlpull*;resolution:=optional,
scala*;resolution:=optional,
+ org.springframework*;version="[3,4]";resolution:=optional,
+ org.apache.xbean.spring*,
javax.annotation*,
javax.jms*,
- javax.management
+ javax.management*,
javax.transaction*,
org.apache.commons.pool*,
org.apache.commons.net*,
- org.apache.xbean.spring*,
- org.springframework*;version="[3,4]";resolution:=optional,
*