dev@glassfish.java.net

Re: build issue

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Tue, 13 Mar 2012 07:20:13 +0530

Hong,

Since http://maven.glassfish.org/content/groups/glassfish has been
decommissioned, you can't use it as a mirror anymore. Just remove the
entire <mirror/> element.

Sahoo
On Tuesday 13 March 2012 06:49 AM, hong.hz.zhang_at_oracle.com wrote:
> 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#FullBuildInstructions-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/hk2/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/hk2/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
>>>
>>