小编dhi*_*ngh的帖子

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

我试图使用货物插件在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>
Run Code Online (Sandbox Code Playgroud)

当我尝试使用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]

tomcat cargo maven

7
推荐指数
1
解决办法
2630
查看次数

标签 统计

cargo ×1

maven ×1

tomcat ×1