My ~/.m2/settings.xml
looks like
<settings>
<pluginGroups>
<pluginGroup>org.inst.maven_inst_plugin</pluginGroup>
</pluginGroups>
<mirrors>
<mirror>
<id>local central mirror</id>
<mirrorOf>central</mirrorOf>
<url>http://ift.tt/1nPJHCV;
</mirror>
<mirror>
<id>local codehaus snapshot mirror</id>
<mirrorOf>codehaus</mirrorOf>
<url>http://ift.tt/1nPJHCX;
</mirror>
<mirror>
<id>local codehaus mirror</id>
<mirrorOf>codehaus snapshots</mirrorOf>
<url>http://ift.tt/1oflyRB;
</mirror>
<mirror>
<id>local jboss mirror</id>
<mirrorOf>jboss</mirrorOf>
<url>http://ift.tt/1nPJHCZ;
</mirror>
<mirror>
<id>local maven2-repository.dev.java.net mirror</id>
<mirrorOf>maven2-repository.dev.java.net</mirrorOf>
<url>http://ift.tt/1oflzoB;
</mirror>
<mirror>
<id>local apache.snapshot mirror</id>
<mirrorOf>apache.snapshot</mirrorOf>
<url>http://ift.tt/1nPJHD3;
</mirror>
<mirror>
<id>local maven-repository.dev.java.net mirror</id>
<mirrorOf>maven-repository.dev.java.net</mirrorOf>
<url>http://ift.tt/1oflzoD;
</mirror>
<mirror>
<id> inhouse snapshot mirror</id>
<mirrorOf>inhouse.snapshot</mirrorOf>
<url>http://ift.tt/1nPJFem;
</mirror>
</mirrors>
<profiles>
</profiles>
<usePluginRegistry>true</usePluginRegistry>
</settings>
This works fine as long as I am in company or using vpn
.
I was trying an idea and realized that since I am out of company's network, maven could not download, it hangs on
Downloading: http://ift.tt/1oflyRD
I trying setting up repository in my project's pom.xml
as
<repositories>
<repository>
<id>java.net</id>
<url>http://ift.tt/1fp8Ah7;
</repository>
</repositories>
But that did not help
Question
How can I ask maven to work outside of my company's network?
No comments:
Post a Comment