将Web项目自动部署到tomcat服务器时,遇到了cargo-maven2-plugin插件版本与tomcat版本不兼容问题,其中pom.xml中相关配置信息如下:
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.9</version>
<configuration>
<container>
<containerId>tomcat9x</containerId>
<home>D:/ProgramFiles/apache-tomcat-9.0.13</home>
</container>
<configuration>
<type>existing</type>
<home>D:/ProgramFiles/apache-tomcat-9.0.13</home>
</configuration>
</configuration>
执行maven install 命令之后,报错:
Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.9:run