You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "mc.madhan" <ma...@gmail.com> on 2009/10/21 00:07:38 UTC

Dxxx command-line properties returned as null when packaging a multi module project

Hi Maven List,

I have a mutimodule project as below:

Svn_branch_root
|
--MultiModuleMaster
|	|_ pom.xml (I add the modules 1,2,3 here)	
--module1
|	|_pom.xml
--module2
|	|_pom.xml
--module3
		|_pom.xml

I start the execution from MutiModuleMaster’s pom and I have a custom maven
plugin that performs an operation based on the comman-line Dxxx property, I
use this plugin only on the Sub modules. I am seeing that the system
property that I pass from command line is read as null by the custom maven
plugin. The custom plugin has a MOJO and while debugging the plugin I notice
that the property is getting returned as null.

For example, when I execute, 

MultiModuleMaster>mvn clean –Dxxx=true package 

The property xxx is not visible to the Mojo that builds sub module’s pom. Is
this the way maven behaves? Any thoughts on what am I missing here?

Thanks for the help.

Regards,
Madhan

-- 
View this message in context: http://www.nabble.com/Dxxx-command-line-properties-returned-as-null-when-packaging-a-multi-module-project-tp25983360p25983360.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org