[
https://issues.apache.org/jira/browse/ACCUMULO-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13812784#comment-13812784
]
Christopher Tubbs edited comment on ACCUMULO-1848 at 11/4/13 7:59 PM:
----------------------------------------------------------------------
{code}
diff --git a/core/pom.xml b/core/pom.xml
index 8b4706b..0c0f909 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -74,11 +74,6 @@
<scope>provided</scope>
</dependency>
<dependency>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<scope>provided</scope>
@@ -104,6 +99,11 @@
<scope>provided</scope>
</dependency>
<dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<scope>provided</scope>
@@ -348,7 +348,7 @@
</mappings>
</configuration>
</execution>
- <!--
+ <!--
<execution>
<id>build-tests-rpm</id>
<goals>
diff --git a/examples/simple/pom.xml b/examples/simple/pom.xml
index de60f8d..eb53902 100644
--- a/examples/simple/pom.xml
+++ b/examples/simple/pom.xml
@@ -50,11 +50,6 @@
<scope>provided</scope>
</dependency>
<dependency>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<scope>provided</scope>
@@ -70,6 +65,11 @@
<scope>provided</scope>
</dependency>
<dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
diff --git a/maven-plugin/pom.xml b/maven-plugin/pom.xml
index f334795..3b66c3a 100644
--- a/maven-plugin/pom.xml
+++ b/maven-plugin/pom.xml
@@ -44,10 +44,6 @@
<artifactId>commons-configuration</artifactId>
</dependency>
<dependency>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- </dependency>
- <dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
@@ -99,6 +95,11 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <scope>provided</scope>
+ </dependency>
</dependencies>
<build>
<plugins>
diff --git a/pom.xml b/pom.xml
index 784f219..41bc78a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -164,11 +164,6 @@
<version>1.6</version>
</dependency>
<dependency>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- <version>${httpclient.version}</version>
- </dependency>
- <dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.1</version>
@@ -447,6 +442,11 @@
<version>${hadoop.version}</version>
</dependency>
<dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <version>${httpclient.version}</version>
+ </dependency>
+ <dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${maven.min-version}</version>
@@ -1158,7 +1158,7 @@
</activation>
<properties>
<hadoop.version>2.2.0</hadoop.version>
- <httpclient.version>3.1</httpclient.version>
+ <httpclient.version>4.2.1</httpclient.version>
<slf4j.version>1.7.5</slf4j.version>
</properties>
</profile>
diff --git a/test/pom.xml b/test/pom.xml
index 8e4c152..e3b2b07 100644
--- a/test/pom.xml
+++ b/test/pom.xml
@@ -101,6 +101,11 @@
<scope>provided</scope>
</dependency>
<dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<scope>provided</scope>
@@ -116,11 +121,6 @@
<scope>provided</scope>
</dependency>
<dependency>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
{code}
was (Author: pkande):
diff --git a/core/pom.xml b/core/pom.xml
index 8b4706b..0c0f909 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -74,11 +74,6 @@
<scope>provided</scope>
</dependency>
<dependency>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<scope>provided</scope>
@@ -104,6 +99,11 @@
<scope>provided</scope>
</dependency>
<dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<scope>provided</scope>
@@ -348,7 +348,7 @@
</mappings>
</configuration>
</execution>
- <!--
+ <!--
<execution>
<id>build-tests-rpm</id>
<goals>
diff --git a/examples/simple/pom.xml b/examples/simple/pom.xml
index de60f8d..eb53902 100644
--- a/examples/simple/pom.xml
+++ b/examples/simple/pom.xml
@@ -50,11 +50,6 @@
<scope>provided</scope>
</dependency>
<dependency>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<scope>provided</scope>
@@ -70,6 +65,11 @@
<scope>provided</scope>
</dependency>
<dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
diff --git a/maven-plugin/pom.xml b/maven-plugin/pom.xml
index f334795..3b66c3a 100644
--- a/maven-plugin/pom.xml
+++ b/maven-plugin/pom.xml
@@ -44,10 +44,6 @@
<artifactId>commons-configuration</artifactId>
</dependency>
<dependency>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- </dependency>
- <dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
@@ -99,6 +95,11 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <scope>provided</scope>
+ </dependency>
</dependencies>
<build>
<plugins>
diff --git a/pom.xml b/pom.xml
index 784f219..41bc78a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -164,11 +164,6 @@
<version>1.6</version>
</dependency>
<dependency>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- <version>${httpclient.version}</version>
- </dependency>
- <dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.1</version>
@@ -447,6 +442,11 @@
<version>${hadoop.version}</version>
</dependency>
<dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <version>${httpclient.version}</version>
+ </dependency>
+ <dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${maven.min-version}</version>
@@ -1158,7 +1158,7 @@
</activation>
<properties>
<hadoop.version>2.2.0</hadoop.version>
- <httpclient.version>3.1</httpclient.version>
+ <httpclient.version>4.2.1</httpclient.version>
<slf4j.version>1.7.5</slf4j.version>
</properties>
</profile>
diff --git a/test/pom.xml b/test/pom.xml
index 8e4c152..e3b2b07 100644
--- a/test/pom.xml
+++ b/test/pom.xml
@@ -101,6 +101,11 @@
<scope>provided</scope>
</dependency>
<dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<scope>provided</scope>
@@ -116,11 +121,6 @@
<scope>provided</scope>
</dependency>
<dependency>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
> Failed to build Accumulo Maven Plugin with error: package
> org.apache.http.annotation does not exist
> ---------------------------------------------------------------------------------------------------
>
> Key: ACCUMULO-1848
> URL: https://issues.apache.org/jira/browse/ACCUMULO-1848
> Project: Accumulo
> Issue Type: Bug
> Components: build
> Affects Versions: 1.6.0
> Environment: CentOS 6.3 x64
> Reporter: Pierre Kande
> Labels: patch
> Fix For: 1.6.0
>
>
> When building Accumulo 1.6-SNAPSHOT with Hadoop 2.2 profile acitvated
> (enable), artifact Accumulo Maven Plugin fail to compile with below error.
> Its resolution necessitates to use
> <groupId>org.apache.httpcomponents</groupId>
> <artifactId>httpclient</artifactId>
> with<httpclient.version>4.2.1</httpclient.version>
> [INFO] Apache Accumulo ................................... SUCCESS [1.771s]
> [INFO] Trace ............................................. SUCCESS [0.698s]
> [INFO] Fate .............................................. SUCCESS [0.160s]
> [INFO] Start ............................................. SUCCESS [1.549s]
> [INFO] Core .............................................. SUCCESS [2.658s]
> [INFO] Simple Examples ................................... SUCCESS [2.045s]
> [INFO] Server Base ....................................... SUCCESS [3.472s]
> [INFO] GC Server ......................................... SUCCESS [0.591s]
> [INFO] Master Server ..................................... SUCCESS [0.894s]
> [INFO] Tablet Server ..................................... SUCCESS [1.459s]
> [INFO] MiniCluster ....................................... SUCCESS [1.228s]
> [INFO] Monitor Server .................................... SUCCESS [0.910s]
> [INFO] Native Libraries .................................. SUCCESS [6.263s]
> [INFO] Tracer Server ..................................... SUCCESS [0.399s]
> [INFO] Accumulo Maven Plugin ............................. FAILURE [7.735s]
> [INFO] Testing ........................................... SKIPPED
> [INFO] Proxy ............................................. SKIPPED
> [INFO] Extra Server Utilities ............................ SKIPPED
> [INFO] Assemblies ........................................ SKIPPED
> [INFO] Documentation ..................................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 32.734s
> [INFO] Finished at: Mon Nov 04 11:35:16 EET 2013
> [INFO] Final Memory: 69M/689M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
> (default-compile) on project accumulo-maven-plugin: Compilation failure:
> Compilation failure:
> [ERROR]
> /home/opensource/github/accumulo/maven-plugin/src/main/java/org/apache/accumulo/maven/plugin/StartMojo.java:[26,33]
> error: package org.apache.http.annotation does not exist
> [ERROR]
> /home/opensource/github/accumulo/maven-plugin/src/main/java/org/apache/accumulo/maven/plugin/StartMojo.java:[37,1]
> error: cannot find symbol
> [ERROR] symbol: class ThreadSafe
> [ERROR]
> /home/opensource/github/accumulo/maven-plugin/src/main/java/org/apache/accumulo/maven/plugin/StopMojo.java:[21,33]
> error: package org.apache.http.annotation does not exist
> [ERROR]
> /home/opensource/github/accumulo/maven-plugin/src/main/java/org/apache/accumulo/maven/plugin/StopMojo.java:[30,1]
> error: cannot find symbol
> [ERROR] symbol: class ThreadSafe
> [ERROR]
> /home/opensource/github/accumulo/maven-plugin/src/main/java/org/apache/accumulo/maven/plugin/StartMojo.java:[26,33]
> error: package org.apache.http.annotation does not exist
> [ERROR]
> /home/opensource/github/accumulo/maven-plugin/src/main/java/org/apache/accumulo/maven/plugin/StartMojo.java:[37,1]
> error: cannot find symbol
> [ERROR] symbol: class ThreadSafe
> [ERROR]
> /home/opensource/github/accumulo/maven-plugin/src/main/java/org/apache/accumulo/maven/plugin/StopMojo.java:[21,33]
> error: package org.apache.http.annotation does not exist
> [ERROR]
> /home/opensource/github/accumulo/maven-plugin/src/main/java/org/apache/accumulo/maven/plugin/StopMojo.java:[30,1]
> error: cannot find symbol
> [ERROR] -> [Help 1]
--
This message was sent by Atlassian JIRA
(v6.1#6144)