Karl Heinz Marbaise created NIFI-168:
----------------------------------------

             Summary: Correctly inject MavenProject / MavenSession into 
nar-maven-plugin
                 Key: NIFI-168
                 URL: https://issues.apache.org/jira/browse/NIFI-168
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Tools
    Affects Versions: 0.0.1
            Reporter: Karl Heinz Marbaise
            Priority: Minor
             Fix For: 0.0.1


The documentation for the plugin [parameter 
evaluation|http://maven.apache.org/ref/3.1.1/maven-core/apidocs/org/apache/maven/plugin/PluginParameterExpressionEvaluator.html]
 shows howto inject the parameters of MavenProject and MavenSession into the 
Mojo.
{code:java}
@Parameter( defaultValue = "${project}", readonly = true, required = true )
protected MavenProject project;
{code}
The same for MavenSession:
{code:java}
@Parameter( defaultValue = "${session}", readonly = true, required = true )
protected MavenSession session;
{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to