Don't know if you can get all props in one go. But you can always define a read only parameter for the user property you want.
@Parameter( property = "user.prop", readonly = true ) private String userProp; /Anders On Sat, Apr 13, 2013 at 12:29 AM, Michael Ekstrand (JIRA) <j...@codehaus.org > wrote: > Michael Ekstrand created MNG-5468: > ------------------------------------- > > Summary: Allow mojos to access the user properties > Key: MNG-5468 > URL: https://jira.codehaus.org/browse/MNG-5468 > Project: Maven 2 & 3 > Issue Type: Wish > Affects Versions: 3.0.4 > Reporter: Michael Ekstrand > > > There does not seem to be any way to obtain the user properties in a mojo. > The mojo can get the model properties from the project, but not the user > properties specified on the Maven command line. This is problematic for > mojos that want to consult them for additional configuration to pass on to > other things (user classes, scripts, etc.). > > -- > This message is automatically generated by JIRA. > If you think it was sent incorrectly, please contact your JIRA > administrators > For more information on JIRA, see: http://www.atlassian.com/software/jira >