Building Source Code of Hadoop 3.0.0 – Problem of Doxia dependency

Standard

I found a problem while I was trying to build the source code of Hadoop v3.0.0, I would like to note this for myself and also share with the community through my blog.

When I tried to build the code with the following command:
mvn package -Pdist -DskipTests -Dtar -X

I got the following maven error:

Basically, it complains because it cannot find the org.apache.maven.doxia. I believe doxia-module-markdown v1.8 is released after the Hadoop release. Therefore, snapshot version couldn’t been downloaded and needs to be changed. To solve the problem, please change the following dependency in main pom.xml

from

<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-module-markdown</artifactId>
<version>1.8-SNAPSHOT</version>
</dependency>

to

<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-module-markdown</artifactId>
<version>1.8</version>
</dependency>

Special thanks to https://issues.apache.org/jira/browse/HADOOP-15122

Leave a Reply

Your email address will not be published. Required fields are marked *