Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

Mavenで外部リポジトリを追加する (Hadoopの場合)

More than 5 years have passed since last update.

リリース判断のvotingをするために、RC(Release Candidate)をビルドしたい。けれども、レポジトリがまだ正式に登録されていないからmvnコマンドが実行できない、という場合の対処法

Hadoop 2.5.1(RC0)のときのメールから引用

I have put together a release candidate (RC0) for Hadoop 2.5.1.

The RC is available at: http://people.apache.org/~kasha/hadoop-2.5.1-RC0/
The RC git tag is release-2.5.1-RC0
The maven artifacts are staged at:
https://repository.apache.org/content/repositories/orgapachehadoop-1010/

You can find my public key at:
http://svn.apache.org/repos/asf/hadoop/common/dist/KEYS

ここで、https://repository.apache.org/content/repositories/orgapachehadoop-1010/をコピーして、pom.xmlに貼り付けてあげるとよい。diffはこんな感じ。

diff --git pom.xml pom.xml
index c4abc1b..2145426 100644
--- pom.xml
+++ pom.xml
@@ -64,6 +64,10 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://
         <enabled>false</enabled>
       </snapshots>
     </repository>
+    <repository>
+      <id>org.apache.hadoop</id>
+      <url>https://repository.apache.org/content/repositories/orgapachehadoop-1010/</url>
+    </repository>
   </repositories>

   <licenses>

これだけではうまくいかなかったので、hadoop-maven-pluginsをコンパイルしなおしたら、ドキュメントもコンパイルできるようになった。

$ cd hadoop-maven-plugins
$ mvn install
ajis_ka_old
Moved to https://qiita.com/aajisaka
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away