|
Maven Nexus Repository Manager Browse and search the repositories |
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.
How to configure your project to use the repositoriesHere's how to configure a Maven client to work with the online Maven repositories. 1. Install maven
2. Declare the repositories for your projectTo 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 projectsIn the directory where you just installed Maven, open and edit the conf/settings.xml file and add this to the <profiles> 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 includesFor 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> |
