If an appropriate staging profile is found, a staging repository is created on the fly and the components are deployed into it. To successfully deploy to your repository manager, you will need to update your Maven Settings with the credentials for the deployment user.

These credentials are stored in the Maven Settings file in ~/.m2/

To add these credentials, add the following element to the servers element in your ~/.m2/file as shown in Listing deployment credentials in Maven Settings. Note that the server identifier listed in Listing deployment credentials in Maven Settings should match the server Id parameter you are passing to the Nexus Staging Maven plugin and in the example contains the default password for the deployment user - deployment123.

hudson error updating group repository metadata-49

Try to use the newest possible plugin version to take advantage of any available improvements. This configuration works only in Maven 3 and automatically replaces the deploy goal invocation of the Maven Deploy plugin in the deploy Maven life cycle phase with the deploy goal invocation of the Nexus staging Maven plugin.

The minimal required configuration parameters for the Nexus Staging Maven plugin are: With this configuration the Nexus Staging Maven plugin will stage the components locally and connect to the repository manager.

It will try to determine the appropriate staging profile by matching the component path with any repository targets configured with staging profiles with an activated implicit profile selection strategy.

The Nexus Staging Maven plugin is a specific and more powerful replacement for the Maven Deploy plugin with a number of features specifically geared towards usage with the staging suite.

The simplest usage can be configured by adding it to the project build plugins section as an extension: It is important to use a version of the plugin that is compatible with your Nexus Repository Manager Pro server.

Version 1.2 is compatible with Nexus Repository Manager Pro 2.3, Version 1.4.4 is compatible with Nexus Repository Manager Pro 2.4, Version 1.4.8 is compatible with Nexus Repository Manager Pro 2.5 and 2.6.

1.5 and 1.6.x can be used for Nexus Repository Manager Pro 2.7 to 2.10.

Once the repository manager is configured to receive components in the staging suite as documented in Section 11.2, “Configuring the Staging Suite”, you will have to update your project build configuration to deploy to the staging suite.

The preferred way to do this is to take advantage of the features provided by the Nexus Staging Maven plugin or the Nexus Staging Ant tasks as documented in Section 11.3.1, “Deployment with the Nexus Staging Maven Plugin” and Section 11.3.2, “Deployment with the Nexus Staging Ant Tasks”.

If you need to continue to use the Maven Deploy plugin, you can read about using it with the staging suite in Section 11.3.3, “Deployment with the Maven Deploy Plugin”.

With all tools you can use the manual upload of your components documented in Section 11.3.5, “Manually Uploading a Staged Deployment”.