Maven 1
  1. Maven 1
  2. MAVEN-1766

NPE when a dependency is not found

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1-beta-3
    • Fix Version/s: 1.1-beta-3
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      1

      Description

      When a dependency is not found in the repository, there is a NullPointerException:
      I am using the build 0f 20060723
      I have attached a simplified version of my project.xml to reproduce the problem.

      Here is the stack trace

      maven -e clean
      __ __

      \/ __ Apache_ ___
        \/ / ` \ V / -) ' \ ~ intelligent projects ~
      _   _,_ _/___ _ _ v. 1.1-beta-3-SNAPSHOT

      Trying to get missing/snapshot dependencies required by RF1 Web Services:
      Attempting to download rf1db-2.12-SNAPSHOT.jar.
      WARNING: Failed to download rf1db-2.12-SNAPSHOT.jar.
      java.lang.NullPointerException
      at org.apache.maven.verifier.DependencyVerifier.createUnsatisfiedDependenciesMessage(DependencyVerifier.java:225)
      at org.apache.maven.verifier.DependencyVerifier.satisfyDependencies(DependencyVerifier.java:195)
      at org.apache.maven.verifier.DependencyVerifier.verify(DependencyVerifier.java:104)
      at org.apache.maven.project.Project.verifyDependencies(Project.java:582)
      at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:679)
      at org.apache.maven.MavenSession.attainGoals(MavenSession.java:264)
      at org.apache.maven.cli.App.doMain(App.java:546)
      at org.apache.maven.cli.App.main(App.java:1359)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at com.werken.forehead.Forehead.run(Forehead.java:551)
      at com.werken.forehead.Forehead.main(Forehead.java:581)

      You have encountered an unknown error running Maven.
      Please help us to correct this problem by following these simple steps:

      Total time : 1 seconds
      Finished at : Friday, July 28, 2006 11:53:06 BST AM

        Activity

        Hide
        Lukas Theussl added a comment -

        I can reproduce that with the build of 20060723 but not with current trunk or latest snapshot:
        http://people.apache.org/repo/m1-snapshot-repository/maven/distributions/20060728/

        Show
        Lukas Theussl added a comment - I can reproduce that with the build of 20060723 but not with current trunk or latest snapshot: http://people.apache.org/repo/m1-snapshot-repository/maven/distributions/20060728/
        Show
        Arnaud Heritier added a comment - Yes it was an error from me. I fixed it yesterday http://mail-archives.apache.org/mod_mbox/maven-commits/200607.mbox/%3c20060727220404.3039A1A981D@eris.apache.org%3e

          People

          • Assignee:
            Lukas Theussl
            Reporter:
            Daniel Beland
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: