Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5346

update maven-plugin-plugin:descriptor default binding from generate-resources phase to process-classes

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.2.2
    • None
    • None

    Description

      with Java annotations support added in Maven Plugin Tools 3.0, descriptor cannot be generated before compilation

      actually, to use annotations, users need to add extra configuration to avoid failure and to bind the goal to proper phase:

              <configuration>
                <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
              </configuration>
              <executions>
                <execution>
                  <id>mojo-descriptor</id>
                  <goals>
                    <goal>descriptor</goal>
                  </goals>
                </execution>

      changing the default lifecycle binding will enable removal of this extra configuration

      notice that removing the configuration from pom will require to check newer Maven version is used to build the plugin

      Attachments

        1. plugin-annotation-sample.zip
          2 kB
          Jan Sievers

        Issue Links

          Activity

            People

              jvanzyl Jason van Zyl
              hboutemy Herve Boutemy
              Votes:
              7 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: