-
Notifications
You must be signed in to change notification settings - Fork 13
nexus
jezekp edited this page Mar 29, 2014
·
11 revisions
A custom nexus repository for own libraries is installed at http://eeg.kiv.zcu.cz:8081/nexus. In case you need an account let me know (jezekp [at] kiv [dot] zcu [dot] cz) I will create it.
A repository "releases" is prepared for released libraries. A new artifact can be created by an "Artifact Upload" tab.
To use an artifact you have to do following.
Add a plugin repository to your pom.xml
<pluginRepositories>
<!-- Local repository for plugins not available in public repos -->
<pluginRepository>
<id>releases</id>
<url>http://eeg.kiv.zcu.cz:8081/nexus/content/repositories/releases/</url>
</pluginRepository>
<!-- java.net (for maven-processor-plugin) -->
</pluginRepositories>
Add a repository
<repositories>
<!-- Local repository for in-house libs and jars not available in public repos -->
<repository>
<id>releases</id>
<url>http://eeg.kiv.zcu.cz:8081/nexus/content/repositories/releases/</url>
</repository>
</repositories>
Finally, add a dependency to the artifact you created (a demonstration artifact "test" is presented).
<dependencies>
<dependency>
<groupId>test</groupId>
<artifactId>test</artifactId>
<version>1.0</version>
</dependency>
</dependencies>