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

      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

              • Assignee:
                jvanzyl Jason van Zyl
                Reporter:
                hboutemy Hervé Boutemy
              • Votes:
                7 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: