首页 文章

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

提问于
浏览
7

我试图使用货物插件在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货物运行时:部署它给我以下错误

无法执行目标org.codehaus.cargo:cargo-maven2-plugin:1.4.8:部署(default-cli)项目Audit_Management_DS:执行default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.4 .8:部署失败:无法创建配置 . 参数没有注册配置(容器[id = [tomcat8x],type = [remote]],配置类型[runtime]) . 实际上,没有为此配置注册的有效类型 . 也许你拼错了? - > [帮助1]

1 回答

  • 3

    更新到cargo-plugin版本1.4.13为我解决了此错误消息 .

相关问题