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/HDDS-48 Commit: a58acd9080ab609db197438d2e5ff9152c91898c Parents: 1f324e9 Author: Bharat Viswanadham <bha...@apache.org> Authored: Thu May 31 10:56:17 2018 -0700 Committer: Bharat Viswanadham <bha...@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-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org