I found the solution :-)

What you need to do is specify the http proxy in the maven settings.xml.

Besides *HTTP *we need to set the *HTTPS *proxy to be able to download
artifacts from https://m2proxy.atlassian.com.

To be able to do so you need to pass the https settings to the MAVEN_OPTS in
Jenkins like this:

*-Dhttps.proxyHost=<proxyHost> -Dhttps.proxyPort=<proxyPort>
-Dhttps.proxyUser=<proxyUser> 
-Dhttps.proxyPassword=<proxyPassword>*

Then it works fine!
If your proxy doesn't require authentication, don't include the
-Dhttps.proxyUser and -Dhttps.proxyPassword.



--
View this message in context: 
http://jenkins.361315.n4.nabble.com/Maven-does-not-read-nexus-settings-from-settings-xml-java-net-UnknownHostException-m2proxy-atlassian-tp4662970p4664069.html
Sent from the Jenkins issues mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to