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

Plugin report states wrong JDK requirement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.3
    • 2.5
    • Plugin Plugin
    • None

    Description

      The JDK auto detection currently checks the Compiler Plugin's target setting from <build>/<pluginManagement> and <build>/<plugins>, in that order with the first one winning. However, the setting from <build>/<plugins> is effectively dominant during a Maven build, i.e.

      <build>
        <pluginManagement>
          <plugins>
            <plugin>
              <artifactId>maven-compiler-plugin</artifactId>
              <configuration>
                <target>1.4</target>
              </configuration>
            </plugin>
          </plugins>
        </pluginManagement>
        <plugins>
          <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
              <target>1.5</target>
            </configuration>
          </plugin>
        </plugins>
      </build>
      

      means JDK requirement is 1.5

      Attachments

        Activity

          People

            bentmann Benjamin Bentmann
            bentmann Benjamin Bentmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: