2016-06-13 31 views
1

私のspring-mvcプロジェクトにはsplunkのログを記録しようとしています。 私はGradleのビルドに以下の依存関係を追加する場合:Spring-Integration-Splunk依存関係の問題

Could not resolve all dependencies for configuration ':runtimeCopy'. 
    > Could not find com.splunk:splunk:1.3.0. 
    Searched in the following locations: 
     file:/Users/praveen/.m2/repository/com/splunk/splunk/1.3.0/splunk-1.3.0.pom 
     file:/Users/praveen/.m2/repository/com/splunk/splunk/1.3.0/splunk-1.3.0.jar 
     https://repo1.maven.org/maven2/com/splunk/splunk/1.3.0/splunk-1.3.0.pom 
     https://repo1.maven.org/maven2/com/splunk/splunk/1.3.0/splunk-1.3.0.jar 
    Required by: 
     :searchMart:unspecified > org.springframework.integration:spring-integration-splunk:1.1.0.RELEASE 

が、私はそれを見つけることができませんでしたsplunkバージョンをインストール見てみましたが、それも投げているエラー:

compile group: 'org.springframework.integration', name: 'spring-integration-splunk', version: '1.1.0.RELEASE' 

私は、エラー、次の取得。これを解決する方法の手がかりは?

答えて

1

spring-integration-splunkは、Maven Centralでホストされています。しかし、あなたは追加のレポを定義する必要がsplunk自体をダウンロードするには:

apply plugin: 'java' 

repositories { 
    mavenCentral() 
    maven { 
     url 'http://splunk.artifactoryonline.com/splunk/ext-releases-local' 
    } 
} 

dependencies { 
    compile 'org.springframework.integration:spring-integration-splunk:1.1.0.RELEASE' 
} 

task copyDeps(type: Copy) { 
    from configurations.compile 
    into 'libs' 
} 
+0

は、問題を解決しているあなたに感謝します。 しかし、私はまだ、SplunkLogEventクラスを見つけることができないようです。あなたはどんな理由でそれを知っていますか? – Praveen

+0

@Praveen、ごめんなさい、日食を一切使っていない。キャッシュをクリアしてプロジェクトを再起動しようとしている可能性があります。 – Opal

+0

@Praveen、私の答えが依存関係の問題を解決したら、答えを受け入れてください。 – Opal