Created
August 28, 2014 09:15
-
-
Save amondnet/b2fb6c00aaac4acb5ccd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" | |
> | |
... | |
<profiles> | |
<profile> | |
<!-- maven antrun:run -Pdeploy --> | |
<id>deploy</id> | |
<build> | |
<plugins> | |
<plugin> | |
<inherited>false</inherited> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<version>1.6</version> | |
<configuration> | |
<target> | |
<loadproperties srcFile="deploy.properties" /> | |
<ftp action="send" server="server" | |
remotedir="/a/b" userid="usr" | |
password="pw" depends="no" | |
verbose="yes" binary="yes"> | |
<fileset dir="modules/my-module/target"> | |
<include name="my-static-file.zip" /> | |
</fileset> | |
</ftp> | |
<!-- calls deploy script --> | |
<sshexec host="host" trust="yes" | |
username="usr" password="pw" | |
command="sh /my/script.sh" /> | |
<!-- SSH --> | |
<taskdef name="sshexec" | |
classname="org.apache.tools.ant.taskdefs.optional.ssh.SSHExec" | |
classpathref="maven.plugin.classpath" /> | |
<taskdef name="ftp" | |
classname="org.apache.tools.ant.taskdefs.optional.net.FTP" | |
classpathref="maven.plugin.classpath" /> | |
</target> | |
</configuration> | |
<dependencies> | |
<dependency> | |
<groupId>commons-net</groupId> | |
<artifactId>commons-net</artifactId> | |
<version>1.4.1</version> | |
</dependency> | |
<dependency> | |
<groupId>ant</groupId> | |
<artifactId>ant-commons-net</artifactId> | |
<version>1.6.5</version> | |
</dependency> | |
<dependency> | |
<groupId>ant</groupId> | |
<artifactId>ant-jsch</artifactId> | |
<version>1.6.5</version> | |
</dependency> | |
<dependency> | |
<groupId>jsch</groupId> | |
<artifactId>jsch</artifactId> | |
<version>0.1.29</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment