maven上传文件和执行linux命令
来源:互联网 发布:单片机控制语音芯片 编辑:程序博客网 时间:2024/06/14 16:05
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0-beta-5</version>
<executions>
<execution>
<id>default-cli</id>
<phase>integration-test</phase>
<goals>
<goal>upload</goal>
<goal>sshexec</goal>
</goals>
<configuration>
<serverId>snapshots</serverId>
<fromDir>H:\product\m-process-svc\m-process-web\target</fromDir>
<includes>process-svc.war</includes>
<excludes>pom.xml</excludes>
<url>scp://192.168.1.166</url>
<toDir>/home/fabu</toDir>
<commands>
<command>sh /home/fabu/kill-tomcat-svc.sh</command>
<command>rm -rf /opt/tomcat-svc/webapps/process-svc.war</command>
<command>rm -rf /opt/tomcat-svc/webapps/process-svc</command>
<command>cp /home/fabu/process-svc.war /opt/tomcat-svc/webapps/process-svc.war</command>
<command>/etc/init.d/tomcat-svc start</command>
</commands>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>1.0-beta-6</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>gbk</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0-beta-5</version>
<executions>
<execution>
<id>default-cli</id>
<phase>integration-test</phase>
<goals>
<goal>upload</goal>
<goal>sshexec</goal>
</goals>
<configuration>
<serverId>snapshots</serverId>
<fromDir>H:\product\m-process-svc\m-process-web\target</fromDir>
<includes>process-svc.war</includes>
<excludes>pom.xml</excludes>
<url>scp://192.168.1.166</url>
<toDir>/home/fabu</toDir>
<commands>
<command>sh /home/fabu/kill-tomcat-svc.sh</command>
<command>rm -rf /opt/tomcat-svc/webapps/process-svc.war</command>
<command>rm -rf /opt/tomcat-svc/webapps/process-svc</command>
<command>cp /home/fabu/process-svc.war /opt/tomcat-svc/webapps/process-svc.war</command>
<command>/etc/init.d/tomcat-svc start</command>
</commands>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>1.0-beta-6</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>gbk</encoding>
</configuration>
</plugin>
</plugins>
调用命令:mvn -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -e -U integration-test
0 0
- maven上传文件和执行linux命令
- ssh上传和下载linux文件命令
- Django中paramiko使用密钥执行命令和上传文件
- linux下提升bin和rpm文件执行权限命令
- Linux sh、source和.命令执行.sh文件的区别
- Linux sh、source和.命令执行.sh文件的区别
- Linux命令之文件打包上传和下载
- linux 命令执行java文件
- linux ftp 上传文件命令
- linux上传文件命令-rz
- Python远程登录Linux操作系统,执行命令、创建目录、上传及下载文件
- maven执行拓扑和jetty命令
- 关于JSch的使用,执行ssh命令,文件上传和下载以及连接方式
- python paramiko模块实现远程文件上传文件, 执行命令
- 利用mysql上传和执行文件
- java执行cmd命令和linux命令
- java执行cmd命令和linux命令
- maven库上传命令
- Android Permission denied 错误(附Android权限大全)
- 1013.Battle Over Cities
- Objective - C基础: 第一天 - 6.第一个OC类练习
- TCP 的那些事儿(上)
- ListView根据字母排列——仿照微信联系人
- maven上传文件和执行linux命令
- 自定义Writable
- 日经春秋 20150113
- Android Intent实现Activity之间跳转并传值
- apache php 关闭版本号显示,不显示版本号
- TCP 的那些事儿(下)
- 推荐1款免费在线OCR文字识别服务,识别特别准确!
- 日经社説 20150113 認知症研究の正常化を急げ
- 禁用ListView中某些item的点击事件