NPE when a dependency is not found
----------------------------------

                 Key: MAVEN-1766
                 URL: http://jira.codehaus.org/browse/MAVEN-1766
             Project: Maven
          Issue Type: Bug
            Reporter: Daniel Beland
             Fix For: 1.1-beta-3
         Attachments: project.xml


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:
- read the Maven FAQ at http://maven.apache.org/maven-1.x/faq.html
- run the same command again with the '-e' parameter, eg 'maven -e jar'
- search the maven-user archives for the error at 
http://www.mail-archive.com/users@maven.apache.org
- post the output of maven -e to JIRA at 
http://gdps/jira/secure/BrowseProject.jspa?id=10030 (you must sign up first)
- run 'maven --info' and post the output as the environment to the bug above

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



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to