Calling the mojo assembly will force Maven to build the project using the normal life cycle, right down to the package phase. So, when you run:
mvn install assembly:assembly
you are actually telling maven to do a few things twice, and that includes the testing phase, as you can see in the default lifecycle documentation .
To avoid this, consider just running:
mvn assembly:assembly
Or bind the plugin to the project build life cycle:
<project> ... <build> ... <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> ... </configuration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> ... </project>
Pascal thivent
source share