Uploaded image for project: 'Maven Deploy Plugin'
  1. Maven Deploy Plugin
  2. MDEPLOY-185

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

    XMLWordPrintableJSON

Details

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