[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-ffa450edef68master
parent
afb4e34338
commit
2900246e01
|
|
@ -137,11 +137,17 @@ public class PluginReport
|
|||
return project;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public boolean canGenerateReport()
|
||||
{
|
||||
return "maven-plugin".equals( project.getPackaging() );
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
protected void executeReport( Locale locale )
|
||||
throws MavenReportException
|
||||
{
|
||||
if ( !project.getPackaging().equals( "maven-plugin" ) )
|
||||
if ( !canGenerateReport() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue