Hello there

I'm struggling with maven to make him work the way I want.

I've written a plugin which has two goals:
1) testCompile - compiles tests to be executed during integration-test phase.
2) test - starts tomcat, run tests and stops tomcat

In all jars associated with tests there is a 'test scope' set.
Normal tests (junit tests) which are run in the 'test-compile phase' are compiled without errors. These tests are based on StrutsTestCase which are based on JUnit. Somehow junit.jar is included in classpath during compilation and execution of these tests.
It's fine.

And now, my plugin wants to compile integration tests and then run them.
The first goal 'testCompile' has the following attributes
* @goal testCompile
* @phase test-compile
* @requiresDependencyResolution test

However, all jars which have scope set to test are not present in the classpath. Why?
There is no httpunit, htmlunit, junit etc.

Could some one tell me what I'm doing wrong and what I should do to make it work?

Cheers
Pablo

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to