2014-03-07 24 views
-1
 
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 
    SLF4J: Defaulting to no-operation (NOP) logger implementation 
    SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 
    [INFO] Scanning for projects... 
    Downloading: https://oss.sonatype.org/content/groups/public/org/sonatype/oss/oss-parent/7/oss-parent-7.pom 
    Downloading: http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom 
    Downloaded: http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom (5 KB at 4.2 KB/sec) 
    [INFO]                   
    [INFO] ------------------------------------------------------------------------ 
    [INFO] Building Jest Apache HC Jar 0.1.0-SNAPSHOT 
    [INFO] ------------------------------------------------------------------------ 
    [WARNING] The POM for io.searchbox:jest-common:jar:0.1.0-SNAPSHOT is missing, no dependency information available 
    [INFO] ------------------------------------------------------------------------ 
    [INFO] BUILD FAILURE 
    [INFO] ------------------------------------------------------------------------ 
    [INFO] Total time: 6.504s 
    [INFO] Finished at: Fri Mar 07 14:50:25 CST 2014 
    [INFO] Final Memory: 7M/119M 
    [INFO] ------------------------------------------------------------------------ 
    [ERROR] Failed to execute goal on project jest: Could not resolve dependencies for project io.searchbox:jest:jar:0.1.0-SNAPSHOT: Failure to find io.searchbox:jest-common:jar:0.1.0-SNAPSHOT in https://oss.sonatype.org/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of sonatype 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. 
    [ERROR] 
    [ERROR] For more information about the errors and possible solutions, please read the following articles: 
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 
+0

對不起,這是沒用的,有些上下文會有幫助 –

+0

有沒有問題的地方? – akaHuman

+0

在我的.m2 floder沒有找到jar,只有pom – user536161

回答

2

按照jest readme on github,你需要添加Sonatype的Maven倉庫:

<repositories> 
<repository> 
    <id>sonatype</id> 
    <name>Sonatype Groups</name> 
    <url>https://oss.sonatype.org/content/groups/public/</url> 
</repository> 
</repositories> 

然後依賴性:

<dependency> 
    <groupId>io.searchbox</groupId> 
    <artifactId>jest</artifactId> 
    <version>0.1.0-SNAPSHOT</version> 
</dependency> 

或者,自己建立存儲庫並install it locally

mvn install:install-file -Dfile=<path-to-file> -DgroupId=io.searchbox -DartifactId=jest -Dversion=0.1.0-SNAPSHOT -Dpackaging=jar 

如果您在本地安裝它,請注意存儲庫,但包含依賴關係。