TacB0sS
TacB0sS

Reputation: 10266

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 artifacts to be installed to that remote folder, how can achieve that?

Thanks, Adam.

Upvotes: 4

Views: 2663

Answers (1)

weekens
weekens

Reputation: 8282

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>

Upvotes: 3

Related Questions