HADOOP-17777. Update clover-maven-plugin version from 3.3.0 to 4.4.1 (#3152)

(cherry picked from commit c005195b78)
This commit is contained in:
Wanqiang Ji 2021-06-30 09:32:16 +08:00 committed by Wei-Chiu Chuang
parent 4ee7bd345f
commit 628b08db63
No known key found for this signature in database
GPG Key ID: B362E1C021854B9D
3 changed files with 9 additions and 11 deletions

View File

@ -125,7 +125,7 @@ Maven build goals:
* Run checkstyle : mvn compile checkstyle:checkstyle * Run checkstyle : mvn compile checkstyle:checkstyle
* Install JAR in M2 cache : mvn install * Install JAR in M2 cache : mvn install
* Deploy JAR to Maven repo : mvn deploy * Deploy JAR to Maven repo : mvn deploy
* Run clover : mvn test -Pclover [-DcloverLicenseLocation=${user.name}/.clover.license] * Run clover : mvn test -Pclover
* Run Rat : mvn apache-rat:check * Run Rat : mvn apache-rat:check
* Build javadocs : mvn javadoc:javadoc * Build javadocs : mvn javadoc:javadoc
* Build distribution : mvn package [-Pdist][-Pdocs][-Psrc][-Pnative][-Dtar][-Preleasedocs][-Pyarn-ui] * Build distribution : mvn package [-Pdist][-Pdocs][-Psrc][-Pnative][-Dtar][-Preleasedocs][-Pyarn-ui]

View File

@ -126,8 +126,8 @@
classes during plugin execution when running a build with Clover enabled. classes during plugin execution when running a build with Clover enabled.
--> -->
<plugin> <plugin>
<groupId>com.atlassian.maven.plugins</groupId> <groupId>org.openclover</groupId>
<artifactId>maven-clover2-plugin</artifactId> <artifactId>clover-maven-plugin</artifactId>
<configuration> <configuration>
<skip>true</skip> <skip>true</skip>
</configuration> </configuration>

14
pom.xml
View File

@ -108,7 +108,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
<maven-resources-plugin.version>3.0.1</maven-resources-plugin.version> <maven-resources-plugin.version>3.0.1</maven-resources-plugin.version>
<apache-rat-plugin.version>0.12</apache-rat-plugin.version> <apache-rat-plugin.version>0.12</apache-rat-plugin.version>
<wagon-ssh.version>2.4</wagon-ssh.version> <wagon-ssh.version>2.4</wagon-ssh.version>
<maven-clover2-plugin.version>3.3.0</maven-clover2-plugin.version> <clover-maven-plugin.version>4.4.1</clover-maven-plugin.version>
<maven-bundle-plugin.version>2.5.0</maven-bundle-plugin.version> <maven-bundle-plugin.version>2.5.0</maven-bundle-plugin.version>
<lifecycle-mapping.version>1.0.0</lifecycle-mapping.version> <lifecycle-mapping.version>1.0.0</lifecycle-mapping.version>
<maven-checkstyle-plugin.version>3.1.0</maven-checkstyle-plugin.version> <maven-checkstyle-plugin.version>3.1.0</maven-checkstyle-plugin.version>
@ -334,9 +334,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>com.atlassian.maven.plugins</groupId> <groupId>org.openclover</groupId>
<artifactId>maven-clover2-plugin</artifactId> <artifactId>clover-maven-plugin</artifactId>
<version>${maven-clover2-plugin.version}</version> <version>${clover-maven-plugin.version}</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.felix</groupId> <groupId>org.apache.felix</groupId>
@ -663,7 +663,6 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
</property> </property>
</activation> </activation>
<properties> <properties>
<cloverLicenseLocation>${user.home}/.clover.license</cloverLicenseLocation>
<cloverDatabase>${project.build.directory}/clover/hadoop-coverage.db</cloverDatabase> <cloverDatabase>${project.build.directory}/clover/hadoop-coverage.db</cloverDatabase>
<!-- NB: This additional parametrization is made in order <!-- NB: This additional parametrization is made in order
to be able to re-define these properties with "-Dk=v" maven options. to be able to re-define these properties with "-Dk=v" maven options.
@ -681,12 +680,11 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>com.atlassian.maven.plugins</groupId> <groupId>org.openclover</groupId>
<artifactId>maven-clover2-plugin</artifactId> <artifactId>clover-maven-plugin</artifactId>
<configuration> <configuration>
<includesAllSourceRoots>false</includesAllSourceRoots> <includesAllSourceRoots>false</includesAllSourceRoots>
<includesTestSourceRoots>true</includesTestSourceRoots> <includesTestSourceRoots>true</includesTestSourceRoots>
<licenseLocation>${cloverLicenseLocation}</licenseLocation>
<cloverDatabase>${cloverDatabase}</cloverDatabase> <cloverDatabase>${cloverDatabase}</cloverDatabase>
<targetPercentage>50%</targetPercentage> <targetPercentage>50%</targetPercentage>
<outputDirectory>${project.build.directory}/clover</outputDirectory> <outputDirectory>${project.build.directory}/clover</outputDirectory>