I'm still stuck with this one and can't believe no one knows the answer ...


fagfa wrote:
> 
> We have a parent project which contains several J2EE subprojects, such as
> web, ejb, ear, etc.. In the parent POM, a property "db" is defined, whose
> default is "hsql", for example. Build for various databases can be
> switched by specifying commandline, "mvn -Ddb=mysql", or changing "db"
> property directly. In our sub projects, there are some resource files that
> depend on this "db" property and we hope these resource files are properly
> filtered during the building. 
> 
> If I just change "db" property in parent POM file, everything works
> perfectly. But when I specify "-Ddb=mysql", the resource files are
> filtered, but still by the properties in the parent POM, not from command
> line. Based on my understanding, property specified in command line should
> precede elsewhere specified, which is NOT happending here. Any ideas? 
> 
> Thanks,
> 
> fagfa
> 

-- 
View this message in context: 
http://www.nabble.com/Property-overwriting---resource-filtering-for-sub-project-tf2222400.html#a6494545
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to