O'Reilly logo

Apache Maven 3 Cookbook by Srirangan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deployment automation

The Maven Deploy Plugin is used to add artifact(s) to a remote repository during the deploy phase of the build lifecycle.

The deploy plugin introduces two goals:

  • deploy:deploy: To deploy a project and all its artifacts
  • deploy:deploy-file: To deploy a single artifact file

Getting ready

Deployment to a repository means not only to copy the artifacts to a folder but to update metadata regarding the artifacts as well. It requires:

  • Target repository: Target repository is where the artifacts will be deployed. Its location, the protocol for access (FTP, SCP, SFTP), and user-specific account information are required.
  • Target artifacts: Target artifacts are the artifacts which are to be deployed. Artifact groupId, artifactId, version, packaging ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required