[ 
https://issues.apache.org/jira/browse/HDFS-12527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16177140#comment-16177140
 ] 

Elek, Marton commented on HDFS-12527:
-------------------------------------

The problem is that the httpclient and httpcore versions are incompatible.

We have two version definition in hadoop-project/pom.xml:
 
{code}
    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.5.2</version>
      </dependency>
      <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpcore</artifactId>
        <version>4.4.4</version>
      </dependency>
{code}

The problem is that the second one is a dependency of the first one. We should 
define exactly the same version in the second one which is used by the first 
one. 

The problem was that both the versions are bumped (HADOOP-14654 and 
HADOOP-14655) but HADOOP-14655 is reverted. Now we use a different httpcore 
version and not the one which is used by httpclient 4.5.2 by default. So the 
two jiras should be applyed together or reverted together.

> javadoc: error - class file for org.apache.http.annotation.ThreadSafe not 
> found
> -------------------------------------------------------------------------------
>
>                 Key: HDFS-12527
>                 URL: https://issues.apache.org/jira/browse/HDFS-12527
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: documentation
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Mukul Kumar Singh
>
> {code}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:jar (module-javadocs) on 
> project hadoop-hdfs-client: MavenReportException: Error while generating 
> Javadoc: 
> [ERROR] Exit code: 1 - 
> /Users/szetszwo/hadoop/t2/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/util/StripedBlockUtil.java:694:
>  warning - Tag @link: reference not found: StripingCell
> [ERROR] javadoc: error - class file for org.apache.http.annotation.ThreadSafe 
> not found
> [ERROR] 
> [ERROR] Command line was: 
> /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/../bin/javadoc
>  -J-Xmx768m @options @packages
> [ERROR] 
> [ERROR] Refer to the generated Javadoc files in 
> '/Users/szetszwo/hadoop/t2/hadoop-hdfs-project/hadoop-hdfs-client/target/api' 
> dir.
> {code}
> To reproduce the error above, run
> {code}
> mvn package -Pdist -DskipTests -DskipDocs -Dtar
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to