Configuring Maven to use the CEDAR Nexus Server - metadatacenter-attic/cedar-docs GitHub Wiki
CEDAR artifacts are hosted 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>
<repository>
<id>bmir-nexus-snapshots</id>
<url>https://nexus.bmir.stanford.edu/repository/snapshots</url>
<releases>
<enabled>false</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</snapshots>
</repository>
<repository>
<id>bmir-nexus-releases</id>
<url>https://nexus.bmir.stanford.edu/repository/releases</url>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<enabled>false</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</snapshots>
</repository>
</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>
</settings>
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/repository/snapshots</url>
</snapshotRepository>
<repository>
<id>bmir-nexus-releases</id>
<url>https://nexus.bmir.stanford.edu/repository/releases</url>
</repository>
</distributionManagement>