http://www.sonatype.com/books/mvnref-book/reference/resource-filtering-sect-properties.htmlindicates
that any JavaBean property available in the
Model<http://maven.apache.org/ref/3.0.3/maven-model/apidocs/org/apache/maven/model/Model.html>class
is available in a
pom.xml file for property expansion when prefixed with "project.". Hence "
project.version" expands the <version> element.
I would think therefore that I could do this:
${project.prerequisites.maven}
...to get the minimum Maven version, provided of course <prerequisites> is
set in my pom.xml or his parent. After all, there is a
Model<http://maven.apache.org/ref/3.0.3/maven-model/apidocs/org/apache/maven/model/Model.html>
#getPrerequisites<http://maven.apache.org/ref/3.0.3/maven-model/apidocs/org/apache/maven/model/Model.html#getPrerequisites%28%29>
().getMaven<http://maven.apache.org/ref/3.0.3/maven-model/apidocs/org/apache/maven/model/Prerequisites.html#getMaven%28%29>
() path. But I'm not seeing this being expanded. Is this by design? What,
if so, is the reasoning? Should the documentation reflect this fact?
Thanks,
Laird
--
http://about.me/lairdnelson