[
https://issues.apache.org/jira/browse/MEJB-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17966115#comment-17966115
]
Olivier Lamy commented on MEJB-68:
----------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-ejb-plugin#100|https://github.com/apache/maven-ejb-plugin/issues/100].
> MavenProject/MavenSession Injection as a paremeter instead as a component.
> --------------------------------------------------------------------------
>
> Key: MEJB-68
> URL: https://issues.apache.org/jira/browse/MEJB-68
> Project: Maven EJB Plugin (Moved to GitHub Issues)
> Issue Type: Improvement
> Affects Versions: 2.3
> Reporter: Karl Heinz Marbaise
> Assignee: Karl Heinz Marbaise
> Priority: Minor
> Fix For: 2.4
>
>
> 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)