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

Fix detection of JDK requirement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.4
    • Plugin Plugin
    • None
    • Patch

    Description

      • getPluginArtifactMap() returns Map<String, Artifact> while Map<String, Plugin> is required for discoverJdkRequirementFromPlugins()
      • The Maven Compiler Plugin has a fixed default value for "target", the current JDK version is irrelevant.

      Last but not least: Why is discoverJdkRequirementFromPlugins() iterating over a map searching for a key? Wouldn't pluginsAsMap.get("org.apache.maven.plugins:maven-compiler-plugin") just do fine?

      Attachments

        1. jdk-requirement.patch
          1 kB
          Benjamin Bentmann

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: