You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by bh...@apache.org on 2018/05/31 18:02:12 UTC
hadoop git commit: HADOOP-15490:Multiple declaration of
maven-enforcer-plugin found in pom.xml. Contributed by Nanda kumar
Repository: hadoop
Updated Branches:
refs/heads/trunk 1f324e966 -> a58acd908
HADOOP-15490:Multiple declaration of maven-enforcer-plugin found in pom.xml. Contributed by Nanda kumar
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/a58acd90
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/a58acd90
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/a58acd90
Branch: refs/heads/trunk
Commit: a58acd9080ab609db197438d2e5ff9152c91898c
Parents: 1f324e9
Author: Bharat Viswanadham <bh...@apache.org>
Authored: Thu May 31 10:56:17 2018 -0700
Committer: Bharat Viswanadham <bh...@apache.org>
Committed: Thu May 31 10:56:17 2018 -0700
----------------------------------------------------------------------
pom.xml | 41 +++++++++++++++++------------------------
1 file changed, 17 insertions(+), 24 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/a58acd90/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 13f9255..3695be0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -375,6 +375,23 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
</goals>
<phase>pre-site</phase>
</execution>
+ <execution>
+ <id>enforce-property</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireProperty>
+ <property>hadoop.version</property>
+ <message>You must set a hadoop.version to be the same as ${project.version}</message>
+ <regex>${project.version}</regex>
+ <regexMessage>The hadoop.version property should be set and should be ${project.version}.</regexMessage>
+ </requireProperty>
+ </rules>
+ <fail>true</fail>
+ </configuration>
+ </execution>
</executions>
</plugin>
<plugin>
@@ -428,30 +445,6 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
<artifactId>dependency-check-maven</artifactId>
<version>${dependency-check-maven.version}</version>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <version>${maven-enforcer-plugin.version}</version>
- <executions>
- <execution>
- <id>enforce-property</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <requireProperty>
- <property>hadoop.version</property>
- <message>You must set a hadoop.version to be the same as ${project.version}</message>
- <regex>${project.version}</regex>
- <regexMessage>The hadoop.version property should be set and should be ${project.version}.</regexMessage>
- </requireProperty>
- </rules>
- <fail>true</fail>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org