You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2008/07/01 23:04:26 UTC

[jira] Closed: (MINVOKER-41) NullPointerException in InvokerMojo::runBuild in case the mvn executable is not at the expected location

     [ http://jira.codehaus.org/browse/MINVOKER-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MINVOKER-41.
-------------------------------------

         Assignee: Benjamin Bentmann
       Resolution: Fixed
    Fix Version/s: 1.3

Fixed NPE in [r673206|http://svn.apache.org/viewvc?view=rev&revision=673206].

Regarding the symlink workaround: If I understand Paul Cager's comment in MINVOKER-28 correctly, this should be part of the new Debian/Ubuntu packages.

> NullPointerException in InvokerMojo::runBuild in case the mvn executable is not at the expected location
> --------------------------------------------------------------------------------------------------------
>
>                 Key: MINVOKER-41
>                 URL: http://jira.codehaus.org/browse/MINVOKER-41
>             Project: Maven 2.x Invoker Plugin
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: $ mvn --version
> Maven version: 2.0.8
> Java version: 1.6.0_06
> OS name: "linux" version: "2.6.24-19-generic" arch: "i386" Family: "unix"
>            Reporter: Jeremy
>            Assignee: Benjamin Bentmann
>             Fix For: 1.3
>
>
> Assume that the mvn executable cannot be found at the expected location, then InvokerMojo::runBuild throws a NullPointerException at line 787 (same line number in the trunk version). Indeed, looking at InvokerMojo.java, if an exception is catched in the try clause line 777 (from the invoker.execute method call), then "result" remains unaffected and the method call line 787 fails.
> I attach the InvokerMojo.java file as I get it from the svn repository, a "mvn -e -X install > log" file and one of the POM that triggers the problem.

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