[MPLUGIN-129] Avoid generation of emtpy plugin report for POM projects

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@681142 13f79535-47bb-0310-9956-ffa450edef68
master
Benjamin Bentmann 2008-07-30 17:48:08 +00:00
parent afb4e34338
commit 2900246e01
1 changed files with 7 additions and 1 deletions

View File

@ -137,11 +137,17 @@ public class PluginReport
return project; return project;
} }
/** {@inheritDoc} */
public boolean canGenerateReport()
{
return "maven-plugin".equals( project.getPackaging() );
}
/** {@inheritDoc} */ /** {@inheritDoc} */
protected void executeReport( Locale locale ) protected void executeReport( Locale locale )
throws MavenReportException throws MavenReportException
{ {
if ( !project.getPackaging().equals( "maven-plugin" ) ) if ( !canGenerateReport() )
{ {
return; return;
} }