Fork me on GitHub

Maven
Repositories



Nexus Repository Manager

Xeolabs provides its Java library projects as artifacts for dynamic download by the Maven build automation tool. The artifacts come in two flavours: releases, which are stable and recommended, and unreviewed snapshots, which are to be used with caution.


Releases: http://nexus.xeolabs.com/nexus/content/repositories/releases/
Snapshots: http://nexus.xeolabs.com/nexus/content/repositories/snapshots/


How to configure your project to use the repositories

Here's how to configure a Maven client to work with the online Maven repositories.

1. Install maven

  • Go to Maven download page
  • Download the latest version of Maven and install it on your local computer
  • Add Maven bin folder to your PATH

2. Declare the repositories for your project

To include release or snapshot Xeolabs Maven artifacts, add this to the <repositories> section in your project's pom.xml file:

<repository>
    <uniqueVersion>false</uniqueVersion>
    <id>xeolabs-releases</id>
    <url>http://nexus.xeolabs.com/nexus/content/repositories/releases</url>
</repository>
<snapshotRepository>
    <uniqueVersion>false</uniqueVersion>
    <id>xeolabs-snapshots</id>
    <url>http://nexus.xeolabs.com/nexus/content/repositories/snapshots</url>
</snapshotRepository>

3. Alternatively, declare the repositories for all of your projects

In the directory where you just installed Maven, open and edit the conf/settings.xml file and add this to the &ltprofiles&gt section:

<profile>  
   <id>xeolabs</id>  
   <repositories>  
      <repository>  
         <id>xeolabs-releases</id>  
         <name>Public online Xeolabs releases repository</name>  
         <url>http://nexus.xeolabs.com/nexus/content/repositories/releases</url>  
      </repository>    
      <repository>  
         <id>xeolabs-snapshots</id>  
         <name>Public online Xeolabs snapshots repository</name>  
         <url>http://nexus.xeolabs.com/nexus/content/repositories/snapshots</url>  
      </repository>  
   </repositories>  
</profile>

Just after the </profiles> add the following:
<activeProfiles>  
    <activeProfile>xeolabs</activeProfile>  
</activeProfiles>

4. Declare what artifacts your project includes

For example, to include a snapshot of the SDAZ library in your project, add this to the <dependencies> section of your project's pom.xml:

<dependency>
     <groupId>com.neocoders.sdaz</groupId>
     <artifactId>sdaz</artifactId>
     <version>1.0.0-SNAPSHOT</version>
</dependency>