Hello, unfortunately, I was wrong. It still gives me a 401 when I use the "deploy" target. I am now resorting to using the "install" target only, and doing deployment via Jenkins. This is the preferred way anyway, since the developers should not deploy from their IDEs, but push it to our Git server triggering an automated build via Jenkins.
Nevertheless, thanks for the quick replies, Jens ________________________________________ From: Jean-Baptiste Onofré [[email protected]] Sent: Wednesday, October 08, 2014 1:41 PM To: [email protected] Subject: Re: 401 from Nexus when using mvn deploy on Karaf projects No problem. I worked and fixed issues on karaf-maven-plugin in 3.0.2-SNAPSHOT and 4.0.0-SNAPSHOT. Regards JB On 10/08/2014 01:35 PM, Rabe, Jens wrote: > 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 > -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
