简体   繁体   English

找不到oss-parent-7.jar

[英]Can't find oss-parent-7.jar

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

According to the jest readme on github , you need to add the sonatype maven repository: 根据github上最好的自述文件 ,您需要添加sonatype maven存储库:

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

And then the dependency: 然后是依赖项:

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

Alternatively, build the repository yourself and install it locally : 或者,您自己构建存储库并在本地安装

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

Forget the repository if you're installing it locally, but include the dependency. 如果要在本地安装,请忘记存储库,但要包含依赖项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM