mvn release:perform tries to put sources.jar twice to nexus

907 views Asked by At

mvn release perform tries to put sources.jar twice to nexus.
Firstly it puts it with other artifacts (.war, javadoc.jar..).
Then it does bulk deploy and tries to put sources.jar again. Any ideas what is happening ?

[INFO] [INFO] Bulk deploying locally gathered artifacts from directory:
[INFO] [INFO]  * Bulk deploying locally gathered snapshot artifacts to URL
1

There are 1 answers

0
Judrius On BEST ANSWER

maven-deploy-plugin was conflicting with nexus-staging-maven-plugin. I had to put <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin>