-
Notifications
You must be signed in to change notification settings - Fork 13
nexus
jezekp edited this page Feb 21, 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 configuration to your pom.xml
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.5.1</version>
<extensions>true</extensions>
<configuration>
<serverId>local-nexus</serverId>
<nexusUrl>http://eeg.kiv.zcu.cz:8081/nexus/</nexusUrl>
</configuration>
</plugin>
</plugins>
</build>
- Add a plugin repository
<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>