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 2010/08/31 18:51:35 UTC

[jira] Commented: (MNG-4786) beta-3 : Getting NPE when using an ant-mojo maven plugin

    [ http://jira.codehaus.org/browse/MNG-4786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=233792#action_233792 ] 

Benjamin Bentmann commented on MNG-4786:
----------------------------------------

NPE is caused by not injected logger, only affects plugins using {{maven-script-ant:2.1.0}} and newer.

> beta-3 : Getting NPE when using an ant-mojo maven plugin
> --------------------------------------------------------
>
>                 Key: MNG-4786
>                 URL: http://jira.codehaus.org/browse/MNG-4786
>             Project: Maven 2 & 3
>          Issue Type: Bug
>         Environment: 3.0-beta-3 (staging)
>            Reporter: Vincent Latombe
>         Attachments: antmojo.zip, NPE.log
>
>
> Testing latest beta-3 available in staging, I get an NPE when calling one of my plugins that use the ant wrapper (described at http://www.sonatype.com/books/mhandbook/reference/ch04s04.html)
> Here is a sample plugin project that use this feature (I took the one available in Maven book).
> Compile it, then call
> mvn org.sonatype.mavenbook.plugins:firstant-maven-plugin:echo -Dmessage=world -e
> This works with 2.2.1/beta-2 but throws an NPE with beta-3 (see attached logs)

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