我想用cargo-maven2-plugin部署我的战争,但它不像预期的那样工作。当我第一次部署时,它是有效的,但当我第二次部署时,我得到了一个错误后,取消部署执行。
org.apache.maven.lifecycle.LifecycleExecutionException:无法对项目XXX执行目标org.codehaus.cargo:cargo-maven2-plugin:1.7.16:redeploy (部署)-部署:目标org.codehaus.cargo:cargo-maven2-plugin:1.7.16:redeploy的执行部署失败:部署失败:空
下面是我的代码:
<profile>
<id>payara-remote</id>
<activation>
<property>
<name>deployAll</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<configuration>
<configuration>
<properties>
<cargo.servlet.port>${servlet.port}</cargo.servlet.port>
</properties>
</configuration>
<deployables>
<deployable>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<type>war</type>
</deployable>
</deployables>
</configuration>
<executions>
<execution>
<id>deploy</id>
<phase>pre-integration-test</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>“”“
发布于 2021-11-08 07:27:30
你可以尝试使用Payara定制版本的Maven Cargo插件吗?
版本: 1.8.4-payara-p1 (https://github.com/payara/Payara_PatchedProjects/tree/master/org/codehaus/cargo)
在您的项目中,https://github.com/payara/Payara_PatchedProjects/可以用作Maven库。
鲁迪
https://stackoverflow.com/questions/69864166
复制相似问题