Goals

这个插件的 goal有:

Goal 描述
deploy:deploy 部署artifact到远程仓库
deploy:deploy-file 在远程仓库安装artifact
deploy:help 显示帮助信息

使用

在project的插件配置中指定版本

  1. <project>
  2. ...
  3. <build>
  4. <!-- To define the plugin version in your parent POM -->
  5. <pluginManagement>
  6. <plugins>
  7. <plugin>
  8. <groupId>org.apache.maven.plugins</groupId>
  9. <artifactId>maven-deploy-plugin</artifactId>
  10. <version>2.8.2</version>
  11. </plugin>
  12. ...
  13. </plugins>
  14. </pluginManagement>
  15. <!-- To use the plugin goals in your POM or parent POM -->
  16. <plugins>
  17. <plugin>
  18. <groupId>org.apache.maven.plugins</groupId>
  19. <artifactId>maven-deploy-plugin</artifactId>
  20. <version>2.8.2</version>
  21. </plugin>
  22. ...
  23. </plugins>
  24. </build>
  25. ...
  26. </project>