If when building uPortal or CAS you run into a problem with Forbidden errors from http://repository.jboss.com/maven2 you can add the following ~/.m2/settings.xml file (or add the mirror bit to your existing settings file)

All this does is redirect all of the queries that go to the jboss repository to central to avoid the 403 errors.

-Eric


<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/POM/4.0.0";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd";>

<mirrors>
<mirror>
<id>jboss.redirect</id>
<name>redirect jboss queries to the correct repository</name>
<url>http://repository.jboss.org/nexus/content/groups/public-jboss</url>
<mirrorOf>jboss</mirrorOf>
</mirror>
</mirrors>
</settings>


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to