diff --git a/activecluster/pom.xml b/activecluster/pom.xml
index b3fc69a111..abf5314861 100644
--- a/activecluster/pom.xml
+++ b/activecluster/pom.xml
@@ -20,12 +20,10 @@
4.0.0
incubator-activemq
- activemq
+ activemq-parent
4.0-SNAPSHOT
- org.apache.activemq.activecluster
activecluster
- 1.3-SNAPSHOT
ActiveCluster
diff --git a/activeio/pom.xml b/activeio/pom.xml
index f6498cfa99..8be628258d 100644
--- a/activeio/pom.xml
+++ b/activeio/pom.xml
@@ -6,7 +6,7 @@
4.0.0
incubator-activemq
- activemq
+ activemq-parent
4.0-SNAPSHOT
diff --git a/activemq-console/pom.xml b/activemq-console/pom.xml
index be7cc6b663..9bc20d47c8 100644
--- a/activemq-console/pom.xml
+++ b/activemq-console/pom.xml
@@ -25,7 +25,7 @@
incubator-activemq
- activemq
+ activemq-parent
4.0-SNAPSHOT
../pom.xml
@@ -136,4 +136,4 @@
-
\ No newline at end of file
+
diff --git a/activemq-core/pom.xml b/activemq-core/pom.xml
index f968198395..a0dd781445 100755
--- a/activemq-core/pom.xml
+++ b/activemq-core/pom.xml
@@ -25,7 +25,7 @@
incubator-activemq
- activemq
+ activemq-parent
4.0-SNAPSHOT
../pom.xml
@@ -304,4 +304,4 @@
-
\ No newline at end of file
+
diff --git a/activemq-dotnet/pom.xml b/activemq-dotnet/pom.xml
index 38d4cf58d4..cb027798bf 100644
--- a/activemq-dotnet/pom.xml
+++ b/activemq-dotnet/pom.xml
@@ -1,145 +1,145 @@
-
-
-
- incubator-activemq
- activemq
- 4.0-SNAPSHOT
-
-
- 4.0.0
- activemq-dotnet
- dotnet-library
-
-
-
- target/dotnet-assembly
- target/test-dotnet-assembly
- src/main/csharp
- src/test/csharp
-
-
-
-
-
- org.apache.maven.plugins
- maven-csharp-lifecycle-plugin
- 1.0.RC6-SNAPSHOT
- true
-
-
-
-
- maven-compiler-plugin
- 2.0
- true
-
-
- csharp
- true
-
-
- true
-
- 1591
-
-
-
- **/*.cs
-
-
-
-
-
-
-
-
-
- compile
- compile
-
- compile
-
-
-
- library
-
-
-
-
-
-
-
- testCompile
- test-compile
-
- testCompile
-
-
-
-
- library
-
- unit-tests.dll
-
-
-
-
-
-
-
- org.codehaus.plexus
- plexus-compiler-csharp
- 1.6-SNAPSHOT
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-nunit-plugin
- 1.0.RC6-SNAPSHOT
-
-
-
-
-
- org.apache.maven.plugins
- maven-vstudio-plugin
- 1.0.RC6-SNAPSHOT
-
- ${dotnet.home}
-
- **/*.aspx
- **/*.resx
- **/*.cs
-
-
-
-
-
-
-
-
-
-
-
-
- nunit
- nunit-console
- 2.2
- dotnet-exe
- test
-
-
-
-
+
+
+
+ incubator-activemq
+ activemq-parent
+ 4.0-SNAPSHOT
+
+
+ 4.0.0
+ activemq-dotnet
+ dotnet-library
+
+
+
+ target/dotnet-assembly
+ target/test-dotnet-assembly
+ src/main/csharp
+ src/test/csharp
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-csharp-lifecycle-plugin
+ 1.0.RC6-SNAPSHOT
+ true
+
+
+
+
+ maven-compiler-plugin
+ 2.0
+ true
+
+
+ csharp
+ true
+
+
+ true
+
+ 1591
+
+
+
+ **/*.cs
+
+
+
+
+
+
+
+
+
+ compile
+ compile
+
+ compile
+
+
+
+ library
+
+
+
+
+
+
+
+ testCompile
+ test-compile
+
+ testCompile
+
+
+
+
+ library
+
+ unit-tests.dll
+
+
+
+
+
+
+
+ org.codehaus.plexus
+ plexus-compiler-csharp
+ 1.6-SNAPSHOT
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-nunit-plugin
+ 1.0.RC6-SNAPSHOT
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-vstudio-plugin
+ 1.0.RC6-SNAPSHOT
+
+ ${dotnet.home}
+
+ **/*.aspx
+ **/*.resx
+ **/*.cs
+
+
+
+
+
+
+
+
+
+
+
+
+ nunit
+ nunit-console
+ 2.2
+ dotnet-exe
+ test
+
+
+
+
diff --git a/activemq-gbean-management/pom.xml b/activemq-gbean-management/pom.xml
index e091fa3023..4daad14a60 100644
--- a/activemq-gbean-management/pom.xml
+++ b/activemq-gbean-management/pom.xml
@@ -25,7 +25,7 @@
incubator-activemq
- activemq
+ activemq-parent
4.0-SNAPSHOT
../pom.xml
@@ -54,4 +54,4 @@
log4j
-
\ No newline at end of file
+
diff --git a/activemq-gbean/pom.xml b/activemq-gbean/pom.xml
index 6446bdea79..81eabf9bb9 100644
--- a/activemq-gbean/pom.xml
+++ b/activemq-gbean/pom.xml
@@ -25,7 +25,7 @@
incubator-activemq
- activemq
+ activemq-parent
4.0-SNAPSHOT
../pom.xml
@@ -106,4 +106,4 @@
-
\ No newline at end of file
+
diff --git a/activemq-jaas/pom.xml b/activemq-jaas/pom.xml
index 0878598a7c..7705af2307 100644
--- a/activemq-jaas/pom.xml
+++ b/activemq-jaas/pom.xml
@@ -25,7 +25,7 @@
incubator-activemq
- activemq
+ activemq-parent
4.0-SNAPSHOT
../pom.xml
@@ -121,4 +121,4 @@
-
\ No newline at end of file
+
diff --git a/activemq-optional/pom.xml b/activemq-optional/pom.xml
index 54ed3f10a4..05b122997e 100755
--- a/activemq-optional/pom.xml
+++ b/activemq-optional/pom.xml
@@ -25,7 +25,7 @@
incubator-activemq
- activemq
+ activemq-parent
4.0-SNAPSHOT
../pom.xml
diff --git a/activemq-ra/pom.xml b/activemq-ra/pom.xml
index 482e5328b8..e0d02aa54e 100755
--- a/activemq-ra/pom.xml
+++ b/activemq-ra/pom.xml
@@ -25,7 +25,7 @@
incubator-activemq
- activemq
+ activemq-parent
4.0-SNAPSHOT
../pom.xml
@@ -100,4 +100,4 @@
-
\ No newline at end of file
+
diff --git a/activemq-systest/pom.xml b/activemq-systest/pom.xml
index 8f6b2d86dd..4d48d5521b 100755
--- a/activemq-systest/pom.xml
+++ b/activemq-systest/pom.xml
@@ -19,7 +19,7 @@
incubator-activemq
- activemq
+ activemq-parent
4.0-SNAPSHOT
diff --git a/activemq-web-demo/pom.xml b/activemq-web-demo/pom.xml
index 980a73b044..32ed114b79 100755
--- a/activemq-web-demo/pom.xml
+++ b/activemq-web-demo/pom.xml
@@ -25,7 +25,7 @@
incubator-activemq
- activemq
+ activemq-parent
4.0-SNAPSHOT
../pom.xml
diff --git a/activemq-web/pom.xml b/activemq-web/pom.xml
index 871a939866..5389addbb8 100755
--- a/activemq-web/pom.xml
+++ b/activemq-web/pom.xml
@@ -25,7 +25,7 @@
incubator-activemq
- activemq
+ activemq-parent
4.0-SNAPSHOT
../pom.xml
diff --git a/assembly/pom.xml b/assembly/pom.xml
index 425498c5ef..0b7562c9ce 100755
--- a/assembly/pom.xml
+++ b/assembly/pom.xml
@@ -25,12 +25,12 @@
incubator-activemq
- activemq
+ activemq-parent
4.0-SNAPSHOT
../pom.xml
- activemq-assembly
+ activemq
jar
ActiveMQ :: Assembly
Puts together the ActiveMQ distribution
@@ -69,7 +69,7 @@
${pom.groupId}
- activemq-web
+ activemq-web-demo
war
@@ -77,6 +77,12 @@
activecluster
true
+
+ ${pom.groupId}
+ activemq-ra
+ rar
+ true
+
@@ -223,6 +229,22 @@
+
+ incubator-activemq
+ maven-bundle-plugin
+ ${pom.version}
+
+
+ compile
+
+ createbundle
+
+
+ activemq-core,activemq-console,activeio-core,activemq-optional,backport-util-concurrent,commons-logging,geronimo-jms_1.1_spec,geronimo-j2ee-management_1.0_spec,derby
+
+
+
+
org.apache.maven.plugins
maven-assembly-plugin
@@ -242,20 +264,6 @@
false
-
- full
- package
-
- assembly
-
-
-
- src/main/descriptors/all-jar.xml
-
- activemq-full-${pom.version}
- false
-
-
diff --git a/assembly/src/main/descriptors/bin.xml b/assembly/src/main/descriptors/bin.xml
index 8cc2b961b8..9c7edaa71d 100644
--- a/assembly/src/main/descriptors/bin.xml
+++ b/assembly/src/main/descriptors/bin.xml
@@ -24,6 +24,7 @@
+ STATUS*
README*
LICENSE*
NOTICE*
@@ -71,17 +72,19 @@
false
runtime
-
+ incubator-activemq:activemq-ra
incubator-activemq:activemq-optional
- activecluster:activecluster
+ incubator-activemq:activecluster
commons-beanutils:commons-beanutils
commons-collections:commons-collections
commons-httpclient:commons-httpclient
commons-dbcp:commons-dbcp
commons-pool:commons-pool
- jetty:jetty
+ org.mortbay.jetty:jetty
+ org.mortbay.jetty:servlet-api-2.5
log4j:log4j
mx4j:mx4j-remote
+ mx4j:mx4j-tools
org.apache.derby:derby
org.apache.geronimo.specs:geronimo-j2ee-jacc_1.0_spec
org.apache.geronimo.specs:geronimo-j2ee-connector_1.5_spec
@@ -123,4 +126,4 @@
-->
-
\ No newline at end of file
+
diff --git a/jmeter/pom.xml b/jmeter/pom.xml
index 3b90700ce1..0a2e6032ce 100644
--- a/jmeter/pom.xml
+++ b/jmeter/pom.xml
@@ -19,7 +19,7 @@
activemq
- activemq
+ activemq-parent
4.0-SNAPSHOT
@@ -122,7 +122,7 @@
activemq
- activemq
+ activemq-parent
${version}
diff --git a/maven-bundle-plugin/pom.xml b/maven-bundle-plugin/pom.xml
new file mode 100644
index 0000000000..dc8a7559bc
--- /dev/null
+++ b/maven-bundle-plugin/pom.xml
@@ -0,0 +1,69 @@
+
+
+
+
+
+
+ 4.0.0
+
+
+ incubator-activemq
+ activemq-parent
+ 4.0-SNAPSHOT
+ ../pom.xml
+
+
+ maven-bundle-plugin
+ maven-plugin
+ Bundle Plugin
+
+
+
+ org.apache.maven
+ maven-project
+ 2.0
+
+
+ org.codehaus.plexus
+ plexus-archiver
+ 1.0-alpha-5
+
+
+ org.apache.maven
+ maven-archiver
+ 2.0
+
+
+ org.apache.maven
+ maven-plugin-api
+ 2.0
+
+
+ org.codehaus.plexus
+ plexus-utils
+ 1.1
+
+
+ org.apache.maven
+ maven-artifact
+ 2.0
+
+
+
diff --git a/maven-bundle-plugin/src/main/java/org/apache/activemq/maven/BundleMojo.java b/maven-bundle-plugin/src/main/java/org/apache/activemq/maven/BundleMojo.java
new file mode 100644
index 0000000000..21ba94f26f
--- /dev/null
+++ b/maven-bundle-plugin/src/main/java/org/apache/activemq/maven/BundleMojo.java
@@ -0,0 +1,113 @@
+package org.apache.activemq.maven;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.Iterator;
+import java.util.List;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.project.MavenProject;
+import org.codehaus.plexus.archiver.ArchiverException;
+import org.codehaus.plexus.archiver.UnArchiver;
+import org.codehaus.plexus.archiver.manager.ArchiverManager;
+import org.codehaus.plexus.archiver.manager.NoSuchArchiverException;
+import org.codehaus.plexus.util.FileUtils;
+
+/**
+ * @goal createbundle
+ * @description Creates an xfire bundle
+ */
+public class BundleMojo extends AbstractMojo
+{
+ /**
+ * The output directory of the assembled distribution file.
+ *
+ * @parameter expression="${project.build.outputDirectory}"
+ * @required
+ */
+ protected File outputDirectory;
+
+ /**
+ * Inclusion list
+ *
+ * @parameter
+ */
+ String includes = "";
+
+ /**
+ * The Maven Project.
+ *
+ * @parameter expression="${project}"
+ * @required
+ * @readonly
+ */
+ MavenProject project;
+
+ /**
+ * To look up Archiver/UnArchiver implementations
+ *
+ * @parameter expression="${component.org.codehaus.plexus.archiver.manager.ArchiverManager}"
+ * @required
+ */
+ protected ArchiverManager archiverManager;
+
+ public void execute() throws MojoExecutionException
+ {
+ String[] include = includes.split(",");
+ List includeList = Arrays.asList(include);
+ getLog().info("Inclusions: " + includeList);
+ getLog().info("OutputDirectory: " + outputDirectory);
+ outputDirectory.mkdirs();
+
+ for (Iterator itr = project.getArtifacts().iterator(); itr.hasNext();)
+ {
+ Artifact a = (Artifact) itr.next();
+
+ if (includeList.contains(a.getArtifactId()))
+ {
+ getLog().info("Found " + a.getArtifactId());
+
+ try
+ {
+ unpack( a.getFile(), outputDirectory );
+ }
+ catch (MojoExecutionException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ catch (NoSuchArchiverException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+
+ protected void unpack( File file, File location )
+ throws MojoExecutionException, NoSuchArchiverException
+ {
+ String archiveExt = FileUtils.getExtension( file.getAbsolutePath() ).toLowerCase();
+
+ try
+ {
+ UnArchiver unArchiver = this.archiverManager.getUnArchiver( archiveExt );
+
+ unArchiver.setSourceFile( file );
+
+ unArchiver.setDestDirectory( location );
+
+ unArchiver.extract();
+ }
+ catch ( IOException e )
+ {
+ throw new MojoExecutionException( "Error unpacking file: " + file + "to: " + location, e );
+ }
+ catch ( ArchiverException e )
+ {
+ throw new MojoExecutionException( "Error unpacking file: " + file + "to: " + location, e );
+ }
+ }
+}
diff --git a/pom.xml b/pom.xml
index 3fe65d0dd4..d28d696fbb 100755
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
4.0.0
incubator-activemq
- activemq
+ activemq-parent
4.0-SNAPSHOT
pom
ActiveMQ
@@ -120,6 +120,7 @@
+ activeio
activecluster
activemq-jaas
activemq-core
@@ -131,6 +132,7 @@
activemq-gbean
activemq-gbean-management
+ maven-bundle-plugin
assembly