You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/09/22 09:00:11 UTC

[jira] Closed: (MNG-517) NPE when goal is invalid in custom lifecycle.xml file

     [ http://jira.codehaus.org/browse/MNG-517?page=all ]
     
Brett Porter closed MNG-517:
----------------------------

    Resolution: Fixed

improve error

> NPE when goal is invalid in custom lifecycle.xml file
> -----------------------------------------------------
>
>          Key: MNG-517
>          URL: http://jira.codehaus.org/browse/MNG-517
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-core
>     Versions: 2.0-alpha-3
>     Reporter: Vincent Massol
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-2

>
> Original Estimate: 30 minutes
>        Time Spent: 15 minutes
>         Remaining: 0 minutes
>
> If I have (notice the goal that is incorrectly prefixed by "clover:"):
> <lifecycles>
>   <lifecycle>
>     <id>clover</id>
>     <phases>
>       <phase>
>         <id>generate-sources</id>
>         <executions>
>           <execution>
>             <configuration>
>               <outputDirectory>${project.build.directory}/clover</outputDirectory>
>             </configuration>
>             <goals>
>               <goal>clover:instrument</goal>
>             </goals>
>           </execution>
>         </executions>
>       </phase>
>     </phases>
>   </lifecycle>
> </lifecycles>
> Then I get:
> java.lang.NullPointerException
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:162)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:227)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:164)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:143)
> ... which is not very explicit...

-- 
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


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