diff --git a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/DescriptorGeneratorMojo.java b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/DescriptorGeneratorMojo.java index ba836830..0002b1e9 100644 --- a/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/DescriptorGeneratorMojo.java +++ b/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/DescriptorGeneratorMojo.java @@ -301,7 +301,7 @@ public void generate() && project.getArtifactId().toLowerCase().endsWith( "-plugin" ) && !"org.apache.maven.plugins".equals( project.getGroupId() ) ) { - getLog().error( LS + LS + "Artifact Ids of the format maven-___-plugin are reserved for" + LS + getLog().warn( LS + LS + "Artifact Ids of the format maven-___-plugin are reserved for" + LS + "plugins in the Group Id org.apache.maven.plugins" + LS + "Please change your artifactId to the format ___-maven-plugin" + LS + "In the future this error will break the build." + LS + LS ); @@ -318,7 +318,7 @@ public void generate() Set wrongScopedArtifacts = dependenciesNotInProvidedScope(); if ( !wrongScopedArtifacts.isEmpty() ) { - StringBuilder errorMessage = new StringBuilder( + StringBuilder message = new StringBuilder( LS + LS + "Some dependencies of Maven Plugins are expected to be in provided scope." + LS + "Please make sure that dependencies listed below declared in POM" + LS + "have set 'provided' as well." + LS + LS @@ -326,11 +326,11 @@ public void generate() ); for ( Artifact artifact : wrongScopedArtifacts ) { - errorMessage.append( " * " ).append( artifact ).append( LS ); + message.append( " * " ).append( artifact ).append( LS ); } - errorMessage.append( LS ).append( LS ); + message.append( LS ).append( LS ); - getLog().error( errorMessage.toString() ); + getLog().warn( message.toString() ); } }