You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2003/12/31 02:59:39 UTC

[jira] Closed: (MAVEN-978) NPE with invalid argument and no project.xml

Message:

   The following issue has been closed.

   Resolver: Brett Porter
       Date: Tue, 30 Dec 2003 7:58 PM

already fixed differently in CVS for 1.0 branch (UnknownGoalException "cli").

BTW, I'm not sure the patch was valid, because "No project.xml found" is not correct, the problem really is that the goal doesn't exist. But thanks for the attempt - it is appreciated.
---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-978


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-978
    Summary: NPE with invalid argument and no project.xml
       Type: Bug

     Status: Closed
   Priority: Minor
 Resolution: FIXED

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             core
   Fix Fors:
             1.0-rc2
   Versions:
             1.0-rc1

   Assignee: 
   Reporter: Dale King

    Created: Tue, 28 Oct 2003 8:43 PM
    Updated: Tue, 30 Dec 2003 7:58 PM
Environment: Windows 98SE with patched maven.bat to allow it to work on Win98 (See Maven-942)

Description:
I was trying to invoke "maven console" in a directory that did not have a project.xml file. But, I couldn't remember the command so I accidently typed "maven cli" instead. This is of course not a valid command, but instead of getting an informative message about cli being an unknown goal I was greeted with a NullPointerException:

C:\>maven cli

C:\>
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

java.lang.NullPointerException
        at org.apache.maven.plugin.PluginManager.attainGoals (PluginManager.java:430)
        at org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
        at org.apache.maven.cli.App.doMain(App.java:543)
        at org.apache.maven.cli.App.main(App.java:1109)
        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)
Total time: 4 seconds
Finished at: Tue Oct 28 21:05:30 EST 2003



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org