mirror of https://github.com/apache/maven.git
Improve the use of checkstyle in the build (#477)
* Improve the use of checkstyle in the build * Fix wording
This commit is contained in:
parent
a7010c55e1
commit
46410d3df2
|
@ -0,0 +1 @@
|
||||||
|
The .mvn directory is needed to be able to use the ${maven.multiModuleProjectDirectory} property.
|
|
@ -0,0 +1,30 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
or more contributor license agreements. See the NOTICE file
|
||||||
|
distributed with this work for additional information
|
||||||
|
regarding copyright ownership. The ASF licenses this file
|
||||||
|
to you under the Apache License, Version 2.0 (the
|
||||||
|
"License"); you may not use this file except in compliance
|
||||||
|
with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing,
|
||||||
|
software distributed under the License is distributed on an
|
||||||
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
KIND, either express or implied. See the License for the
|
||||||
|
specific language governing permissions and limitations
|
||||||
|
under the License.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!DOCTYPE suppressions PUBLIC
|
||||||
|
"-//Checkstyle//DTD SuppressionFilter Configuration 1.0//EN"
|
||||||
|
"https://checkstyle.org/dtds/suppressions_1_0.dtd">
|
||||||
|
|
||||||
|
<suppressions>
|
||||||
|
<suppress checks="JavadocVariable|JavadocMethod" files=".*" />
|
||||||
|
<suppress checks="HiddenField" files=".*" />
|
||||||
|
<suppress checks="FileLength" files="ModelMerger\.java" />
|
||||||
|
</suppressions>
|
|
@ -33,10 +33,6 @@ under the License.
|
||||||
<name>Maven Model</name>
|
<name>Maven Model</name>
|
||||||
<description>Model for Maven POM (Project Object Model)</description>
|
<description>Model for Maven POM (Project Object Model)</description>
|
||||||
|
|
||||||
<properties>
|
|
||||||
<checkstyle.violation.ignore>FileLength</checkstyle.violation.ignore>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.codehaus.plexus</groupId>
|
<groupId>org.codehaus.plexus</groupId>
|
||||||
|
|
25
pom.xml
25
pom.xml
|
@ -76,8 +76,6 @@ under the License.
|
||||||
<distributionShortName>Maven</distributionShortName>
|
<distributionShortName>Maven</distributionShortName>
|
||||||
<distributionName>Apache Maven</distributionName>
|
<distributionName>Apache Maven</distributionName>
|
||||||
<maven.site.path>ref/4-LATEST</maven.site.path>
|
<maven.site.path>ref/4-LATEST</maven.site.path>
|
||||||
<checkstyle.violation.ignore>None</checkstyle.violation.ignore>
|
|
||||||
<checkstyle.excludes>**/package-info.java</checkstyle.excludes>
|
|
||||||
<project.build.outputTimestamp>2021-04-05T08:12:18Z</project.build.outputTimestamp>
|
<project.build.outputTimestamp>2021-04-05T08:12:18Z</project.build.outputTimestamp>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
@ -591,6 +589,8 @@ under the License.
|
||||||
<!--
|
<!--
|
||||||
! Excluded the license files itself cause they do not have have a license of themselves.
|
! Excluded the license files itself cause they do not have have a license of themselves.
|
||||||
-->
|
-->
|
||||||
|
<exclude>src/main/appended-resources/licenses/MIT-slf4j-api-1.7.30.txt</exclude>
|
||||||
|
<exclude>src/main/appended-resources/licenses/MIT-jsoup-1.12.1.txt</exclude>
|
||||||
<exclude>src/main/appended-resources/licenses/CDDL-1.0.txt</exclude>
|
<exclude>src/main/appended-resources/licenses/CDDL-1.0.txt</exclude>
|
||||||
<exclude>src/main/appended-resources/licenses/EPL-1.0.txt</exclude>
|
<exclude>src/main/appended-resources/licenses/EPL-1.0.txt</exclude>
|
||||||
<exclude>src/main/appended-resources/licenses/unrecognized-javax.annotation-api-1.3.2.txt</exclude>
|
<exclude>src/main/appended-resources/licenses/unrecognized-javax.annotation-api-1.3.2.txt</exclude>
|
||||||
|
@ -673,6 +673,27 @@ under the License.
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||||
|
<version>3.1.2</version>
|
||||||
|
<configuration>
|
||||||
|
<violationSeverity>info</violationSeverity>
|
||||||
|
<suppressionsLocation>${maven.multiModuleProjectDirectory}/build/checkstyle-suppressions.xml</suppressionsLocation>
|
||||||
|
</configuration>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.puppycrawl.tools</groupId>
|
||||||
|
<artifactId>checkstyle</artifactId>
|
||||||
|
<version>8.41.1</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.maven.shared</groupId>
|
||||||
|
<artifactId>maven-shared-resources</artifactId>
|
||||||
|
<version>3</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue