Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7745

NPE when .mvn doesn't exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0.0-alpha-4, 4.0.0-alpha-5
    • 4.0.0-alpha-7, 4.0.0
    • Core
    • None
    • Any

    Description

      When maven is executed without a .mvn directory, an NPE appears every time.

      This doesn't seem to affect anything but does pollute the logs:

      Failed to notify spy org.apache.maven.ReactorReader$ReactorReaderSpy: Cannot invoke "java.io.File.toPath()" because the return value of "org.apache.maven.project.MavenProject.getFile()" is null 

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            lprimak Lenny Primak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: