Hello, Indeed switching to 3.0.2-SNAPSHOT solved it. I still was on 3.0.1, which had problems with Java 8, so I moved directly to 4.0.0-SNAPSHOT, which was the problem.
Thanks for your help. ________________________________________ From: Jean-Baptiste Onofré [[email protected]] Sent: Wednesday, October 08, 2014 11:57 AM To: [email protected] Subject: Re: 401 from Nexus when using mvn deploy on Karaf projects By the way, did you try with the latest 3.0.2-SNAPSHOT ? Regards JB On 10/08/2014 11:44 AM, Rabe, Jens wrote: > 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 -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
