Maven 2 货物未在与maven 2集成的代理上工作

Maven 2 货物未在与maven 2集成的代理上工作,maven-2,cargo,Maven 2,Cargo,我在maven 2项目POM.xml中集成了Cargo插件 在热部署期间,我无法连接到可通过代理使用的Tomcat容器。My maven settings.xml已经包含代理设置,但cargo没有接收它 我试图明确地定义Cargo插件的代理设置,但也没有成功 我的Cargo插件xml如下所示: <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-mav

我在maven 2项目POM.xml中集成了Cargo插件

在热部署期间,我无法连接到可通过代理使用的Tomcat容器。My maven settings.xml已经包含代理设置,但cargo没有接收它

我试图明确地定义Cargo插件的代理设置,但也没有成功

我的Cargo插件xml如下所示:

<plugin>
     <groupId>org.codehaus.cargo</groupId>
     <artifactId>cargo-maven2-plugin</artifactId>
     <!--<version>1.0.1-alpha-1</version>-->
     <version>1.0-beta-1</version>
     <configuration>
      <container>
       <containerId>tomcat6x</containerId>
       <type>remote</type>
      </container>
      <configuration>
       <type>runtime</type>
       <properties>
        <cargo.proxy.host>xxx.xxx.xxx.xxx</cargo.proxy.host>
        <cargo.proxy.port>xxxx</cargo.proxy.port>
        <cargo.hostname>xxx.xxx.xxx.xxx</cargo.hostname>
        <cargo.protocol>http</cargo.protocol>
        <cargo.servlet.port>80</cargo.servlet.port>
        <cargo.tomcat.manager.url>http://xxx.xxx.xxx.xxx/manager</cargo.tomcat.manager.url>
        <cargo.remote.username>xxxxxxx</cargo.remote.username>
        <cargo.remote.password>xxxxxxx</cargo.remote.password>
       </properties>
      </configuration>
      <deployer>
       <type>remote</type>
       <deployables>
        <deployable>
         <groupId>Test</groupId>
         <artifactId>Test</artifactId>
         <type>war</type>
         <!--
          <properties> <context>optional root context</context>
          </properties> <pingURL>optional url to ping to know if deployable
          is done or not</pingURL> <pingTimeout>optional timeout to ping
          (default 20000 milliseconds)</pingTimeout>
         -->
        </deployable>
       </deployables>
      </deployer>
     </configuration>
    </plugin>

org.codehaus.cargo
cargo-maven2-plugin
1.0-beta-1
tomcat6x
遥远的
运行时
xxx.xxx.xxx.xxx
xxxx
xxx.xxx.xxx.xxx
http
80
http://xxx.xxx.xxx.xxx/manager
xxxxxxx
xxxxxxx
遥远的
试验
试验
战争
请帮忙

提前谢谢


Ashish

我可能错了,但我不认为货物支持这一点。但是,由于Tomcat的远程部署程序使用manager应用程序,因此使用HTTP,因此在调用maven时,通过在命令行上传递属性,尝试在JVM级别设置代理设置:

mvn cargo:deploy -Dhttp.proxyHost=<hostname> -Dhttp.proxyPort=<port>
希望将在Cargo 1.1.0中修复

export MAVEN_OPTS="-Dhttp.proxyHost=<hostname> -Dhttp.proxyPort=<port>"