I have a maven project where I am using the assembly plugin. I typically create my artifacts by running: mvn clean verify assembly:assembly (I have integration tests which I want run separately to unit tests).
When this runs, the assembly plugin is running the unit tests itself. This causes them to be run twice.
Is there a way I can tell the assembly plugin not to run the tests? I am tempted to run this in two steps: 1. mvn clean verify 2. if previous command successful, run mvn assembly:assembly -DskipTests=true
However, this is a little clumsy and would rather the single command.
Thanks, Steven