dev@glassfish.java.net

Re: [v3] WORKAROUND for building v3

From: Sahoo <Sahoo_at_Sun.COM>
Date: Thu, 10 Sep 2009 10:05:56 +0530

Is that better than having a profile?

Jane Young wrote:
> See the "BETTER WORKAROUND". There is a mirror element in
> settings.xml that overrides the Nexus.
>
> Sahoo wrote:
>> Jane,
>>
>> Thanks for the information. Should we not have a profile that
>> bypasses nexus? That way, we don't have to edit the pom.xml.
>>
>> Thanks,
>> Sahoo
>>
>> Jane Young wrote:
>>> The workaround is to remove the references to Nexus server and
>>> replace it with Maven repositories. This workaround works for
>>> existing and clean local Maven repository
>>>
>>> 1. Checkout master-pom:
>>> svn checkout
>>> https://svn.dev.java.net/svn/glassfish-svn/trunk/master-pom
>>>
>>> 2. comment out references to Nexus server:
>>> http://maven.glassfish.org and add references to the following
>>> repositories (see diffs below):
>>>
>>> Index: pom.xml
>>> ===================================================================
>>> --- pom.xml (revision 31221)
>>> +++ pom.xml (working copy)
>>> @@ -85,6 +85,7 @@
>>>
>>> <repositories>
>>> <!-- first hits nexus repo for any artifact request, then
>>> falls to the next repo in the list / order -->
>>> +<!--
>>> <repository>
>>> <id>glassfish-repo-archive</id>
>>> <name>Nexus repository collection for Glassfish</name>
>>> @@ -93,10 +94,43 @@
>>> <updatePolicy>never</updatePolicy>
>>> </snapshots>
>>> </repository>
>>> +-->
>>> + <repository>
>>> + <id>repo1</id>
>>> + <name>repo1</name>
>>> + <url>http://download.java.net/maven/glassfish/</url>
>>> + <layout>default</layout>
>>> + </repository>
>>> + <repository>
>>> + <id>repo2</id>
>>> + <name>repo2</name>
>>> + <url>http://download.java.net/maven/2/</url>
>>> + <layout>default</layout>
>>> + </repository>
>>> + <repository>
>>> + <id>repo3</id>
>>> + <name>repo3</name>
>>> + <url>http://download.java.net/maven/1/</url>
>>> + <layout>legacy</layout>
>>> + </repository>
>>> + <repository>
>>> + <id>repo4</id>
>>> + <name>repo4</name>
>>> +
>>> <url>http://download.eclipse.org/rt/eclipselink/maven.repo/</url>
>>> + <layout>default</layout>
>>> + </repository>
>>> + <repository>
>>> + <id>repo5</id>
>>> + <name>repo5</name>
>>> + <url>http://deadlock.netbeans.org/maven2/</url>
>>> + <layout>default</layout>
>>> + </repository>
>>> +
>>> </repositories>
>>>
>>> <pluginRepositories>
>>> <!-- first hits nexus repo for any artifact request, then
>>> falls to the next repo in the list / order -->
>>> +<!--
>>> <pluginRepository>
>>> <id>glassfish-repo-archive</id>
>>> <name>Nexus repository collection for Glassfish</name>
>>> @@ -105,6 +139,20 @@
>>> <updatePolicy>never</updatePolicy>
>>> </snapshots>
>>> </pluginRepository>
>>> +-->
>>> + <pluginRepository>
>>> + <id>repo1</id>
>>> + <name>repo1</name>
>>> + <url>http://download.java.net/maven/glassfish/</url>
>>> + <layout>default</layout>
>>> + </pluginRepository>
>>> + <pluginRepository>
>>> + <id>repo2</id>
>>> + <name>repo2</name>
>>> + <url>http://download.java.net/maven/2/</url>
>>> + <layout>default</layout>
>>> + </pluginRepository>
>>> +
>>> </pluginRepositories>
>>> <distributionManagement>
>>>
>>>
>>> I have also attached a copy of the master-pom/pom.xml
>>>
>>> 3. compile master-pom.xml: "mvn install"
>>>
>>> 4. in v3/pom.xml update the version of the master-pom to
>>> "7-SNAPSHOT" and remove reference to Nexus server
>>> (maven.glassfish.org):
>>> Index: pom.xml
>>> ===================================================================
>>> --- pom.xml (revision 31218)
>>> +++ pom.xml (working copy)
>>> @@ -42,7 +42,7 @@
>>> <parent>
>>> <groupId>org.glassfish</groupId>
>>> <artifactId>pom</artifactId>
>>> - <version>6</version>
>>> + <version>7-SNAPSHOT</version>
>>> </parent>
>>> <groupId>org.glassfish</groupId>
>>> @@ -373,9 +373,11 @@
>>> </modules>
>>> </profile>
>>> </profiles>
>>> -
>>> +<!--
>>> <repositories>
>>> +-->
>>> <!-- first hits nexus repo for any artifact request, then
>>> falls to the next repo in the list / order -->
>>> +<!--
>>> <repository>
>>> <id>glassfish-repo-archive</id>
>>> <name>Nexus repository collection for Glassfish</name>
>>> @@ -384,7 +386,9 @@
>>> <updatePolicy>never</updatePolicy>
>>> </snapshots>
>>> </repository>
>>> +
>>> </repositories>
>>> +-->
>>>
>>> <build>
>>> <defaultGoal>install</defaultGoal>
>>>
>>> 5. compile v3
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>