The problem is that a child does not know where the sources of its
parents are located, and therefore it is completely unable to trigger
its build. You probably have set up one or more parent aggregator
projects and you mapped this hierarchy onto the file/directory structure
but this is not mandatory at all. You can very well use a parent just to
define the default version to use for dependencies, or the default
target of the compiler, other properties that are common through all
your projects and many more things.
You should probably read again the first two paragraphs here:
http://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project_Inheritance_vs_Project_Aggregation
The first one explains the benefits of inheritance while the second
explain the aggregation.
Hope this helps you clear things out.
Cheers,
Guillaume
Le 11/09/2011 06:21, Jason Pyeron a écrit :
I am trying to understand why maven's reactor would not add a parent and a
parent's children to the build when it is detected that the dependency is not in
the repository.
Is there a use case to NOT auto build? Or is there a technical hurdle to
overcome to accomplish this in the reactor design?
Could I be missing a concept on maven usage?
I have a project which has a very large set of parent/child/sibling dependencies
I am migrating from our ant build system. When an engineer needs to make changes
on their part it would be best for them to execute mvn from that parts
directory.
-Jason
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Principal Consultant 10 West 24th Street #100 -
- +1 (443) 269-1555 x333 Baltimore, Maryland 21218 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]