You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vincent Latombe (JIRA)" <ji...@codehaus.org> on 2010/08/31 14:07:32 UTC
[jira] Created: (MNG-4786) beta-3 : Getting NPE when using an
ant-mojo maven plugin
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
[jira] Commented: (MNG-4786) [regression] Ant-based mojo using
maven-script-ant:2.1.0+ cause NPE
Posted by "Stuart McCulloch (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=233795#action_233795 ]
Stuart McCulloch commented on MNG-4786:
---------------------------------------
Fixed in spice-inject-plexus-1.3.4.1 (r2845) ... the issue was that objects created from non-java component factories weren't being processed properly.
> [regression] Ant-based mojo using maven-script-ant:2.1.0+ cause NPE
> -------------------------------------------------------------------
>
> 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
[jira] Commented: (MNG-4786) beta-3 : Getting NPE when using an
ant-mojo maven plugin
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Updated: (MNG-4786) [regression] Ant-based mojo using
maven-script-ant:2.1.0+ cause NPE
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated MNG-4786:
-----------------------------------
Summary: [regression] Ant-based mojo using maven-script-ant:2.1.0+ cause NPE (was: beta-3 : Getting NPE when using an ant-mojo maven plugin)
> [regression] Ant-based mojo using maven-script-ant:2.1.0+ cause NPE
> -------------------------------------------------------------------
>
> 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
[jira] Closed: (MNG-4786) [regression] Ant-based mojo using
maven-script-ant:2.1.0+ cause NPE
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MNG-4786.
----------------------------------
Resolution: Fixed
Fix Version/s: 3.0-beta-4
Assignee: Benjamin Bentmann
Fixed in [r991314|http://svn.apache.org/viewvc?view=revision&revision=991314], thanks Stuart!
> [regression] Ant-based mojo using maven-script-ant:2.1.0+ cause NPE
> -------------------------------------------------------------------
>
> 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
> Assignee: Benjamin Bentmann
> Fix For: 3.0-beta-4
>
> 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