dev@glassfish.java.net

Re: can't build

From: Jane Young <jane.young_at_oracle.com>
Date: Thu, 09 Dec 2010 14:20:20 -0800

Hi Bobby,

You need to have proxy set in the .m2/settings.xml:
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>www-proxy.us.oracle.com</host>
<port>80</port>
</proxy>
</proxies>

or reference the internal Nexus in .m2/settings.xml:
<mirrors>
<mirror>
<id>internal-glassfish-nexus</id>
<url>http://gf-maven.us.oracle.com/nexus/content/groups/internal-gf-nexus/</url>
</mirror>
</mirrors>

Jane


On 12/9/10 1:46 PM, Bobby Bissett wrote:
> With a fresh check out and empty local mvn repository, I'm hitting this issue when I try to build:
>
> hostname% mvn -Prelease-phase1 install
> [INFO] Scanning for projects...
> Downloading: http://repo1.maven.org/maven2/org/glassfish/pom/8/pom-8.pom
> [WARNING] Unable to get resource 'org.glassfish:pom:pom:8' from repository central (http://repo1.maven.org/maven2): Error transferring file: Network is unreachable
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
> [etc]
>
> I can hit http://repo1.maven.org/maven2/org/glassfish/pom/8/pom-8.pom fine in a browser (through proxy), so that's up. Isn't there some internal site that's supposed to supply this if I'm inside OWAN? Or do I need to create a settings file with some proxy info now?
>
> Thanks,
> Bobby
>