HBASE-17351 Enforcer plugin fails with NullPointerException
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/fb3c8bf6 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/fb3c8bf6 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/fb3c8bf6 Branch: refs/heads/HBASE-18467 Commit: fb3c8bf6087b1d9e086a6becd1c0e518cb1f8936 Parents: 9c5b03a Author: Michael Stack <[email protected]> Authored: Thu Sep 14 17:20:59 2017 -0700 Committer: Michael Stack <[email protected]> Committed: Thu Sep 14 17:22:41 2017 -0700 ---------------------------------------------------------------------- pom.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/fb3c8bf6/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 29a2505..019501c 100755 --- a/pom.xml +++ b/pom.xml @@ -812,7 +812,7 @@ <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> - <versionRange>[1.0.1,)</versionRange> + <version>${enforcer.version}</version> <goals> <goal>enforce</goal> </goals> @@ -971,6 +971,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> + <version>${enforcer.version}</version> <dependencies> <dependency> <groupId>org.codehaus.mojo</groupId> @@ -1517,6 +1518,8 @@ <argLine>${hbase-surefire.argLine}</argLine> <jacoco.version>0.7.5.201505241946</jacoco.version> <extra.enforcer.version>1.0-beta-6</extra.enforcer.version> + <!--See HBASE-17351; we need to set version to 1.4. 1.4.1 fails with MENFORCER-248--> + <enforcer.version>1.4</enforcer.version> <!-- Location of test resources --> <test.build.classes>${project.build.directory}/test-classes</test.build.classes> <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss'Z'</maven.build.timestamp.format> @@ -2314,6 +2317,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> + <version>${enforcer.version}</version> <configuration> <rules> <enforceBytecodeVersion>
