<execution>
<id>upload-deploy</id>
<!-- 运行package打包的同时运行upload-single和sshexec -->
<phase>package</phase>
<goals>
<goal>upload-single</goal>
<goal>sshexec</goal>
</goals>
<configuration>
<fromFile>target/${pack-name}</fromFile>
<url>
<![CDATA[scp://${remote-username}:${remote-passwd}@${remote-addr}${service-path}]]></url>
<commands>
<command>sh /h/b/remote-exec.sh</command>
</commands>
<!-- 运行命令 mvn clean package wagon:upload-single wagon:sshexec-->
<displayCommandOutputs>true</displayCommandOutputs>
</configuration>
</execution>
spring boot 设置 wagon 自动打包部署插件在 debug 模式下运行就不打包部署
最新推荐文章于 2023-10-25 09:35:23 发布
1258

被折叠的 条评论
为什么被折叠?



