There are cases, we might be intested to exclude some of the module's artifact upload to remote repository during deployment phase. This can be achieved through the maven-deploy-plugin. Here is an example:
Upon including the above plugin, you should see the following after running mvn deploy in your build output:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-deploy-plugin</artifactId> | |
<version>2.4</version> | |
<configuration> | |
<skip>true</skip> | |
</configuration> | |
</plugin> | |
... | |
</build> |
[INFO] [deploy:deploy]
[INFO] skipping artifact deployement
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------