簡體   English   中英

maven貨物部署到戰爭文件未能作為teamcity的一部分進行部署

[英]maven cargo deploy to war file fails to deploy as part of teamcity

相同的部署在Windows和Linux上正常工作 - 但是使用teamcity及其內置的maven我得到一個錯誤。 本地部署,錯誤是:

容器配置目錄“/ BuildAgent / work / 68d4a71c8dc5cfd9 / target / cargo / configurations / tomcat8x”不存在。 請在嘗試執行任何本地部署之前配置容器。

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所需的pom部分嗎? teamcity和vanilla maven有什么不同嗎? 我在兩種環境中都使用相同版本的maven。

在TeamCity外部的Linux機器上執行它時,您的部署是否有效? 是否正確定義了${env.CATALINA_HOME}

我的猜測是${env.CATALINA_HOME}指向錯誤的地方

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM