Maven users,

Is there a way to retrieve the super, or super-super pom.xml's ${basedir}
such that it consistently returns the "rootmost pom.xml's path"?  It appears
that ${basedir} is always the leafmost pom's path when running a multimodule
build.

So, for example:
1) I have a pom.xml at the root of my tree.
2) I have pom.xmls in subdirectories that reference the parent
3) I have a property that is defined in the root pom.xml that includes
${basedir}
4) Unfortunately, even when running the build via "mvn install" from the
root, each leaf pom, as it gets invoked, recalculates the
root-pom-defined-property for $(basedir) to be relative to the leaf, not to
the original root.

Any way to get the root pom.xml's path so that I can do a relative pathing
from there?

-Matthew McCullough
Ambient Ideas
-- 
View this message in context: 
http://www.nabble.com/How-can-I-get-the-path-for-a-root-pom.xml%27s-basedir-in-a-multimodule-project-with-pom-inheritance-tf4577123s177.html#a13065695
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