Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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 :
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:
- 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
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/