maven - Cargo 无法使用 cargo-maven-plugin 部署到远程 tomcat 8

标签 maven tomcat cargo

我正在尝试使用 cargo 插件在 tomcat8 上部署 war 我的条目如下:

    <plugins>
      <plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <version>1.4.8</version>
        <configuration>
          <container>
            <containerId>tomcat8x</containerId>
            <type>remote</type>
          </container>
          <configuration>
            <type>runtime</type>
            <properties>
              <cargo.remote.username>tomcat</cargo.remote.username>
              <cargo.remote.password>s3cret</cargo.remote.password>
              <cargo.tomcat.manager.url>http://localhost:1234/manager/text</cargo.tomcat.manager.url>
            </properties>
          </configuration>
          <deployables>
            <deployable>
              <groupId>${project.groupId}</groupId>
              <artifactId>${project.artifactId}</artifactId>
              <type>war</type>
              <properties>
                <context>/auditAPP</context>
              </properties>
            </deployable>
          </deployables>
        </configuration>
      </plugin>
    </plugins>

当我尝试使用 mvn cargo:deploy 运行它时出现以下错误

Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.8:deploy (default-cli) on project Audit_Management_DS: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.8:deploy failed: Cannot create configuration. There's no registered configuration for the parameters (container [id = [tomcat8x], type = [remote]], configuration type[runtime]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it? -> [Help 1]

最佳答案

更新到 cargo-plugin 版本 1.4.13 为我解决了这个错误消息。

关于maven - Cargo 无法使用 cargo-maven-plugin 部署到远程 tomcat 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28432626/

相关文章:

android - 无法解析配置 ':classpath' 的所有依赖项

java - 无法建立安全连接,因为此站点使用不受支持的协议(protocol)

tomcat - Jboss EAP 5 和 Tomcat 6 在同一个 Win 环境中。 (Jboss up时获取Toncat的主页)

tomcat - 如何关闭 Apache Olingo OData 2.0 缓存?

java - 如何远程部署war文件到远程glassfish?

maven - Jenkins + maven cargo + 2 tomcats

java - Tomcat 无法使用 cargo maven 启动组件

java - Maven Bundle 插件嵌入 deps 排除文件或包

eclipse - 将项目导入 Eclipse 时禁用 Maven 项目构建器

java - 如何将此更改日志库添加到 Eclipse 中当前的 Android 项目中?