Artifactory Proxy Example

Artifactory

A description of Artifactory directly from Artifactory's website:

"Artifactory is a Maven 2 enterprise repository. It offers advanced proxying, caching and security facilities to provide a robust, reproducible and independent build environment when using Maven. Artifactory is being used by clients ranging from small startup teams to international corporate teams employing distributed development, thus improving the development experience for tens of thousands of developers. Artifactory exposes a robust artifacts management platform using rich Ajax web UI and can be run out-of-the-box with a simple "unzip and launch"."

Configuring your Maven settings.xml

If you haven't configured your settings.xml to use Artifactory before, please see their guide Configuring Maven . The mirror-any approach is generally preferred in newer versions of Maven and Artifactory.

Configuring Repositories (newer Artifactory)

Log in as administrator, navigate to the Admin tab, under Configuration click Repositories, under remote repositories click New and fill in the details for each of the following (refer to old configuration file below for specifics):

Alternatively: Configuring the artifactory.config.xml (older Artifactory)

Configuring Artifactory for building uPortal is very simple. You just need to add 3 repositories to the remote repositories.

Adding remote repositories
<remoteRepository>
   <key>jasig.org.repo</key>
   <description>JA-SIG Maven2 Repository</description>
   <handleReleases>true</handleReleases>
   <handleSnapshots>true</handleSnapshots>
   <url>http://developer.ja-sig.org/maven2</url>
</remoteRepository>
<remoteRepository>
   <key>apache.snapshots</key>
   <description>Apache Maven2 Snapshots</description>
   <handleReleases>false</handleReleases>
   <handleSnapshots>true</handleSnapshots>
   <url>http://people.apache.org/repo/m2-snapshot-repository</url>
</remoteRepository>
<remoteRepository>
   <key>dist.codehaus.org.mule</key>
   <description>Mule Repository for Maven 2</description>
   <handleReleases>true</handleReleases>
   <handleSnapshots>true</handleSnapshots>
   <url>http://dist.codehaus.org/mule/dependencies/maven2/</url>
</remoteRepository>

Saving your changes

Either restart Artifactory (older versions) or force-reload the settings using the command line script or from the web-ui.