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>
|
||||
<!-- 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>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
|
@ -268,7 +292,7 @@
|
|||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<version>2.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<!-- execution>
|
||||
<id>run</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
|
@ -278,14 +302,15 @@
|
|||
<descriptors>
|
||||
<descriptor>src/main/descriptors/run-jar.xml</descriptor>
|
||||
</descriptors>
|
||||
<finalName>activemq-${pom.version}</finalName>
|
||||
<finalName>run</finalName>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
<archive>
|
||||
<manifest>
|
||||
<mainClass>org.apache.activemq.console.Main</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
</execution>
|
||||
</execution -->
|
||||
<execution>
|
||||
<id>bin</id>
|
||||
<phase>package</phase>
|
||||
|
|
Loading…
Reference in New Issue