-
Notifications
You must be signed in to change notification settings - Fork 19
nexus
jezekp edited this page Feb 23, 2014
·
11 revisions
A custom nexus repository for own libraries was installed at http://eeg.kiv.zcu.cz:8081/nexus web page. In case you need an accees let me know (jezekp [at] kiv [dot] zcu [dot] cz) I will create an account.
A repository "releases" is prepared for released libraries. You can create a new artifact using "Artifact Upload" tab.
To use your arfifact you need 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, you can add a dependency to the artifact you created (A demonstration artifact "test" was created).
<dependencies>
<dependency>
<groupId>test</groupId>
<artifactId>test</artifactId>
<version>1.0</version>
</dependency>
</dependencies>