maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl-Heinz Marbaise (JIRA)" <j...@codehaus.org>
Subject [jira] (MRESOURCES-181) MavenProject/MavenSession Injection as a paremeter instead as a component.
Date Sun, 10 Aug 2014 11:10:10 GMT

     [ https://jira.codehaus.org/browse/MRESOURCES-181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Karl-Heinz Marbaise closed MRESOURCES-181.
------------------------------------------

    Resolution: Fixed

Fixed in [r1617091|http://svn.apache.org/r1617091]

> MavenProject/MavenSession Injection as a paremeter instead as a component.
> --------------------------------------------------------------------------
>
>                 Key: MRESOURCES-181
>                 URL: https://jira.codehaus.org/browse/MRESOURCES-181
>             Project: Maven Resources Plugin
>          Issue Type: Improvement
>            Reporter: Karl-Heinz Marbaise
>            Assignee: Karl-Heinz Marbaise
>            Priority: Minor
>             Fix For: 2.7
>
>
> The following:
> {code:java}
> @Component
> protected MavenProject project;
> {code}
> has to be replaced by the following:
> {code:java}
> @Parameter( defaultValue = "${project}", readonly = true, required = true )
> protected MavenProject project;
> {code}
> The following:
> {code:java}
> @Component
> private MavenSession session;
> {code}
> has to be replaced by the following:
> {code:java}
> @Parameter( defaultValue = "${session}", readonly = true, required = true )
> private MavenSession session;
> {code}
> The following:
> {code:java}
> @Component
> private Settings settings;
> {code}
> has to be replaced by the following:
> {code:java}
> @Parameter( defaultValue = "${settings}", readonly = true, required = true )
> private Settings settings;
> {code}
> Reference: http://maven.apache.org/ref/3.1.1/maven-core/apidocs/org/apache/maven/plugin/PluginParameterExpressionEvaluator.html



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message