[
http://jira.codehaus.org/browse/MJBOSS-30?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Gier updated MJBOSS-30:
----------------------------
Patch Submitted: [Yes]
Fix Version/s: 1.4.0
Assignee: Paul Gier
> NullPointerException in UndeployMojo
> ------------------------------------
>
> Key: MJBOSS-30
> URL: http://jira.codehaus.org/browse/MJBOSS-30
> Project: Maven 2.x JBoss Plugin
> Issue Type: Bug
> Affects Versions: 1.3.1, 1.3.2
> Environment: Maven 2.2.1, JBoss 5.1.0, Java 1.6.0, Debian GNU/Linux
> 5.0
> Reporter: Clemens Fuchslocher
> Assignee: Paul Gier
> Fix For: 1.4.0
>
> Attachments: MJBOSS-30.patch
>
>
> Calling the undeploy goal in a multi-module project raises a NPE in
> [UndeployMojo|http://svn.codehaus.org/mojo/trunk/mojo/jboss-maven-plugin/src/main/java/org/codehaus/mojo/jboss/UndeployMojo.java],
> if not all modules are configured for the Maven JBoss plugin:
> {noformat}
> java.lang.NullPointerException
> at org.codehaus.mojo.jboss.UndeployMojo.execute(UndeployMojo.java:41)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> ...
> {noformat}
> This possible NPE is already fixed in
> [DeployMojo|http://svn.codehaus.org/mojo/trunk/mojo/jboss-maven-plugin/src/main/java/org/codehaus/mojo/jboss/DeployMojo.java]
> and
> [ReDeployMojo|http://svn.codehaus.org/mojo/trunk/mojo/jboss-maven-plugin/src/main/java/org/codehaus/mojo/jboss/ReDeployMojo.java].
> My current workflow is this:
> {noformat}
> $ mvn package
> ...
> $ mvn jboss:deploy
> ...
> $ (cd ear && mvn jboss:undeploy)
> {noformat}
> With the attached patch it would be:
> {noformat}
> $ mvn package
> ...
> $ mvn jboss:deploy
> ...
> $ mvn jboss:undeploy
> {noformat}
--
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 from this list, please visit:
http://xircles.codehaus.org/manage_email