Hi
my unit test require I a *.tar.gz. The *.tar.gz needs to include the 3rd party
dependencies and the projects jar file artifact.
I tried using an assembly and setting the phase, so it will run before the unit
tests run, how ever my project artifact has not been packaged yet
Any comments or suggestions would be greatly appreciated
Andy
$ mvn -version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19
05:51:28-0800)
from my pom.xml
<plugin>
<!-- The assembly to builds the topology
tarball we install on the Athena
platform
http://joel-latino.blogspot.com/2013/02/how-create-zip-files-with-maven.html
http://maven.apache.org/plugins/maven-assembly-plugin/plugin-info.html -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>createTarball-assembly</id>
<!-- we can not use package,
local unit test will not run eclipse complains
about
process-test-classes <phase>process-test-classes</phase> -->
<phase>process-test-classes</phase>
<goals>
<goal>single</goal>
</goals>
<inherited>false</inherited>
</execution>
</executions>
<configuration>
<descriptors>
<descriptor>
src/createTarballAssembly.xml</descriptor>
</descriptors>
<finalName>${project.build.finalName}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</plugin>
here is my assembly file
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0
http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<!-- ref:
http://joel-latino.blogspot.com/2013/02/how-create-zip-files-with-maven.html
http://maven.apache.org/plugins/maven-assembly-plugin/plugin-info.html -->
<id>createTarball-assembly</id>
<formats>
<format>tar.gz</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<includes>
<include>${project.build.directory}/${project.build.finalName}</include>
<include>aid-athena-common</include>
</includes>
<useProjectArtifact>true</useProjectArtifact>
<unpack>false</unpack>
<scope>runtime</scope>
<outputDirectory>lib</outputDirectory>
</dependencySet>
</dependencySets>
<fileSets>
<!--
<fileSet>
<directory>target/classes</directory>
<outputDirectory>lib</outputDirectory>
<includes>
< ! - -
<include>vela.properties</include>
<include>application.properties</include>
<include>rspscheduler.properties</include>
- - >
</includes>
</fileSet>
-->
<!--
<fileSet>
<directory>${project.build.directory}</directory>
<outputDirectory>lib</outputDirectory>
<includes>
<include>${project.build.finalName}</include>
</includes>
</fileSet>
-->
</fileSets>
</assembly>