The following issue has been updated:

    Updater: John Casey (mailto:[EMAIL PROTECTED])
       Date: Thu, 20 Nov 2003 9:02 AM
    Comment:
This patch has been tested in my local environment against the most recent version of 
maven from CVS HEAD, and works. The behavior I have implemented is to throw a 
NoGoalException with the message "No project.xml found.".
    Changes:
             Attachment changed to maven-978-fix.patch
    ---------------------------------------------------------------------
For a full history of the issue, see:

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

---------------------------------------------------------------------
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: Unassigned
   Priority: Minor

 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: Thu, 20 Nov 2003 9:02 AM
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to