Uploaded image for project: 'Maven Compiler Plugin'
  1. Maven Compiler Plugin
  2. MCOMPILER-373

Unable to compile MR jar code against older directories

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.8.0
    • 3.9.0
    • None

    Description

      Given a project with multiple source directories, java, java9 and java11, each MR directory should compile against the previous one. In the current plugin, this only happens if the MR directory contains a module-info.java file.

      The attached reproducer expects toolchains to be set up for the jdk9 and jdk11 compilers. It fails when trying to compile the java11 directory, as the classes/META-INF/versions/9 directory is not present on its classpath.

      Attachments

        1. reproducer.zip
          11 kB
          Russell Gold

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              russgold Russell Gold
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: