This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Configuring Maven to use the CEDAR Nexus Server
Martin O'Connor edited this page Jul 27, 2016
·
5 revisions
CEDAR artifacts are hosed on BMIR's Nexus server.
A user called cedar that has administrative access on this server. The password is in the CEDAR password stash.
To use this Nexus server for releases create a Maven settings file (typically located in ~/.m2/settings.xml) with the following content:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>bmir</id>
<repositories>
<repository>
<id>bmir-nexus-snapshots</id>
<url>https://nexus.bmir.stanford.edu/content/repositories/snapshots</url>
</repository>
<repository>
<id>bmir-nexus-releases</id>
<url>https://nexus.bmir.stanford.edu/content/repositories/releases</url>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>bmir</activeProfile>
</activeProfiles>
<servers>
<server>
<id>bmir-nexus-snapshots</id>
<username>cedar</username>
<password>PASSWORD HERE</password>
</server>
<server>
<id>bmir-nexus-releases</id>
<username>cedar</username>
<password>PASSWORD HERE</password>
</server>
</servers>
The following distribution management section should also appear in the CEDAR parent Maven POM:
<distributionManagement>
<snapshotRepository>
<id>bmir-nexus-snapshots</id>
<url>https://nexus.bmir.stanford.edu/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>bmir-nexus-releases</id>
<url>https://nexus.bmir.stanford.edu/content/repositories/releases</url>
</repository>
</distributionManagement>