You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl-Heinz Marbaise (JIRA)" <ji...@codehaus.org> on 2014/08/23 23:31:10 UTC
[jira] (MDEPLOY-185) MavenProject/MavenSession Injection as a
paremeter instead as a component.
[ https://jira.codehaus.org/browse/MDEPLOY-185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karl-Heinz Marbaise updated MDEPLOY-185:
----------------------------------------
Fix Version/s: 2.9
> MavenProject/MavenSession Injection as a paremeter instead as a component.
> --------------------------------------------------------------------------
>
> Key: MDEPLOY-185
> URL: https://jira.codehaus.org/browse/MDEPLOY-185
> Project: Maven Deploy Plugin
> Issue Type: Improvement
> Components: deploy:deploy
> Affects Versions: 2.9
> Reporter: Karl-Heinz Marbaise
> Priority: Minor
> Fix For: 2.9
>
>
> 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)