I tried adding this to settings.xml;
<properties> <maven.deploy.skip>true</maven.deploy.skip> </properties>
But that did not work. mvn deploy -Dmaven.skip.deploy = true seems to work fine. I also assume that adding the above tag to pom.xml will also work. Is there a way to achieve this using settings.xml?
The reason I want to do this is to get people to generate Jenkins jobs in order to use the Jenkins method to deploy artifacts and not use the deployment target. The Jenkins method will deploy artifacts only when the whole assembly is successful, but the deployment target can deploy artifacts even when the rest of the assembly is about to fail. I am open to suggestions on other ways to achieve this, except that regular users cannot create and configure tasks in Jenkins.
source share