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

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

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment