We have an existing project that we're trying to configure to use Maven
2.x.   The goal is to simply be able to compile and Test the project using
existing test cases.

I've configured the pom.xml for basic project configuration, but have run
into an issue already:  it turns out that our project is really composed of
several projects:

CodsCommon - contains common classes and artifacts
CodsWeb - contains web assets including MVC components
CodsWebTesting - contains all the test cases

The problem I'm facing is that in order to compile and run the test cases,
I need to first compile CodsCommon and CodsWeb and then CodsWebTesting - in
that order, into the common target/classes dir.   So, how do I setup those
dependencies in my pom.xml - a hint or a link would be appreciated.
Basically, I think I need to define each project independently and declare
them as dependencies to CodsWebTesting - is that how I need to do it?!

Also, each project  above has a custom directory path (not like standard
Maven), though I'm hoping that I can use the <sourceDirectory> tag to point
it in each project.

Your help and examples will be appreciated.

Thanks,
James

Reply via email to