Cargo无法使用cargo-maven-plugin部署到远程tomcat 8 [英] Cargo Cannot deploy to remote tomcat 8 with using cargo-maven-plugin

查看:108
本文介绍了Cargo无法使用cargo-maven-plugin部署到远程tomcat 8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用货运插件在tomcat8上部署战争,我的输入如下:

I am trying to deploy war on tomcat8 using cargo plugin my entry is as follows:

    <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运行此程序时:部署它会给我以下错误

when i trying to run this using mvn cargo:deploy its giving me the following error

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

Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.8:deploy (default-cli) on project Audit_Management_DS: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.8:deploy failed: Cannot create configuration. There's no registered configuration for the parameters (container [id = [tomcat8x], type = [remote]], configuration type[runtime]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it? -> [Help 1]

推荐答案

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

Update to cargo-plugin version 1.4.13 solved this error message for me.

这篇关于Cargo无法使用cargo-maven-plugin部署到远程tomcat 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆