com.github.goldincopy-maven-plugin0.2.5deploy-archiveintegration-testcopy<" />

亚洲色图第一页I久久91I成人网站在线I国产A片I6080网站免费电影I亚洲色图图片I网址你懂的I精品人伦一区二区三区不卡I人妻一区I69无码I久久久久9999I嫩草视频在线观看

maven自動(dòng)化部署插件sshexec-maven-plugin

系統(tǒng) 2661 0
在maven pom.xml 文件plugins里增加
?
? ? ? ? ? ? <plugin>
? ? ? ? ? ? ? ? <groupId>com.github.goldin</groupId>
? ? ? ? ? ? ? ? <artifactId>copy-maven-plugin</artifactId>
? ? ? ? ? ? ? ? <version>0.2.5</version>
? ? ? ? ? ? ? ? <executions>
? ? ? ? ? ? ? ? ? ? <execution>
? ? ? ? ? ? ? ? ? ? ? ? <id>deploy-archive</id>
? ? ? ? ? ? ? ? ? ? ? ? <phase>integration-test</phase>
? ? ? ? ? ? ? ? ? ? ? ? <goals>
? ? ? ? ? ? ? ? ? ? ? ? ? ? <goal>copy</goal>
? ? ? ? ? ? ? ? ? ? ? ? </goals>
? ? ? ? ? ? ? ? ? ? ? ? <configuration>
? ? ? ? ? ? ? ? ? ? ? ? ? ? <resources>
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <resource>
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <targetPath>scp://hadoop:pwd@ip:/opt/17173/soa/</targetPath>
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? <file>${project.build.directory}/${project.artifactId}-${project.parent.version}-assembly.zip</file>
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? </resource>
? ? ? ? ? ? ? ? ? ? ? ? ? ? </resources>
? ? ? ? ? ? ? ? ? ? ? ? </configuration>
? ? ? ? ? ? ? ? ? ? </execution>
? ? ? ? ? ? ? ? </executions>
? ? ? ? ? ? </plugin>
? ? ? ? ? ? <plugin>
? ? ? ? ? ? ? ? <groupId>com.github.goldin</groupId>
? ? ? ? ? ? ? ? <artifactId>sshexec-maven-plugin</artifactId>
? ? ? ? ? ? ? ? <version>0.2.5</version>
? ? ? ? ? ? ? ? <executions>
? ? ? ? ? ? ? ? ? ? <execution>
? ? ? ? ? ? ? ? ? ? ? ? <id>unpack-archive</id>
? ? ? ? ? ? ? ? ? ? ? ? <phase>integration-test</phase>
? ? ? ? ? ? ? ? ? ? ? ? <goals>
? ? ? ? ? ? ? ? ? ? ? ? ? ? <goal>sshexec</goal>
? ? ? ? ? ? ? ? ? ? ? ? </goals>
? ? ? ? ? ? ? ? ? ? ? ? <configuration>
? ? ? ? ? ? ? ? ? ? ? ? ? ? <location>scp://hadoop:pwd@ip?:/opt/17173/soa/</location>
? ? ? ? ? ? ? ? ? ? ? ? ? ? <commands>
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?<command>ls -al; ${project.artifactId}-${project.parent.version}/bin/stop.sh</command>
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?<command>rm -rf ${project.artifactId}-${project.parent.version}</command>
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?<command>unzip ${project.artifactId}-${project.parent.version}-assembly.zip</command>
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?<command>${project.artifactId}-${project.parent.version}/bin/start.sh</command>
? ? ? ? ? ? ? ? ? ? ? ? ? ? </commands>
? ? ? ? ? ? ? ? ? ? ? ? </configuration>
? ? ? ? ? ? ? ? ? ? </execution>
? ? ? ? ? ? ? ? </executions>
? ? ? ? ? ? </plugin> ? ? ? ? ??
command里面命令自己編寫(xiě),可以寫(xiě)一行用;分開(kāi)多個(gè)命令,也可以寫(xiě)多個(gè)command
然后編寫(xiě)一個(gè)
integration-test.bat
call mvn -X clean integration-test -DskipTests=true
就可以很容易實(shí)現(xiàn)自動(dòng)部署啦!

maven自動(dòng)化部署插件sshexec-maven-plugin


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對(duì)您有幫助就好】

您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長(zhǎng)會(huì)非常 感謝您的哦!??!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論