mirror of https://github.com/apache/maven.git
[MSITE-484] reporting section cannot be deprecated in Maven core for the
moment
This commit is contained in:
parent
9404499ccd
commit
7d359445d1
|
@ -27,11 +27,7 @@ import org.apache.maven.model.ReportPlugin;
|
|||
import org.apache.maven.model.ReportSet;
|
||||
import org.apache.maven.model.Reporting;
|
||||
import org.apache.maven.model.building.ModelBuildingRequest;
|
||||
import org.apache.maven.model.building.ModelProblem;
|
||||
import org.apache.maven.model.building.ModelProblemCollector;
|
||||
import org.apache.maven.model.building.ModelProblem.Severity;
|
||||
import org.apache.maven.model.building.ModelProblem.Version;
|
||||
import org.apache.maven.model.building.ModelProblemCollectorRequest;
|
||||
import org.codehaus.plexus.component.annotations.Component;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.codehaus.plexus.util.xml.Xpp3Dom;
|
||||
|
@ -104,6 +100,7 @@ public class DefaultReportingConverter
|
|||
|
||||
boolean hasMavenProjectInfoReportsPlugin = false;
|
||||
|
||||
/* waiting for MSITE-484 before deprecating <reporting> section
|
||||
if ( !reporting.getPlugins().isEmpty()
|
||||
&& request.getValidationLevel() >= ModelBuildingRequest.VALIDATION_LEVEL_MAVEN_3_1 )
|
||||
{
|
||||
|
@ -111,7 +108,7 @@ public class DefaultReportingConverter
|
|||
problems.add( new ModelProblemCollectorRequest( Severity.WARNING, Version.V31 )
|
||||
.setMessage( "The <reporting> section is deprecated, please move the reports to the <configuration> section of the new Maven Site Plugin." )
|
||||
.setLocation( reporting.getLocation( "" ) ) );
|
||||
}
|
||||
}*/
|
||||
|
||||
for ( ReportPlugin plugin : reporting.getPlugins() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue