I have a multi-module project which is basically structured like this:

parent(pom only)
---module1
---module2
---module3

Module3 has Module1 and Module2 as dependencies. My question is: if I make a
source code change in a class in Module1, I would like to simply to a
Build(package or install) at the Module3 Level without having to do a clean
first. Is this possible?

It looks like it is not. Unlike ant based projects I have worked with, it
appears that with Maven2, whether you use package(which would resolve the
Module1 dependency from the target directory) or install(which would take
Module1 from the local repo), the existing artifact for Module1, either the
target or local repo, is being used as a dependency when building(mvn
compile) Module3. The only way I can get maven to recognize source code
updates in Module1 is to first do a mvn clean . . . followed by package.

Bottom line . . . is there anyway to JUST build a modules dependency
artifact when compiling the parent module, without doing a clean first?
-- 
View this message in context: 
http://www.nabble.com/Multi-module-compile-of-dependency-from-parent-tf3336285s177.html#a9278428
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to