Uploaded image for project: 'Maven GPG Plugin'
  1. Maven GPG Plugin
  2. MGPG-50

MavenProject/MavenSession Injection as a paremeter instead as a component.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6
    • Labels:
      None

      Description

      The following:

      @Component
      protected MavenProject project;
      

      has to be replaced by the following:

      @Parameter( defaultValue = "${project}", readonly = true, required = true )
      protected MavenProject project;
      

      The following:

      @Component
      private MavenSession session;
      

      has to be replaced by the following:

      @Parameter( defaultValue = "${session}", readonly = true, required = true )
      private MavenSession session;
      

      The following:

      @Component
      private Settings settings;
      

      has to be replaced by the following:

      @Parameter( defaultValue = "${settings}", readonly = true, required = true )
      private Settings settings;
      

      Reference: http://maven.apache.org/ref/3.1.1/maven-core/apidocs/org/apache/maven/plugin/PluginParameterExpressionEvaluator.html

        Attachments

          Activity

            People

            • Assignee:
              khmarbaise Karl Heinz Marbaise
              Reporter:
              khmarbaise Karl Heinz Marbaise
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: