Maven deploy with ftp

in
[code lang="shell"]
vim ~/.m2/settings.xml
[/code]
add
[code lang="xml"]
<settings>
...
<servers>
<server>
<id>ftp-repository</id>
<username>user</username>
<password>pass</password>
</server>
</servers>
</settings>
[/code]
in project file:
[code lang="shell"]
vim pom.xml
[/code]
add
[code lang="xml"]
...
</dependencies>
...
<distributionManagement>
<repository>
<id>ftp-repository</id>
<url>ftp://ftpServerA.com</url>
</repository>
</distributionManagement>
...
<build>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ftp</artifactId>
<version>1.0-alpha-6</version>
</extension>
</extensions>
</build>
...
[/code]
[code lang="shell"]
mvn deploy
[/code]
link: http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ftp.html

Komentarze

Popularne posty z tego bloga

Set up JBoss AS 5.1.0 and Seam 2.2.0 in Ubuntu 9.04