Maven 3: SSH deployment to foreign repository

Using the maven-deploy-plugin to deploy artifacts to a repository that is not the original target repository of a project is getting complicated with Maven 3 when the wagon SSH provider is not part of the Maven distribution. The following JAR files must be added to the Maven distribution into the lib/ext extension folder: jsch-0.1.44-1.jar plexus-utils-3.0.jar plexus-interactivity-api-1.0-alpha-6.jar wagon-ssh-2.2.jar\n* wagon-ssh-external-2.2.jar wagon-ssh-common-2.2.jar Then the parent pom.xml of the project must be extended by the following lines: ...

December 31, 2011 · 1 min · Michael Rumpf