You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Boxee Support <su...@boxee.tv> on 2010/12/27 22:18:31 UTC
Request received: Tests run twice using assembly plugin (ticket #21984)
## In replies all text above this line is added to the ticket ##
Request received: Tests run twice using assembly plugin (ticket #21984)
Your request (#21984) has been received, and is being reviewed by our support staff.
To review the status of the request and add additional comments, follow the link below:
http://support.boxee.tv/tickets/21984
----------------------------------------------
Maven Users List, Dec-27 04:18 pm (EST):
I am using the assembly plugin to build a zip file for a project. This
uses a custom made assembly descriptor.
The pom for this projects lists several modules, each of which has its
own pom and builds a jar.
For some reason I don't understand, this setup causes each submodule to
be attempted to be built twice.
The first time through, each submodule is built and its tests run. The
second time through, maven determines that there is nothing to compile
and doesn't do any building, but the surefire plugin doesn't realize
that there's nothing to do and runs the tests again.
So the root problem appears to be - why is it building everything twice?
That would be the first thing to solve. If this is unavoidable, is
there some way to avoid the tests the second time around?
Thanks
Assembly descriptor:
===================
<?xml version="1.0" encoding="UTF-8"?>
<assembly>
<id>BPM</id>
<formats>
<format>zip</format>
</formats>
<baseDirectory>bpm</baseDirectory>
<moduleSets>
<moduleSet>
<binaries>
<outputDirectory>lib</outputDirectory>
<includeDependencies />
<dependencySets>
<dependencySet>
<scope>runtime</scope>
<outputDirectory>lib</outputDirectory>
<useTransitiveDependencies />
</dependencySet>
</dependencySets>
<unpack>false</unpack>
</binaries>
</moduleSet>
</moduleSets>
<fileSets>
<fileSet>
<directory>../Submod1/unpackaged/config</directory>
<outputDirectory>config</outputDirectory>
<includes>
<include>**</include>
</includes>
</fileSet>
</fileSets>
</assembly>
POM
===
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.what.ever</groupId>
<artifactId>BPM</artifactId>
<version>0.0.2-SNAPSHOT</version>
<packaging>pom</packaging>
<name>BPM</name>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
<configuration>
<descriptor>src/main/assembly/zip.xml</descriptor>
<finalName>${TAG}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
</dependencies>
<dependencyManagement>
<dependencies>
</dependencies>
</dependencyManagement>
<modules>
<module>../Submod1</module>
<module>../Submod2</module>
<module>../Submod3</module>
</modules>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
--------------------------------
This email is a service from Boxee Support