Idea X - Maven integration Vladimir Goncharov Created November 18, 2010 15:36 How to make Idea to regognize system varaables such as ${JAVA_HOME}, ${XYX} etc. in the pom.xml I tried to define them in Path Variables dialog but doesn't seem to help.Thanks
Use ${env.JAVA_HOME} inside the pom, I think it's the Maven way to do it.
Idea recognizes the property now, actually maven doesn't require env. prefix.
THANKS
http://www.sonatype.com/books/mvnref-book/reference/resource-filtering-sect-properties.html
http://maven.apache.org/pom.html#Properties
The "env." prefix is recommended, although Maven may have a fallback mechanism in property resolution, which resolves the system variable anyway.
I think it's still a good idea to use the prefix, to avoid accidental clashes with properties from the poms or settings file.
Agreed, Thanks.
But if Maven has a fallback then idea should behave in a similar way I guess, regardless of reason.