Re: Cactus under Maven2?

"Wendy Smoak" <[email protected]>
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <[email protected]>
[replying on the list]

On 11/28/06, Jones, Melvin [CNTUS Non-J&J] <[email protected]> wrote:

> I took a long look at your pom.xml.  It looks like you're using cargo to
> start your web container, but it's not clear to me how cactus then runs the
> unit tests.

There is an execution of surefire bound to the integration-test phase,
with the goal 'test'.  That's what should execute the tests.

> I'm able to start my application using "mvn cargo:start".  I'm also able to
> get tests to run when I do a "mvn compile", but I still can't quite figure
> out how to run my tests using cactus after maven deploys my application and
> cargo starts my web container.
>
> I've got to be missing something.  Do you see anything obvious?

Based on the output you sent, Cargo seems to be starting the app then
waiting for a CTRL-C.  You probably need to set 'wait' to false.  (I
think that used to be the default.)

See: http://cargo.codehaus.org/Maven2+Plugin+Reference+Guide

-- 
Wendy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.