dev@glassfish.java.net

RE: build issue

From: David Zhao <liang.x.zhao_at_oracle.com>
Date: Mon, 12 Mar 2012 18:38:09 -0700 (PDT)

Hi Hong,

Are you behind a firewall? If yes please try to set proxy in settings.xml.

Thanks,
David Zhao

-----Original Message-----
From: Hong Zhang
Sent: Tuesday, March 13, 2012 9:20 AM
To: Sanjeeb Sahoo
Cc: dev_at_glassfish.java.net; Jane Young; dev_at_glassfish.dev.java.net
Subject: Re: build issue

What I should change the reference of maven.glassfish.org to? This is what I have in my settings.xml now:

<?xml version="1.0" encoding="UTF-8"?>
<settings>
<!-- divert the traffic to the external glassfish nexus to internal nexus --> <mirrors> <mirror> <id>internal-glassfish-nexus</id> <url>http://maven.glassfish.org/content/groups/glassfish</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
</settings>

I had no problem building the trunk until recently, is there something just changed recently?

I tried to do offline build mvn -o clean build, but it seems this is not in my local repository either:

Project ID: org.glassfish.hk2:hk2-maven-plugin

Reason: POM 'org.glassfish.hk2:hk2-maven-plugin' not found in
repository: System is offline.

   org.glassfish.hk2:hk2-maven-plugin:pom:1.6.35

  for project org.glassfish.hk2:hk2-maven-plugin


How could I work around it?

Thanks,

- Hong


On 3/12/2012 7:34 PM, Sahoo wrote:
> It basically means there is some reference to non-existent nexus
> server in maven settings.xml, right? Instead of removing such stale
> reference, why should one add a mirror it instead?
>
> Sahoo
>
> On Tuesday 13 March 2012 03:20 AM, Jane Young wrote:
>> Hi Hong,
>>
>> Looks like your workspace is still referencing maven.glassfish.org.
>> See workaround here:
>> https://wikis.oracle.com/display/GlassFish/FullBuildInstructions#Full
>> BuildInstructions-Unabletobuildbecausemaven.glassfish.orgisoffline
>>
>> HTH,
>> Jane
>>
>> On 3/12/12 2:00 PM, hong.hz.zhang_at_oracle.com wrote:
>>> Any one seeing this? I have the latest workspace:
>>>
>>> Downloading:
>>> http://maven.glassfish.org/content/groups/glassfish/org/glassfish/hk
>>> 2/hk2-maven-plugin/1.6.35/hk2-maven-plugin-1.6.35.pom
>>> [WARNING] Unable to get resource
>>> 'org.glassfish.hk2:hk2-maven-plugin:pom:1.6.35' from repository
>>> central (http://repo1.maven.org/maven2): Error transferring file:
>>> Connection timed out
>>> Downloading:
>>> http://maven.glassfish.org/content/groups/glassfish/org/glassfish/hk
>>> 2/hk2-maven-plugin/1.6.35/hk2-maven-plugin-1.6.35.pom
>>> [WARNING] Unable to get resource
>>> 'org.glassfish.hk2:hk2-maven-plugin:pom:1.6.35' from repository
>>> central (http://repo1.maven.org/maven2): Error transferring file:
>>> Connection timed out
>>> [INFO]
>>> --------------------------------------------------------------------
>>> ----
>>>
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> --------------------------------------------------------------------
>>> ----
>>>
>>> [INFO] Error building POM (may not be this project's POM).
>>>
>>>
>>> Project ID: org.glassfish.hk2:hk2-maven-plugin
>>>
>>> Reason: POM 'org.glassfish.hk2:hk2-maven-plugin' not found in
>>> repository: Unable to download the artifact from any repository
>>>
>>> org.glassfish.hk2:hk2-maven-plugin:pom:1.6.35
>>>
>>> from the specified remote repositories:
>>> internal-glassfish-nexus
>>> (http://maven.glassfish.org/content/groups/glassfish)
>>>
>>> for project org.glassfish.hk2:hk2-maven-plugin
>>
>