Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cargo无法使用Cargo maven插件部署到远程tomcat 8_Maven_Tomcat_Cargo - Fatal编程技术网

Cargo无法使用Cargo maven插件部署到远程tomcat 8

Cargo无法使用Cargo maven插件部署到远程tomcat 8,maven,tomcat,cargo,Maven,Tomcat,Cargo,我正在尝试使用cargo插件在tomcat8上部署war我的条目如下: <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.4.8</version>

我正在尝试使用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>

org.codehaus.cargo
cargo-maven2-plugin
1.4.8
tomcat8x
遥远的
运行时
雄猫
s3cret
http://localhost:1234/manager/text
${project.groupId}
${project.artifactId}
战争
/auditAPP
当我尝试使用mvn cargo:Deployits运行它时,会出现以下错误

未能在项目审核管理上执行goal org.codehaus.cargo:cargo-maven2-plugin:1.4.8:deploy(默认cli)goal org.codehaus.cargo:cargo-maven2-plugin:1.4.8:deploy失败:无法创建配置。没有参数的注册配置(容器[id=[tomcat8x],类型=[remote]],配置类型[runtime])。实际上,没有为此配置注册的有效类型。也许你拼错了?->[帮助1]


更新到cargo插件版本1.4.13为我解决了此错误消息。

我在cargo-maven2-plugin 1.4.16上遇到了同样的问题。