Uploaded image for project: 'Codehaus Cargo'
  1. CARGO-1202

Support specifying cargo daemon credentials in Maven plugin configuration

    Details

      Description

      im looking for the credentials of the cargo daemon that are used when cargo transfers a container to the remote cargo daemon.

      Here's my scenario:
      On a remote server, cargo daemon is deployed as a WAR file in a HTTP Basic authentication secured Tomcat server. Accessing the cargo daemon webapp using a browser, credentials are requested using the regular basic authentication dialog.

      Now, on my local machine I've a Maven project that uses the following cargo maven plugin configuration:

      <plugin>
      <groupId>org.codehaus.cargo</groupId>
      <artifactId>cargo-maven2-plugin</artifactId>
      <configuration>
      <container>
      <dependencies>
      <dependency>
      <groupId>mysql</groupId>
      <artifactId>mysql-connector-java</artifactId>
      <classpath>shared</classpath>
      </dependency>
      </dependencies>
      </container>
      <configuration>
      <properties>
      <cargo.port.offset>21000</cargo.port.offset>
      <cargo.servlet.port>80</cargo.servlet.port>
      <cargo.tomcat.ajp.port>9</cargo.tomcat.ajp.port>
      <cargo.jvmargs>-Xmx512m</cargo.jvmargs>
      </properties>
      </configuration>
      <deployables>
      <deployable>
      <properties>
      <context>ROOT</context>
      </properties>
      </deployable>
      <deployable>
      <properties>
      <context>cms</context>
      </properties>
      </deployable>
      </deployables>
      <daemon>
      <properties>
      <cargo.daemon.url>http://remote-cargo-daemon-host/</cargo.daemon.url>
      <cargo.daemon.handleid>project</cargo.daemon.handleid>
      
      <!-- ??? I'M MISSING THE FOLLOWING PROPERTIES / THE CURRENTLY DON'T SEEM TO EXIST ???
      <cargo.daemon.username>USERNAME</cargo.daemon.username>
      <cargo.daemon.password>PASSWORD</cargo.daemon.password>
      </properties>
      </daemon>
      </configuration>
      </plugin>
      

      How to specify username and password to log-in to the remote-cargo-host?

      IIRC the DaemonClient class' constructor allows to pass username and password. Is this functionality currently accessible using Maven?

        Attachments

          Activity

            People

            • Assignee:
              Vivian Steller (Inactive)
              Reporter:
              S. Ali Tokmen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: