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] (SCM-771) MavenProject/MavenSession Injection as a paremeter instead as a component.
Date Wed, 13 Aug 2014 15:42:10 GMT
Karl-Heinz Marbaise created SCM-771:
---------------------------------------

             Summary: MavenProject/MavenSession Injection as a paremeter instead as a component.
                 Key: SCM-771
                 URL: https://jira.codehaus.org/browse/SCM-771
             Project: Maven SCM
          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
(v6.1.6#6162)

Mime
View raw message