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

plexus-java 0.9.10 causes a NullPointer in compiler-plugin 3.8.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.8.0
    • 3.9.0
    • None
    • Windows 7
      JDK 10.0.2
      Maven 3.5.4

    Description

      If <dependencies> contains a <type>pom</type> or <type>war</type> this call:
      moduleDescriptor = binaryParser.getModuleDescriptor( path );
      throws an IOException:
      zip END header not found
      because the file is being treated as a jar file.
      When the call returns to CompilerMojo.preparePaths() this call returns null:
      Throwable cause = pathException.getValue().getCause();
      and the next line throws a NullPointerException:
      while ( cause.getCause() != null )

      Attachments

        1. plugintest.zip
          4 kB
          Marvin

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              Wolfthal Marvin
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m