Repository Management with Nexus

17.4. Adding Credentials to Your Maven Settings

When the Maven Site plugin deploys a site to Nexus, it needs to supply the appropriate deployment credentials to Nexus. To configure this, you need to add credentials to your Maven Settings. Open up your ~/.m2/settings.xml and add the following server configuration to the servers element.

Configuring Deployment Credentials for Nexus Site Deployment. 

<settings>
  <servers>
    <server>
      <id>nexus-site</id>
      <username>deployment</username>
      <password>deployment123</password>
    </server>
  </servers>
</settings>

[Note]

Configuring Deployment Credentials for Nexus Site Deployment uses the default deployment user and the default deployment user password. You will need to configure the username and password to match the values expected by your Nexus installation.