Hi, James Depaul schrieb:
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?!
Yes, that's the maven way. You probably want to set up a multi-module build with your three pojects and declare dependencies between them.
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.
That should work. However, if you really want to migrate to maven I strongly advise you to refactor the projects to follow the maven standards.
Your help and examples will be appreciated.
Additionally, the two free books on maven2 listed here [1] are a good starting point to get familiar with maven.
Thanks, James
-Tim [1] http://maven.apache.org/articles.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
