>From: "Wendy Smoak" <[EMAIL PROTECTED]> > > On 6/15/06, Gary VanMatre wrote: > > > This is a bit off topic but does anyone know how to configure cargo to > > start > tomcat 5.5.x in debug mode so that you can attach in eclipse for interactive > debuging? I've messed with the cargo.jvmargs but didn't have any luck. > > Hmmm... betting that the Cargo plugin doesn't fork a new JVM, try > setting MAVEN_OPTS before executing 'mvn package cargo:start'. > > There's an example of starting Maven in debug mode in $M2_HOME/bin/mvn.bat. > > If that doesn't work, what did you try already, so I can start there > without repeating your experiments? >
First I tried adding a Win environment variable: JAVAOPTS=-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n My second attempt was to add the cargo.jvmarg to the /shale-apps pom.xml: <build> <finalName>${artifactId}</finalName> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <configuration> <container> <containerId>tomcat5x</containerId> <home>${cargo.tomcat5x.home}</home> <log>${project.build.directory}/tomcat5x.log</log> <output>${project.build.directory}/tomcat5x.out</output> </container> <configuration> <home>${project.build.directory}/tomcat5x</home> <properties> <cargo.jvmargs>-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n</cargo.jvmargs> </properties> </configuration> </configuration> </plugin> </plugins> </build> >From cygwin I tried setting MAVEN_OPTS as you suggested and then 'mvn clean >package cargo:start' export MAVEN_OPTS='-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n' I can attach to this port in eclipse but it doesn't stop at any of the break points. We are getting closer. > -- > Wendy > Gary > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >