将工件安装到特定的远程Maven存储库

问题描述

| 我有一个FTP,我想拥有我的个人Maven存储库,我希望将我的工件安装到该远程文件夹中,如何实现? 谢谢, 亚当。     

解决方法

使用maven-deploy-plugin的altDeploymentRepository配置属性(请参见此处)。
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-deploy-plugin</artifactId>
  <version>2.5</version>
  <configuration>
    <altDeploymentRepository>your-repository-url</altDeploymentRepository>
  </configuration>
</plugin>
    

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...