我有一个 FTP,我想在其中拥有我的个人 Maven 存储库,我想将我的 Artifact 安装到该远程文件夹中,如何实现?
谢谢,
亚当。
最佳答案
使用 maven-deploy-plugin 的 altDeploymentRepository 配置属性(参见 here)。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.5</version>
<configuration>
<altDeploymentRepository>your-repository-url</altDeploymentRepository>
</configuration>
</plugin>
关于maven - 将 Artifact 安装到特定的远程 Maven 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5778281/