首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用货-maven-plugin无法部署到远程tomcat 8。

使用货-maven-plugin无法部署到远程tomcat 8。
EN

Stack Overflow用户
提问于 2015-02-10 13:14:58
回答 1查看 3.3K关注 0票数 8

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

代码语言:javascript
复制
    <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运行它时:部署它,给我以下错误

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

EN

回答 1

Stack Overflow用户

发布于 2015-04-16 08:19:42

更新到货插件版本1.4.13为我解决了这个错误信息。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28432626

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档