【问题标题】:Deployment on payara with cargo plugin使用 cargo 插件在 payara 上部署
【发布时间】:2021-12-20 03:40:54
【问题描述】:

我想用 cargo-maven2-plugin 部署我的 War,但它没有像预期的那样工作。 当我第一次部署时,它可以工作,但是当我第二次部署时,执行取消部署后出现错误。

org.apache.maven.lifecycle.LifecycleExecutionException: 无法执行目标 org.codehaus.cargo:cargo-maven2-plugin:1.7.16:redeploy (deploy) on project XXX-deploy: 目标 org.codehaus 的执行部署.cargo:cargo-maven2-plugin:1.7.16:redeploy failed: 部署失败:null

这是我的代码:

<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>

'''

【问题讨论】:

    标签: deployment maven-2 payara cargo-maven2-plugin


    【解决方案1】:

    你能试试 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 存储库。

    鲁迪

    【讨论】:

      猜你喜欢
      • 2012-06-28
      • 1970-01-01
      • 1970-01-01
      • 2015-11-22
      • 1970-01-01
      • 2010-11-26
      • 2011-06-11
      • 1970-01-01
      • 2015-12-30
      相关资源
      最近更新 更多