Maven not working with proxy in Eclipse [message #1737210] |
Wed, 06 July 2016 12:47 |
Jean Vieuxtemps Messages: 1 Registered: July 2016 |
Junior Member |
|
|
Hi,
I'm trying to use Maven with Eclipse, but I have some trouble getting it to work with my proxy.
I installed Maven in C:\maven and I configured my proxy in C:\maven\conf\settings.xml and in C:\Users\[myusername]\.m2\settings.xml.
After some adjustments, I managed to get it working. Using maven from command line, everything seems to work (creating a project, downloading archetypes from the repository), so I suppose there is no problem here.
In Eclipse (I tried jee-mars and jee-neon), I changed the settings to point to the correct maven install path and settings.xml files.
Then, when trying to add a remote archetype catalog (http ://repo.maven.apache.org/maven2/archetype-catalog.xml), I get the message "Remote catalog is empty". When I try to create a new Maven project and click the button "Add Archetype...", I get an error like this one : "Can't resolve Archetype com.vaadin:vaadin-archetype-application:LATEST
org.eclipse.core.runtime.CoreException: Could not resolve artifact com.vaadin:vaadin-archetype-application:pom:LATEST".
I also tried to set the proxy settings in Eclipse (as "Native" or as "Manual"), but still maven doesn't work.
I used Wireshark to see what happens when I try to add the remote catalog, and I see it tries to do DNS requests directly to repo.maven.apache.org, instead of sending HTTP requests through the proxy.
So...
- Proxy settings in Eclipse are working fine (I can install plugins for example)
- Proxy settings in Maven (from command line) are working fine
- Proxy settings in Maven inside Eclipse are not working.
Can you help me please ?
Thanks.
Jean.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01417 seconds