[jboss-jira] [JBoss JIRA] (JBASMP-67) add skip to every goal
James Perkins (JIRA)
issues at jboss.org
Thu Apr 10 11:58:13 EDT 2014
[ https://issues.jboss.org/browse/JBASMP-67?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12960876#comment-12960876 ]
James Perkins commented on JBASMP-67:
-------------------------------------
I'm not sure how keen I am on adding a skip to every goal, but I will analyze it. A workaround might be to add an empty command configuration or just execute a read-only command.
That said an NPE is definitely a bug. We could either fail if there no commands or print a warning message. Seems, at least in this case, just printing a warning messages would be ideal.
> add skip to every goal
> ----------------------
>
> Key: JBASMP-67
> URL: https://issues.jboss.org/browse/JBASMP-67
> Project: JBoss AS Maven Plugins
> Issue Type: Feature Request
> Components: common
> Affects Versions: 7.5.Final
> Reporter: Jorge Morales
> Assignee: James Perkins
>
> When running in multimodule project and only some of them has interactions with JBoss AS, we need to disable plugin execution on the rest of projects.
> For this, we define plugin behavior on top parent pom, within pluginManagement, and set skip=true, and on the projects that interact with jboss-as, we enable the plugin (skip=false). This way we deploy and undeploy correctly, but when we run execute-commands from top projects, it fails, because although plugin is disabled, it runs this goal, and since it doesn't have commands configured, gives a nice NullPointerException.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list