Uploaded image for project: 'Maven JAR Plugin'
  1. Maven JAR Plugin
  2. MJAR-286

NullPointerException when includes are empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.2, 3.2.2
    • 3.3.0
    • None
    • None
    • Maven 3.8.4, Windows 10

    Description

      When includes are empty, but a `src/main/resources` directory exists, maven fails with a NullPointerException. If this is a misconfigured pom, it should at least give a proper error message.

       

      I produced a minimized case here: https://github.com/xicesky/bug-in-maven-jar-plugin

       

      Attachments

        1. mvn-clean-package.log
          86 kB
          Markus Dangl

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xicesky Markus Dangl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: