Issue Details (XML | Word | Printable)

Key: MAVEN-1766
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Lukas Theussl
Reporter: Daniel Beland
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 1

NPE when a dependency is not found

Created: 28/Jul/06 05:57 AM   Updated: 28/Jul/06 03:11 PM   Resolved: 28/Jul/06 10:40 AM
Component/s: None
Affects Version/s: 1.1-beta-3
Fix Version/s: 1.1-beta-3

Time Tracking:
Not Specified

File Attachments: 1. XML File project.xml (2 kB)



 Description  « Hide

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



Lukas Theussl added a comment - 28/Jul/06 10:40 AM

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/