Repository Management with Nexus
21.6. Building a Nexus Plugin Project
To build your Nexus plugin project, just run
mvn clean install
in the newly generated project directory. Once the build is completed, your plugin’s JAR will be available in the project’s target/ folder.
Nexus plugin development requires you to use Apache Maven 3.
The Nexus Plugin project, as created by the Nexus Plugin archetype, depends on a number of artifacts which may not be available from the Maven Central repository. If you experience missing artifacts during your Nexus plugin project build, you should make sure that the Sonatype Public Grid Repository is available as release repository.
If you are using Nexus, and you have configured your build to work against a public group, you will want to make sure that you have added the repository to your public group.