• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven-issue connecting to the internet on DHCP machinebehind corporate firewall

 
indu pai
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am new to Maven. First i set it up on a desktop with static ip. Since i work behind a corporate firewall, I did the set up for proxy information in settings.xml. I was able to create an archetype. However when i try the same configuration in an laptop machine with dynamic IP, maven fails to connect to internet.
The error that i get is as follows:
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retri
eved from repository: central due to an error: Error transferring file: repo1.ma
ven.org
[DEBUG] Exception
org.apache.maven.wagon.TransferFailedException: Error transferring file: repo1.m
aven.org


Any idea what is going wrong?
Thank you!
 
Karl Heinz Marbaise
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

do you need a proxy to get to the internet on your laptop ? If so you have to setup the proxy entry in the settings.xml file...

Or are you using a company repository manager (like Nexus, Artifactory, Archiva etc.) ?

Kind regards
Karl Heinz Marbaise
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18282
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you misconfigured something. "repo1.maven.org" is the URL of the primary Maven repository, not the name of a file. In fact, rather than a file, it represents an entire directory!
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18282
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:I think you misconfigured something. "repo1.maven.org" is the URL (fully qualified server domain name) of the primary Maven repository, not the name of a file. In fact, rather than a file, it represents an entire directory!


Actually, the full URL is http://repo1.maven.org/maven2 for the current stuff.
 
indu pai
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the replies. I tried the same configuration outside the firewall. And it works!!
I think it is something to do with the extra-security measures in the corporate firewall.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic