We're updating the issue view to help you get more done. 

Support specifying cargo daemon credentials in Maven plugin configuration

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:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 <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?

Status

Assignee

Vivian Steller

Reporter

S. Ali Tokmen

Components

Fix versions

Affects versions

1.4.2

Priority

Major