Cargo does not work on proxy server integrated with maven 2

I have a built-in Cargo plugin in my maven 2 pOM.xml project.

During a hot deployment, I cannot connect to the Tomcat container accessible through a proxy. My maven settings.xml already contains proxy server settings, but the load does not collect it.

I tried to determine the proxy settings for the Cargo plugin, but that didn't work either.

My xml plugin for Cargo:

<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>

Please, help.

Thanks in advance.

Ashish

+3
source share
2 answers

, , , Cargo . Tomcat - , , HTTP, - JVM, maven:

mvn cargo:deploy -Dhttp.proxyHost=<hostname> -Dhttp.proxyPort=<port>

MAVEN_OPTS:

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

, - ​​ Cargo 1.1.0

0

Source: https://habr.com/ru/post/1719711/


All Articles