GUAC-1170: Use maven-dependency-plugin instead of maven-assembly-plugin, when build artifact should really only be one .jar file.

This commit is contained in:
Michael Jumper
2015-04-26 23:42:53 -07:00
parent 4eadf19a91
commit a0ba68fcaf
3 changed files with 20 additions and 26 deletions

View File

@@ -38,25 +38,22 @@
</configuration>
</plugin>
<!-- Assembly plugin - for easy distribution -->
<!-- Copy dependencies prior to packaging -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.5.3</version>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>jar-with-dependencies</id>
<phase>package</phase>
<id>unpack-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>single</goal>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<finalName>extension/${project.artifactId}-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
</configuration>
</execution>
</execution>
</executions>
</plugin>