You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@htrace.apache.org by cm...@apache.org on 2017/05/16 17:01:09 UTC

incubator-htrace git commit: HTRACE-398: Enforce requirement to build with Maven 3.0.4 from HTRACE-236

Repository: incubator-htrace
Updated Branches:
  refs/heads/master 96cd91681 -> 534197392


HTRACE-398: Enforce requirement to build with Maven 3.0.4 from HTRACE-236


Project: http://git-wip-us.apache.org/repos/asf/incubator-htrace/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-htrace/commit/53419739
Tree: http://git-wip-us.apache.org/repos/asf/incubator-htrace/tree/53419739
Diff: http://git-wip-us.apache.org/repos/asf/incubator-htrace/diff/53419739

Branch: refs/heads/master
Commit: 534197392d0518b7f44753da7055474d4d1204a2
Parents: 96cd916
Author: Colin P. McCabe <co...@apache.org>
Authored: Tue May 16 08:59:14 2017 -0700
Committer: Colin P. McCabe <co...@apache.org>
Committed: Tue May 16 08:59:14 2017 -0700

----------------------------------------------------------------------
 BUILDING.txt |  2 +-
 pom.xml      | 26 ++++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-htrace/blob/53419739/BUILDING.txt
----------------------------------------------------------------------
diff --git a/BUILDING.txt b/BUILDING.txt
index ad8ef12..5407fa2 100644
--- a/BUILDING.txt
+++ b/BUILDING.txt
@@ -4,7 +4,7 @@ Building HTrace
 Building HTrace requires
 
 * Java 1.7 at least.
-* Apache Maven 3.x
+* Apache Maven 3.0.4
 * Go programming language, version 1.4 or higher (for htrace-htraced)
 * The development package for leveldb (for htrace-htraced)
 

http://git-wip-us.apache.org/repos/asf/incubator-htrace/blob/53419739/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 44e850a..fe93777 100644
--- a/pom.xml
+++ b/pom.xml
@@ -122,6 +122,27 @@ language governing permissions and limitations under the License. -->
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-enforcer-plugin</artifactId>
+          <version>${maven-enforcer-plugin.version}</version>
+          <executions>
+            <execution>
+              <id>enforce-maven</id>
+              <goals>
+                <goal>enforce</goal>
+              </goals>
+              <configuration>
+                <rules>
+                  <requireMavenVersion>
+                    <version>[3.0.4]</version>
+		    <message>Maven 3.0.4 is required, see HTRACE-236</message>
+		  </requireMavenVersion>
+		</rules>
+	      </configuration>
+            </execution>
+          </executions>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-jar-plugin</artifactId>
           <version>${maven-jar-plugin.version}</version>
           <executions>
@@ -220,6 +241,10 @@ language governing permissions and limitations under the License. -->
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-gpg-plugin</artifactId>
       </plugin>
       <plugin>
@@ -276,6 +301,7 @@ language governing permissions and limitations under the License. -->
   <properties>
     <targetJdk>1.7</targetJdk>
     <failIfNoTests>false</failIfNoTests>
+    <maven-enforcer-plugin.version>1.4.1</maven-enforcer-plugin.version>
     <maven-source-plugin.version>2.1.2</maven-source-plugin.version>
     <maven-javadoc-plugin.version>2.8.1</maven-javadoc-plugin.version>
     <maven-jar-plugin.version>2.4</maven-jar-plugin.version>