You can define a repository in the distributionManagement part of pom.xml.
When you want to upload the jar file to the repository, just run "mvn
deploy". In the example below, maven will upload the artifacts with scp
(secure copy) to /var/www/maven on gateway-demo.osuosl.org.

<project>
[...]
  <distributionManagement>
    <repository>
      <id>repository</id>
      <name>Repository</name>
      <url>scp://gateway-demo.osuosl.org/var/www/maven/</url>
    </repository>
  </distributionManagement>
[...]
</project>

To tell maven to use the repository when it looks for dependencies, add a
repository entry to pom.xml

<project>
[...]
  <repositories>
    <repository>
      <id>vt-repo</id>
      <name>Vermont Repository</name>
      <url>http://gateway-demo.osuosl.org/maven</url>
      <releases>
        <enabled>true</enabled>
      </releases>
    </repository>
  </repositories>
[...]
</project>

--
Tom Cort
Systems Developer
Vermont Department of Taxes

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to