[ 
https://issues.apache.org/jira/browse/MDEPLOY-185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17965730#comment-17965730
 ] 

Olivier Lamy commented on MDEPLOY-185:
--------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-deploy-plugin#174|https://github.com/apache/maven-deploy-plugin/issues/174].
 

> MavenProject/MavenSession Injection as a paremeter instead as a component.
> --------------------------------------------------------------------------
>
>                 Key: MDEPLOY-185
>                 URL: https://issues.apache.org/jira/browse/MDEPLOY-185
>             Project: Maven Deploy Plugin (Moved to GitHub Issues)
>          Issue Type: Improvement
>          Components: deploy:deploy
>    Affects Versions: 2.8.2
>            Reporter: Karl Heinz Marbaise
>            Assignee: Karl Heinz Marbaise
>            Priority: Minor
>             Fix For: 2.8.2
>
>
> 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
(v8.20.10#820010)

Reply via email to