Maven property override in command line
gwenn opened this issue · 4 comments
gwenn commented
It seems that override from command line is ignored:
mvn -Dmy.property=false compile
<properties>
<my.property>true</my.property>
</properties>
//#if mvn.project.property.my.property == "true"
...
//#endif
I uses a profile to bypass.
raydac commented
good point, I just importing property value directly from project properties field but to process overriding values it is needed to be more complex one, will fix
raydac commented
I have fixed it in 7.0.5-SNAPSHOT
gwenn commented
Validated in 7.0.5-SNAPSHOT
Should I close the current issue ?
Thanks.
raydac commented
you can close if all is ok