You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Anders Hammar <an...@hammar.net> on 2013/04/13 09:36:33 UTC

Re: [jira] (MNG-5468) Allow mojos to access the user properties

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) <jira@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
>