2017-09-05 5 views
1

BitBucketプルリクエストリスナーを作成しようとしています。しかし、それに関連するjarファイルは、mavenプロジェクトを作成しようとするとダウンロードされません。 MavenプロジェクトにBitbucket依存関係がダウンロードされていません

<!-- https://mvnrepository.com/artifact/com.atlassian.bitbucket.server /bitbucket-api --> 

<dependency> 
    <groupId>com.atlassian.bitbucket.server</groupId> 
    <artifactId>bitbucket-api</artifactId> 
    <version>4.0.0-m7</version> 
    <scope>provided</scope> 
</dependency> 

[INFO] ------------------------------------------------------------------------ 
[WARNING] The POM for com.atlassian.bitbucket.server:bitbucket-api:jar:4.0.0-m7 is missing, no dependency information available 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 0.470 s 
[INFO] Finished at: 2017-09-05T13:31:54+05:30 
[INFO] Final Memory: 6M/155M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal on project bitbucketsniffer: Could not resolve dependencies for project com.bitbucketsniffer:bitbucketsniffer:jar:1.0-SNAPSHOT: Failure to find com.atlassian.bitbucket.server:bitbucket-api:jar:4.0.0-m7 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 

我々はオラクルの依存関係の瓶と同じように、手動でのjarファイルをインストールする方法はあり

、はい、この作品、私はこのプロジェクトの実行可能なjarファイルを作成しようとするかどうか?

答えて

0

リポジトリも定義する必要があります。

だから、<dependencies>前に、あなたのpom.xmlファイルにこれを置く:

<repositories> 
    <repository> 
     <id>atlassian</id> 
     <url>https://maven.atlassian.com/content/repositories/atlassian-public/</url> 
    </repository> 
</repositories> 

mvnrepository.comさまざまなライブラリのためだけの検索エンジンです。通常はリポジトリを含める必要があるときにノート内のリンクを表示します。

例:mvnrepository.com different repository example

+0

あり、このためのいくつかのコンパイル依存関係がありますが、私は/リポジトリをチェックすると、それは3.69.2として分析-APIのバージョンを示しています。しかし、必要なのは4.0.0です.Mavenリポジトリにも 'analytics-api'がない場合、どうすればこのバージョンを手に入れることができますか? – RahulSingh123321

関連する問題