To build your Nexus plugin project, just run mvn 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.
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 following repositories are added to your environment:
- The Sonatype Forge Repository: http://repository.sonatype.org/content/groups/forge
- The Codehaus Snapshot Repository: http://snapshots.repository.codehaus.org
If you experience any difficulty with the build, you may also want to remove the section of the generated POM that is labelled with the #ITSet label.
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 both of the repositories listed above to your public group. You will also want to make sure that the Repository Policy setting for the Sonatype Forge Repository is set to "Release".