[ https://issues.apache.org/jira/browse/SCM-771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17962931#comment-17962931 ]
ASF GitHub Bot commented on SCM-771: ------------------------------------ jira-importer opened a new issue, #978: URL: https://github.com/apache/maven-scm/issues/978 **[Karl Heinz Marbaise](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=khmarbaise)** opened **[SCM-771](https://issues.apache.org/jira/browse/SCM-771?redirect=false)** and commented The following: ```java @Component protected MavenProject project; ``` has to be replaced by the following: ```java @Parameter( defaultValue = "${project}", readonly = true, required = true ) protected MavenProject project; ``` The following: ```java @Component protected MavenSession session; ``` has to be replaced by the following: ```java @Parameter( defaultValue = "${session}", readonly = true, required = true ) protected MavenSession session; ``` --- **Affects:** 1.9.2 > MavenProject/MavenSession Injection as a paremeter instead as a component. > -------------------------------------------------------------------------- > > Key: SCM-771 > URL: https://issues.apache.org/jira/browse/SCM-771 > Project: Maven SCM (Moved to GitHub Issues) > Issue Type: Bug > Affects Versions: 1.9.2 > Reporter: Karl Heinz Marbaise > Priority: Minor > > 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 > protected MavenSession session; > {code} > has to be replaced by the following: > {code:java} > @Parameter( defaultValue = "${session}", readonly = true, required = true ) > protected MavenSession session; > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)