Hi Roy

we use

                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-surefire-plugin</artifactId>
                        </plugin>

is this a problem?

Andy

On Dec 11, 2013, at 3:19 PM, "Lyons, Roy" <[email protected]> wrote:

> I have a feeling that you aren't running unit tests, but instead
> integration tests...
> 
> http://maven.apache.org/surefire/maven-failsafe-plugin/ is what you want!
> that happens after the package phase.
> 
> On 12/11/13 4:57 PM, "Andrew E. Davidson" <[email protected]> wrote:
> 
>> 
>> 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.ht
>> ml 
>>                                      
>> http://maven.apache.org/plugins/maven-assembly-plugin/plugin-info.htm
>> l -->
>>                              <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.ht
>> ml 
>>              
>> 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}</includ
>> e>
>>                              <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>
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

Reply via email to