On 04/01/2011 11:15 AM, Marko Strukelj wrote:
I use the following settings.xml
<settings>
<profiles>
<profile>
<id>jboss-public-repository</id>
<repositories>
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
<
url>https://repository.jboss.org/nexus/content/groups/public-jboss/<...
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
<
url>https://repository.jboss.org/nexus/content/groups/public-jboss/<...
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>exo-public-repository</id>
<repositories>
<repository>
<id>exo-public-repository-group</id>
<name>eXo Public Maven Repository Group</name>
<
url>http://repository.exoplatform.org/content/groups/public</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>exo-public-repository-group</id>
<name>eXo Public Maven Repository Group</name>
<
url>http://repository.exoplatform.org/content/groups/public</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>jboss-public-repository</activeProfile>
<activeProfile>exo-public-repository</activeProfile>
</activeProfiles>
</settings>
You need to remove the exo-public-repository, you don't need
it anymore
and we need to make sure all dependencies come from 1 repo.
What's the advantage of mirrorOf?
If some people declared a repo in one of the dependencies, you change
that declaration and replace it by another repo. It's not really needed now.
Thomas
On Thu, Mar 31, 2011 at 9:07 PM, Thomas Heute <theute(a)redhat.com
<mailto:theute@redhat.com>> wrote:
I've updated GateIn portal to only use 1 repository
https://repository.jboss.org/nexus/content/groups/public/ (which
proxies
several repositories).
I kept the definition of the repo in GateIn Portal root pom to
facilitate users/contributors life when they want to build the portal.
For components, there is no definition of repositories (so it doesn't
get inherited) and if you need to build a component you will need
to add
the repository in your own settings.xml. I don't have the snippet
handy
(I use mirrorOf as I am psychotic), if someone has the definition
of the
profile, please paste it here.
Also do not add any new repository definition, we can add thirdparty
libraries into the JBoss one or we can proxy more repositories if
needed.
I tested locally and I hope I didn't break the build for anyone
(Tested
on Maven 2.2.1/Linux environment).
Thanks,
Thomas
_______________________________________________
gatein-dev mailing list
gatein-dev(a)lists.jboss.org <mailto:gatein-dev@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/gatein-dev