You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2014/12/13 23:49:13 UTC

[jira] [Created] (NIFI-168) Correctly inject MavenProject / MavenSession into nar-maven-plugin

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)