Idea X - Maven integration

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

4 comments
Comment actions Permalink

Use ${env.JAVA_HOME} inside the pom, I think it's the Maven way to do it.

0
Comment actions Permalink

Idea recognizes the property now, actually maven doesn't require env. prefix.



THANKS
0
Comment actions Permalink

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.

0
Comment actions Permalink

Agreed, Thanks.

But if Maven has a fallback then idea should behave in a similar way I guess, regardless of reason.

0

Please sign in to leave a comment.