From 5fd6125b23c8b3836e3ba17c271fb5c4abf741a3 Mon Sep 17 00:00:00 2001 From: "Frederick G. Oconer" Date: Wed, 3 May 2006 00:44:41 +0000 Subject: [PATCH] Bug: Unable to start the generated distribution due to the created run.jar in "/bin" dir. Fix: Added a new assembly execution that will create the run.jar containing only "org.apache.activemq.console.Main" and setting the manifest main-class property to the same class. git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@399101 13f79535-47bb-0310-9956-ffa450edef68 --- assembly/pom.xml | 26 +++++++++++++++++++---- assembly/src/main/descriptors/bin.xml | 15 +++++++++---- assembly/src/main/descriptors/run-jar.xml | 13 ++++++++++-- 3 files changed, 44 insertions(+), 10 deletions(-) diff --git a/assembly/pom.xml b/assembly/pom.xml index 701fc7305d..c8a0579c25 100755 --- a/assembly/pom.xml +++ b/assembly/pom.xml @@ -257,6 +257,25 @@ maven-assembly-plugin 2.1-SNAPSHOT + + run + package + + assembly + + + + src/main/descriptors/run-jar.xml + + run + false + + + org.apache.activemq.console.Main + + + + bin package @@ -265,16 +284,15 @@ - src/main/descriptors/bin.xml + src/main/descriptors/bin.xml - incubator-activemq-${pom.version} + ${pom.artifactId}-${pom.version} false - - + \ No newline at end of file diff --git a/assembly/src/main/descriptors/bin.xml b/assembly/src/main/descriptors/bin.xml index 022b6c3f1d..0fcde738cb 100644 --- a/assembly/src/main/descriptors/bin.xml +++ b/assembly/src/main/descriptors/bin.xml @@ -44,19 +44,26 @@ target / - *.jar + ${pom.artifactId}-${pom.version}.jar + + + + target + /bin + + run.jar - + /lib false @@ -133,4 +140,4 @@ --> - + \ No newline at end of file diff --git a/assembly/src/main/descriptors/run-jar.xml b/assembly/src/main/descriptors/run-jar.xml index 9926ec0ebe..5526730f2b 100644 --- a/assembly/src/main/descriptors/run-jar.xml +++ b/assembly/src/main/descriptors/run-jar.xml @@ -20,7 +20,7 @@ jar false - + + + + target/classes + / + + org/apache/activemq/console/Main*.class + + + \ No newline at end of file