Skip to content
jezekp edited this page Feb 21, 2014 · 11 revisions

Nexus Repository

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.

  1. 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>
  1. 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>
  1. 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>
Clone this wiki locally