From c1742bece3a0d15600aa9212f3a07df9be1d70d2 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Tue, 27 Mar 2012 14:34:25 +0000 Subject: [PATCH] Introduce check-osgi profile git-svn-id: https://svn.argeo.org/commons/trunk@5244 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- eclipse/dep/org.argeo.eclipse.dep.rap/pom.xml | 68 +++++++++---------- eclipse/dep/org.argeo.eclipse.dep.rcp/pom.xml | 28 +++++++- eclipse/dep/pom.xml | 37 ++++------ osgi/dep/pom.xml | 66 ++++++++++-------- osgi/plugins/pom.xml | 9 +++ .../argeo/osgi/boot/OsgiBootRuntimeTest.java | 12 +++- .../org.argeo.security.dep.node.rap/pom.xml | 42 +++++++++--- .../org.argeo.security.dep.node.rcp/pom.xml | 45 +++++++++--- .../dep/org.argeo.security.dep.node/pom.xml | 61 +++++++++++------ server/dep/pom.xml | 66 ++++++++++-------- .../plugins/org.argeo.jcr.ui.explorer/pom.xml | 1 + server/plugins/pom.xml | 9 +++ 12 files changed, 285 insertions(+), 159 deletions(-) diff --git a/eclipse/dep/org.argeo.eclipse.dep.rap/pom.xml b/eclipse/dep/org.argeo.eclipse.dep.rap/pom.xml index 66bb5b13c..fd7a98f6d 100644 --- a/eclipse/dep/org.argeo.eclipse.dep.rap/pom.xml +++ b/eclipse/dep/org.argeo.eclipse.dep.rap/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 org.argeo.commons.eclipse @@ -93,21 +94,12 @@ org.eclipse.rap.ui.workbench - - + + org.eclipse.core @@ -119,28 +111,33 @@ + + check-osgi + + + + org.argeo.maven.plugins + maven-argeo-osgi-plugin + + + check-osgi + test + + equinox + + + true + + + + + + + rpmbuild-tp - - - - - - - - - - - - - - - - - - org.codehaus.mojo rpm-maven-plugin @@ -179,7 +176,8 @@ - + diff --git a/eclipse/dep/org.argeo.eclipse.dep.rcp/pom.xml b/eclipse/dep/org.argeo.eclipse.dep.rcp/pom.xml index f98693bda..1ad10a690 100644 --- a/eclipse/dep/org.argeo.eclipse.dep.rcp/pom.xml +++ b/eclipse/dep/org.argeo.eclipse.dep.rcp/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 org.argeo.commons.eclipse @@ -97,4 +98,29 @@ ex=*.source_*.jar,\ org.eclipse.swt.win32.win32.x86 + + + check-osgi + + + + org.argeo.maven.plugins + maven-argeo-osgi-plugin + + + check-osgi + test + + equinox + + + true + + + + + + + + diff --git a/eclipse/dep/pom.xml b/eclipse/dep/pom.xml index 36a3fd15e..d1f43702f 100644 --- a/eclipse/dep/pom.xml +++ b/eclipse/dep/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 org.argeo.commons.eclipse @@ -53,30 +54,22 @@ generate-resources - - check-osgi - test - - equinox - - - true - - -clean - - - - - - org.argeo.commons.osgi - org.argeo.osgi.boot - 0.3.5-SNAPSHOT - test - - + + + check-osgi + + + org.argeo.commons.osgi + org.argeo.osgi.boot + 0.3.5-SNAPSHOT + test + + + + \ No newline at end of file diff --git a/osgi/dep/pom.xml b/osgi/dep/pom.xml index 3b9ac15ca..481b2caa0 100644 --- a/osgi/dep/pom.xml +++ b/osgi/dep/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 org.argeo.commons @@ -15,33 +16,38 @@ org.argeo.osgi.dep.stdruntime org.argeo.osgi.dep.jackrabbit - - - - org.argeo.maven.plugins - maven-argeo-osgi-plugin - - - check-osgi - test - - equinox - - - true - - - - - - - - - - org.argeo.commons.osgi - org.argeo.osgi.boot - 0.3.5-SNAPSHOT - test - - + + + check-osgi + + + + org.argeo.maven.plugins + maven-argeo-osgi-plugin + + + check-osgi + test + + equinox + + + true + + + + + + + + + + org.argeo.commons.osgi + org.argeo.osgi.boot + 0.3.5-SNAPSHOT + test + + + + \ No newline at end of file diff --git a/osgi/plugins/pom.xml b/osgi/plugins/pom.xml index b13973fb3..03d0dfd1d 100644 --- a/osgi/plugins/pom.xml +++ b/osgi/plugins/pom.xml @@ -43,6 +43,15 @@ + + org.apache.felix + maven-bundle-plugin + + + ${project.artifactId};singleton:=true + + + diff --git a/osgi/runtime/org.argeo.osgi.boot/src/test/java/org/argeo/osgi/boot/OsgiBootRuntimeTest.java b/osgi/runtime/org.argeo.osgi.boot/src/test/java/org/argeo/osgi/boot/OsgiBootRuntimeTest.java index 0f2eb7d32..fd32f1ae0 100644 --- a/osgi/runtime/org.argeo.osgi.boot/src/test/java/org/argeo/osgi/boot/OsgiBootRuntimeTest.java +++ b/osgi/runtime/org.argeo.osgi.boot/src/test/java/org/argeo/osgi/boot/OsgiBootRuntimeTest.java @@ -21,7 +21,6 @@ import java.util.TreeMap; import junit.framework.TestCase; -import org.argeo.osgi.boot.OsgiBoot; import org.eclipse.core.runtime.adaptor.EclipseStarter; import org.osgi.framework.Bundle; import org.osgi.framework.BundleContext; @@ -29,8 +28,14 @@ import org.osgi.framework.BundleContext; /** Starts an Equinox runtime and provision it with OSGi boot. */ public class OsgiBootRuntimeTest extends TestCase { protected OsgiBoot osgiBoot = null; + private boolean osgiRuntimeAlreadyRunning = false; public void testInstallAndStart() throws Exception { + if (osgiRuntimeAlreadyRunning) { + System.out + .println("OSGi runtime already running, skipping test..."); + return; + } osgiBoot.installUrls(osgiBoot.getBundlesUrls(OsgiBoot.DEFAULT_BASE_URL, OsgiBootNoRuntimeTest.BUNDLES)); Map map = new TreeMap(osgiBoot.getBundlesBySymbolicName()); @@ -71,11 +76,16 @@ public class OsgiBootRuntimeTest extends TestCase { } public void setUp() throws Exception { + osgiRuntimeAlreadyRunning = EclipseStarter.isRunning(); + if (osgiRuntimeAlreadyRunning) + return; BundleContext bundleContext = startRuntime(); osgiBoot = new OsgiBoot(bundleContext); } public void tearDown() throws Exception { + if (osgiRuntimeAlreadyRunning) + return; osgiBoot = null; stopRuntime(); } diff --git a/security/dep/org.argeo.security.dep.node.rap/pom.xml b/security/dep/org.argeo.security.dep.node.rap/pom.xml index 61d178d26..221023d17 100644 --- a/security/dep/org.argeo.security.dep.node.rap/pom.xml +++ b/security/dep/org.argeo.security.dep.node.rap/pom.xml @@ -21,16 +21,6 @@ generate-resources - - check-osgi - test - - equinox - - - true - - @@ -74,6 +64,38 @@ + + check-osgi + + + + org.argeo.maven.plugins + maven-argeo-osgi-plugin + + + check-osgi + test + + equinox + + + true + + + + + + + + + + org.argeo.commons.osgi + org.argeo.osgi.boot + 0.3.5-SNAPSHOT + test + + + rpmbuild diff --git a/security/dep/org.argeo.security.dep.node.rcp/pom.xml b/security/dep/org.argeo.security.dep.node.rcp/pom.xml index af3f45b3e..9bc9da4e8 100644 --- a/security/dep/org.argeo.security.dep.node.rcp/pom.xml +++ b/security/dep/org.argeo.security.dep.node.rcp/pom.xml @@ -1,4 +1,5 @@ - + 4.0.0 org.argeo.commons.security @@ -21,16 +22,6 @@ generate-resources - - check-osgi - test - - equinox - - - true - - @@ -49,6 +40,38 @@ + + check-osgi + + + + org.argeo.maven.plugins + maven-argeo-osgi-plugin + + + check-osgi + test + + equinox + + + true + + + + + + + + + + org.argeo.commons.osgi + org.argeo.osgi.boot + 0.3.5-SNAPSHOT + test + + + rpmbuild diff --git a/security/dep/org.argeo.security.dep.node/pom.xml b/security/dep/org.argeo.security.dep.node/pom.xml index 7b9eeba17..bdae6ee06 100644 --- a/security/dep/org.argeo.security.dep.node/pom.xml +++ b/security/dep/org.argeo.security.dep.node/pom.xml @@ -1,4 +1,5 @@ - + 4.0.0 org.argeo.commons.security @@ -21,16 +22,6 @@ generate-resources - - check-osgi - test - - equinox - - - true - - @@ -115,14 +106,14 @@ org.springframework org.springframework.context.support - - - - - - - - + + + + + + + + org.springframework org.springframework.jms @@ -297,6 +288,38 @@ + + check-osgi + + + + org.argeo.maven.plugins + maven-argeo-osgi-plugin + + + check-osgi + test + + equinox + + + true + + + + + + + + + + org.argeo.commons.osgi + org.argeo.osgi.boot + 0.3.5-SNAPSHOT + test + + + rpmbuild diff --git a/server/dep/pom.xml b/server/dep/pom.xml index bb5be6047..e18a927ec 100644 --- a/server/dep/pom.xml +++ b/server/dep/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 org.argeo.commons @@ -19,33 +20,38 @@ org.argeo.server.dep.jackrabbit.server org.argeo.server.dep.activemq - - - - org.argeo.maven.plugins - maven-argeo-osgi-plugin - - - check-osgi - test - - equinox - - - true - - - - - - - - - - org.argeo.commons.osgi - org.argeo.osgi.boot - 0.3.5-SNAPSHOT - test - - + + + check-osgi + + + + org.argeo.maven.plugins + maven-argeo-osgi-plugin + + + check-osgi + test + + equinox + + + true + + + + + + + + + + org.argeo.commons.osgi + org.argeo.osgi.boot + 0.3.5-SNAPSHOT + test + + + + \ No newline at end of file diff --git a/server/plugins/org.argeo.jcr.ui.explorer/pom.xml b/server/plugins/org.argeo.jcr.ui.explorer/pom.xml index 1f3533674..65285df49 100644 --- a/server/plugins/org.argeo.jcr.ui.explorer/pom.xml +++ b/server/plugins/org.argeo.jcr.ui.explorer/pom.xml @@ -26,6 +26,7 @@ *, org.argeo.eclipse.spring, + org.argeo.util.crypto, org.argeo.jcr.ui.explorer.* diff --git a/server/plugins/pom.xml b/server/plugins/pom.xml index 113b81a26..419d41493 100644 --- a/server/plugins/pom.xml +++ b/server/plugins/pom.xml @@ -47,6 +47,15 @@ org.apache.maven.plugins maven-surefire-plugin + + org.apache.felix + maven-bundle-plugin + + + ${project.artifactId};singleton:=true + + + -- 2.30.2