dev@glassfish.java.net

Re: why can't I build GF trunk?

From: Jane Young <jane.young_at_oracle.com>
Date: Thu, 12 May 2011 06:29:29 -0700

I have put in a workaround in maven-antrun-extended-plugin.
If you're *NOT* in OWAN (DIA), you don't need to set <mirror> in
setting.xml.

If you're in OWAN, you have two options:

1. set proxy:
<proxies>
<proxy>
<id>OWANproxy</id>
<active>true</active>
<protocol>http</protocol>
<host>www-proxy.us.oracle.com</host>
<port>80</port>
</proxy>
</proxies>

OR

2. Set <mirror> referencing the internal Nexus:
<mirrors>
<mirror>
<id>internal-glassfish-nexus</id>
<url>http://gf-maven.us.oracle.com/nexus/content/groups/internal-gf-nexus/</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>

You don't need to set both.

Snjezana will work on removing maven-antrun-extended-plugin from
packaging and that should improve build performance.


On 5/10/11 11:51 AM, Jane Young wrote:
> Yes.
>
> On 5/10/11 11:46 AM, Bobby Bissett wrote:
>> On 5/10/11 2:29 PM, Jane Young wrote:
>>> If you're in OWAN, you also need the proxy in settings.xml:
>>> [...]
>>>
>>> OR
>>> reference to the internal GF Nexus:
>>> [...]
>>
>> This is my whole file, and am running in OWAN. Is this sufficient?
>>
>> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
>> http://maven.apache.org/xsd/settings-1.0.0.xsd">
>> <proxies>
>> <proxy>
>> <id>OWANproxy</id>
>> <active>true</active>
>> <protocol>http</protocol>
>> <host>www-proxy.us.oracle.com</host>
>> <port>80</port>
>> </proxy>
>> </proxies>
>>
>> <mirrors>
>> <mirror>
>> <id>glassfish-nexus</id>
>> <url>http://maven.glassfish.org/content/groups/glassfish</url>
>> <mirrorOf>*</mirrorOf>
>> </mirror>
>> </mirrors>
>>
>> </settings>
>>
>