相同的部署在Windows和Linux上正常工作 – 但使用teamcity及其内置的maven我得到一个错误。 本地部署,错误是:
容器configuration目录“/ BuildAgent / work / 68d4a71c8dc5cfd9 / target / cargo / configurations / tomcat8x”不存在。 请在尝试执行任何本地部署之前configuration容器。
pom的相关部分如下所示:
<plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.4.8</version> <configuration> <container> <containerId>tomcat8x</containerId> <home>${env.CATALINA_HOME}</home> </container> <configuration> <type>existing</type> <home>${env.CATALINA_HOME}</home> </configuration> <deployables> <deployable> <groupId>com.myapp</groupId> <artifactId>ROOT</artifactId> <type>war</type> <properties> <context>${project.build.finalName}</context> </properties> </deployable> </deployables> <deployer> <type>installed</type> </deployer> </configuration> </plugin>
我错过了Ubuntu所需的一部分吗? teamcity是否做了与香草maven不同的事情? 我在这两种环境中使用相同版本的maven。
在TeamCity之外的Linux机器上执行它时,您的部署是否工作? ${env.CATALINA_HOME}
是否正确定义?
我的猜测是${env.CATALINA_HOME}
指向错误的地方