Uploaded image for project: 'Maven Plugin Tools'
  1. Maven Plugin Tools
  2. MPLUGIN-22

Allow specification of mojo extractors to be used

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 2.2
    • None
    • None

    Description

      With the attached patch, plugin plugin configuration is extended with a section "extractors". This allows the user to specify which descripters are to be used in the project.

      The main reason for this patch are the JDK 1.5 problems with the Java extractor, which can be turned off with this patch. Also, there are projects that provide an extractor that uses Java 5 annotations [1], so there may be two kinds of extractors for the same language in the future. With this, the user should decide which one to use.

      The patch changes maven-plugin-plugin and maven-tools-api. It does not change the default behaviour (use all extractors). Unit tests are included.

      Example:

      <plugin>
      <artifactId>maven-plugin-plugin</artifactId>
      <version>2.2-SNAPSHOT</version>
      <configuration>
      <!-- Use all extractors -->
      <extractors/>
      <!-- Use no extractors -->
      <extractors>
      <extractor/>
      </extractors>
      <!-- Use only bsh extractor -->
      <extractors>
      <extractor>bsh</extractor>
      </extractors>
      </configuration>
      </plugin>

      [1] http://sourceforge.net/projects/mvn-anno-mojo

      Attachments

        Activity

          People

            brett Brett Porter
            werbung@kuhnle.net Jochen Kuhnle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: