【问题标题】:Cargo Cannot deploy to remote tomcat 8 with using cargo-maven-plugin货物无法使用 cargo-maven-plugin 部署到远程 tomcat 8
【发布时间】:2015-04-10 13:00:00
【问题描述】:

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

    <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 运行它时,它给了我以下错误

未能在项目 Audit_Management_DS 上执行目标 org.codehaus.cargo:cargo-maven2-plugin:1.4.8:deploy (default-cli):执行目标 org.codehaus.cargo:cargo-maven2-plugin 的默认 cli :1.4.8:部署失败:无法创建配置。参数(容器 [id = [tomcat8x]、类型 = [远程]]、配置类型 [运行时])没有注册配置。实际上没有为此配置注册的有效类型。也许你拼错了? -> [帮助 1]

【问题讨论】:

  • 我在使用 cargo-maven2-plugin 1.4.16 时遇到了同样的问题。

标签: maven tomcat cargo


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2011-09-20
    • 2011-04-19
    • 2012-04-02
    • 2012-03-03
    • 1970-01-01
    • 2014-12-14
    • 1970-01-01
    • 1970-01-01
    • 2011-01-17
    相关资源
    最近更新 更多