mirror of https://github.com/apache/activemq.git
Bug: run.jar is not correctly created.
Fix: added ant plugin to crete the run.jar because the assembly plugin doesn't correctly create it. git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@412975 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cf1fc15ad5
commit
8eb04d6b95
|
@ -230,6 +230,30 @@
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<!-- Configure which tests are included/excuded -->
|
<!-- Configure which tests are included/excuded -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<version>1.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>run-jar</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<configuration>
|
||||||
|
<tasks>
|
||||||
|
<jar destfile="target/run.jar" basedir="target/classes">
|
||||||
|
<include name="org/apache/activemq/console/Main*.class"/>
|
||||||
|
<manifest>
|
||||||
|
<attribute name="Main-Class" value="org.apache.activemq.console.Main"/>
|
||||||
|
</manifest>
|
||||||
|
</jar>
|
||||||
|
</tasks>
|
||||||
|
</configuration>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
@ -268,7 +292,7 @@
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
<version>2.1</version>
|
<version>2.1</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<!-- execution>
|
||||||
<id>run</id>
|
<id>run</id>
|
||||||
<phase>package</phase>
|
<phase>package</phase>
|
||||||
<goals>
|
<goals>
|
||||||
|
@ -278,14 +302,15 @@
|
||||||
<descriptors>
|
<descriptors>
|
||||||
<descriptor>src/main/descriptors/run-jar.xml</descriptor>
|
<descriptor>src/main/descriptors/run-jar.xml</descriptor>
|
||||||
</descriptors>
|
</descriptors>
|
||||||
<finalName>activemq-${pom.version}</finalName>
|
<finalName>run</finalName>
|
||||||
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
<archive>
|
<archive>
|
||||||
<manifest>
|
<manifest>
|
||||||
<mainClass>org.apache.activemq.console.Main</mainClass>
|
<mainClass>org.apache.activemq.console.Main</mainClass>
|
||||||
</manifest>
|
</manifest>
|
||||||
</archive>
|
</archive>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution -->
|
||||||
<execution>
|
<execution>
|
||||||
<id>bin</id>
|
<id>bin</id>
|
||||||
<phase>package</phase>
|
<phase>package</phase>
|
||||||
|
|
Loading…
Reference in New Issue