I just made another discovery:

when building on Jenkins with only running the "install" goal and using the 
Maven Integration Plugin, the deployment succeeds, too.


________________________________
From: Rabe, Jens [[email protected]]
Sent: Wednesday, October 08, 2014 11:33 AM
To: [email protected]
Subject: 401 from Nexus when using mvn deploy on Karaf projects

Hello,

I have a strange problem: As soon as I add the karaf-maven-plugin to a pom.xml, 
and try to run "mvn deploy", the deployment fails giving me a 401 
(Unauthorized). When removing the plugin information from the pom.xml, the 
deployment works. I deploy to a snapshot repository, so deploying multiple 
times with the same version should work, I suppose. Strangely enough, when 
using the embedded Maven from m2e out of Eclipse, the deployment succeeds; it 
only fails when using maven from the command line.

What could be wrong here?

Regards,
Jens

Reply via email to