When we want to use maven command line to upload zip type artifact to artifact repository then we don't want resources, compiler, surefire, install phases in maven process, only assembly would be enough.
To skip particular phases
- go to each plugin's original website phase
- according to latest running plugin version download the same to our own project
- refer the skip phase configuration of particular phase, either it can be done command line or as part of the build-plugin-configuration.
Example using POM.xml file
<project>
[...]
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
[...]
</project>
Using command
mvn install -Dmaven.test.skip=true
Comments
Post a Comment