[ 
http://jira.codehaus.org/browse/MOJO-914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=139591#action_139591
 ] 

Paul Davis commented on MOJO-914:
---------------------------------

This works for me with Tomcat.
Here is the relevant part of my pom if it helps.
See the "cargo.jvmargs" section:
You don't need the "cargo.servlet.port", that's just an environment variable I 
use in my app.

<plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <configuration>
                <wait>false</wait>
                <container>
                        <containerId>tomcat5x</containerId>
                        <output>${basedir}/target/tomcat.log</output>
                        <log>${basedir}/target/cargo.log</log>
                        <zipUrlInstaller>
                                <url>${tomcat.zip.url}</url>
                                <installDir>${installDir}</installDir>
                        </zipUrlInstaller>
                        <timeout>60000</timeout>
                </container>
                <configuration>
                        <properties>
                                
<cargo.servlet.port>${int.test.port}</cargo.servlet.port>
                                
<cargo.jvmargs>-Dcom.sun.management.jmxremote.port=${jmxremote.port} 
-Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.authenticate=false</cargo.jvmargs>
                        </properties>
                </configuration>
        </configuration>

> Allow specifying custom environment variables
> ---------------------------------------------
>
>                 Key: MOJO-914
>                 URL: http://jira.codehaus.org/browse/MOJO-914
>             Project: Mojo
>          Issue Type: New Feature
>          Components: tomcat
>            Reporter: Marat Radchenko
>            Assignee: Mark Hobson
>
> See maven-jetty-plugin. I need this feature in order to be able to specify 
> javax.net.ssl.keyStore and javax.net.ssl.keyStorePassword variables.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to