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
This commit is contained in:
Frederick G. Oconer 2006-05-03 00:44:41 +00:00
parent c53bb05cd2
commit 5fd6125b23
3 changed files with 44 additions and 10 deletions

View File

@ -257,6 +257,25 @@
<artifactId>maven-assembly-plugin</artifactId>
<version>2.1-SNAPSHOT</version>
<executions>
<execution>
<id>run</id>
<phase>package</phase>
<goals>
<goal>assembly</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/main/descriptors/run-jar.xml</descriptor>
</descriptors>
<finalName>run</finalName>
<appendAssemblyId>false</appendAssemblyId>
<archive>
<manifest>
<mainClass>org.apache.activemq.console.Main</mainClass>
</manifest>
</archive>
</configuration>
</execution>
<execution>
<id>bin</id>
<phase>package</phase>
@ -265,16 +284,15 @@
</goals>
<configuration>
<descriptors>
<descriptor>src/main/descriptors/bin.xml</descriptor>
<descriptor>src/main/descriptors/bin.xml</descriptor>
</descriptors>
<finalName>incubator-activemq-${pom.version}</finalName>
<finalName>${pom.artifactId}-${pom.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
</project>

View File

@ -44,19 +44,26 @@
<directory>target</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>*.jar</include>
<include>${pom.artifactId}-${pom.version}.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>target</directory>
<outputDirectory>/bin</outputDirectory>
<includes>
<include>run.jar</include>
</includes>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<!-- dependencySet>
<outputDirectory>/bin</outputDirectory>
<outputFileNameMapping>run.jar</outputFileNameMapping>
<unpack>false</unpack>
<includes>
<include>incubator-activemq:activemq-console</include>
</includes>
</dependencySet>
</dependencySet -->
<dependencySet>
<outputDirectory>/lib</outputDirectory>
<unpack>false</unpack>
@ -133,4 +140,4 @@
</dependencySets>
-->
</assembly>
</assembly>

View File

@ -20,7 +20,7 @@
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<!-- dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<unpack>true</unpack>
@ -28,5 +28,14 @@
<include>incubator-activemq:activemq-console</include>
</includes>
</dependencySet>
</dependencySets>
</dependencySets -->
<fileSets>
<fileSet>
<directory>target/classes</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>org/apache/activemq/console/Main*.class</include>
</includes>
</fileSet>
</fileSets>
</assembly>