I have a typical java project and I try to upload it to nexus with mvn deploy
command.
When I run it with mvn -X clean deploy -Dmaven.deploy.skip=false
, it shows in log:
[DEBUG] (f) retryFailedDeploymentCount = 1
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@65c33b92
[DEBUG] (f) skip = true
[DEBUG] -- end configuration --
[INFO] Skipping artifact deployment
and that's all. How can it be possible? Is there any suggestion?
Note: there isn't extra configuration in pom.xml
and I try to run it with Jenkins pipeline:
stage('Deploy') {
steps {
sh 'mvn -X clean deploy -Dmaven.deploy.skip=false'
}
}
Is there any suggestion?
Found the reason. When I check parent pom file, I found a script like:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
But it is strange, it works on local properly even with this config.