Issue Type: Improvement Improvement
Affects Versions: 2.1-alpha-2
Assignee: Unassigned
Attachments: exception.patch, pom.xml
Components: rpm
Created: 05/Mar/13 2:53 AM
Description:

I've found that default plugin behavior when it cannot resolve project artifact is a bit confusing. When I try to run mvn package rpm:rpm without mvn install, the build fails with Null Pointer Exception.

I think that NPE should not be raised in any expected situation. And it seems to me that "rpm without install" situation is (more or less) typical user mistake, and, hense, it's an expected situation.

In order to help plugin user with this, I suggest to check artifact resolvance status and throw MojoExecutionException when it is not resolved. I guess, it could help plugin user to determine his/her mistake more quickly.

Please see patch attached. I've also attached simple pom.xml file that demonstrates described behavior.

Project: Mojo RPM Plugin
Priority: Minor Minor
Reporter: Andrey Hitrin
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
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to