tycho – Uploading a directory using sftp with Maven

I don’t get why you couldn’t use mvn deploy to deploy your eclipse-update-site artifact. So, this is my suggestion.

First, update your distributionManagement section:

<!-- Enabling the use of FTP -->
<distributionManagement>
  <repository>
    <id>update-site</id>
    <url>sftp://your/url</url>
  </repository>
</distributionManagement>

Then, add the wagon extension for sftp:

<build>
  <extensions>
    <extension>
      <groupId>org.apache.maven.wagon</groupId>
       <artifactId>wagon-ssh</artifactId>
       <version>1.0-beta-6</version>
    </extension>
  </extensions>
</build>

Finally, add the credentials into your ~/.m2/settings.xml:

<server>
  <id>update-site</id>
  <username>foo</username>
  <password>secret</password>
</server>

And run mvn deploy.

Loading...

(Visited 2 times, 1 visits today)