You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by nicolas de loof <ni...@gmail.com> on 2006/12/22 11:18:40 UTC

activation based on property

According to POM schema, the <activation><property> element in <profile>
will search for a system property.

I'd like to create a corporate POM with <dependencyManagement> setting some
libs version. This version will depend on the target JRE, so I'd like to
detect a child project targetting Java5. I don't want to use <jdk> as the
developpers use Java5 JDK to run maven and eclipse, but this may not be the
target JRE for the project.

Does <activation><property> also work for a "property" set inside the POM
<properties> ? If true, I could set <maven.compiler.source> property in the
project POM and set my corporate POM as parent.

Nico.