#65
[Maven] Copy file with SCP
<!-- Copy war to Test Server (via SCP) --> <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> <executions> <execution> <id>upload-jar</id> <phase>install</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <scp todir="${deploy.user}:${deploy.password}@${deploy.host}:${deploy.target}" trust="true" failonerror="false"> <fileset dir="${project.build.directory}"> <include name="*.jar" /> </fileset> </scp> </tasks> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant-jsch</artifactId> <version>1.8.4</version> </dependency> <dependency> <groupId>com.jcraft</groupId> <artifactId>jsch</artifactId> <version>0.1.42</version> </dependency> </dependencies> </plugin>
Comments are currently closed.