Install artifact to a specific remote Maven repositories
I have an FTP where I would like to have my personal Maven repository, I would like my artifa开发者_Go百科cts to be installed to that remote folder, how can achieve that?
Thanks, Adam.
Use altDeploymentRepository configuration property of maven-deploy-plugin (see 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>
精彩评论