Tejas Kanani
Tejas Kanani

Reputation: 133

How to copy my project dependecies to remote server in maven?

How can I copy all the dependencies to remote server? I've tried below one but it will be useful if we want to copy dependencies to our local path.

Is this possible to move all my project dependencies to remote path?

Upvotes: 1

Views: 522

Answers (1)

Stefan Ferstl
Stefan Ferstl

Reputation: 5265

The wagon-maven-plugin allows you to do that. It supports HTTP, FTP, SSH/SCP and WebDAV. To upload all your dependencies, you first need to copy them to a directory with the maven-dependency-plugin (goal copy-dependencies). In a second step you could use the wagon plugin's upload goal to copy them to your remote location.

Upvotes: 2

Related Questions