Uploaded image for project: 'Maven Install Plugin'
  1. Maven Install Plugin
  2. MINSTALL-106

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5.2
    • 2.5.2
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: