[ 
http://jira.codehaus.org/browse/MCHANGES-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=263903#action_263903
 ] 

Ivan Khalopik commented on MCHANGES-233:
----------------------------------------

Hi,

I am using announcement-generate mojo with changes.xml to create release notes 
file, that will be packaged to release jar. It will be good to have one central 
(in parent pom) configuration for all child modules that will generate CHANGES 
file and put it into jar. But if there are no changes.xml file (or it is empty) 
in some modules the plugin will force build error. It is possible to move 
configuration to those modules that have changes.xml, but it is not a good 
solution i think.

In ChangesValidationMojo you have failOnError option. It will be nice to have 
similar option in AnnouncementMojo. For example:

if ( releases == null || releases.isEmpty() )
{
   if (failOnError) {
      throw new MojoExecutionException(
         "No releases found in any of the configured issue management systems." 
);
   }
}
else
{
   doGenerate( releases );
}

Or to wrap code with try-catch as the whole execute method can provide 
exceptions too.


> Add option to skip announcement if there are no changes or changes.xml file 
> is missing
> --------------------------------------------------------------------------------------
>
>                 Key: MCHANGES-233
>                 URL: http://jira.codehaus.org/browse/MCHANGES-233
>             Project: Maven 2.x Changes Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.4
>            Reporter: Ivan Khalopik
>
> It will be good to have some option to skip announcement generation if there 
> are no changes for artifact. Now if there are no changes build fails with 
> error:
> No releases found in any of the configured issue management systems.

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

        

Reply via email to