Java 无法生成nosqlunit mongodb项目

Java 无法生成nosqlunit mongodb项目,java,mongodb,nosql,Java,Mongodb,Nosql,我无法构建nosqlunit mongodb项目。编译这个项目给了我以下的例外。请帮助我理解这个异常是关于什么以及如何克服它 刚刚开始使用nosqlunit和mongodb。请容忍我的天真问题 user@host:nosqlunit-mongodb mvn compile [INFO] Scanning for projects... [INFO] [INFO] -------------------------------------------------------------------

我无法构建nosqlunit mongodb项目。编译这个项目给了我以下的例外。请帮助我理解这个异常是关于什么以及如何克服它

刚刚开始使用nosqlunit和mongodb。请容忍我的天真问题

user@host:nosqlunit-mongodb mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building nosqlunit-mongodb 0.7.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: <http s>:/oss.sonatype.org/content/repositories/snapshots/com/lordofthejars/nosqlunit-core/0.7.1-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata com.lordofthejars:nosqlunit-core:0.7.1-SNAPSHOT/maven-metadata.xml from/to sonatype-nexus-snapshots (http s:/oss.sonatype.org/content/repositories/snapshots): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
[WARNING] Failure to transfer com.lordofthejars:nosqlunit-core:0.7.1-SNAPSHOT/maven-metadata.xml from https:/oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced. Original error: Could not transfer metadata com.lordofthejars:nosqlunit-core:0.7.1-SNAPSHOT/maven-metadata.xml from/to sonatype-nexus-snapshots (https:/oss.sonatype.org/content/repositories/snapshots): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: http s:/oss.sonatype.org/content/repositories/snapshots/com/lordofthejars/nosqlunit-core/0.7.1-SNAPSHOT/nosqlunit-core-0.7.1-SNAPSHOT.pom
Downloading: http s:/oss.sonatype.org/content/repositories/snapshots/com/lordofthejars/nosqlunit-mongodb/0.7.1-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata com.lordofthejars:nosqlunit-mongodb:0.7.1-SNAPSHOT/maven-metadata.xml from/to sonatype-nexus-snapshots (http s:/oss.sonatype.org/content/repositories/snapshots): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.360s
[INFO] Finished at: Mon Dec 10 06:17:30 PST 2012
[INFO] Final Memory: 140M/698M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project nosqlunit-mongodb: Could not resolve dependencies for project com.lordofthejars:nosqlunit-mongodb:jar:0.7.1-SNAPSHOT: Failed to collect dependencies for [com.lordofthejars:nosqlunit-core:jar:0.7.1-SNAPSHOT (compile), org.mongodb:mongo-java-driver:jar:2.7.3 (compile), com.lordofthejars:nosqlunit-mongodb:jar:0.7.1-SNAPSHOT (compile), jmockmongo:jmockmongo:jar:0.0.2 (compile), junit:junit:jar:4.11 (provided), org.hamcrest:hamcrest-core:jar:1.3 (compile), org.hamcrest:hamcrest-library:jar:1.3 (compile), org.mockito:mockito-all:jar:1.9.0 (test), org.slf4j:slf4j-api:jar:1.6.4 (compile)]: Failed to read artifact descriptor for com.lordofthejars:nosqlunit-core:jar:0.7.1-SNAPSHOT: Could not transfer artifact com.lordofthejars:nosqlunit-core:pom:0.7.1-SNAPSHOT from/to sonatype-nexus-snapshots (https:/oss.sonatype.org/content/repositories/snapshots): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -> [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] htt p: /cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
user@host:nosqlunit mongodb mvn compile
[信息]正在扫描项目。。。
[信息]
[信息]------------------------------------------------------------------------
[信息]正在构建nosqlunit mongodb 0.7.1-SNAPSHOT
[信息]------------------------------------------------------------------------
下载::/oss.sonatype.org/content/repositories/snapshots/com/jars/nosqlunit-core/0.7.1-SNAPSHOT/maven-metadata.xml
[警告]无法将元数据com.jars:nosqlunit core:0.7.1-SNAPSHOT/maven-metadata.xml从sonatype nexus快照(http/s:/oss.sonatype.org/content/repositories/snapshots):java.lang.RuntimeException:意外错误:java.security.invalidalgorithParameterException:trustAnchors参数必须为非空
[警告]未能将com.jars:nosqlunit core:0.7.1-SNAPSHOT/maven-metadata.xml从https:/oss.sonatype.org/content/repositories/snapshots传输到本地存储库中,在sonatype nexus快照的更新间隔结束或强制更新之前,不会重新尝试解析。原始错误:无法将元数据com.jars:nosqlunit core:0.7.1-SNAPSHOT/maven-metadata.xml从/传输到sonatype nexus快照(https:/oss.sonatype.org/content/repositories/snapshots):java.lang.RuntimeException:意外错误:java.security.invalidalgorithParameterException:trustAnchors参数必须为非空
下载:http s:/oss.sonatype.org/content/repositories/snapshots/com/jars/nosqlunit-core/0.7.1-SNAPSHOT/nosqlunit-core-0.7.1-SNAPSHOT.pom
下载:http s:/oss.sonatype.org/content/repositories/snapshots/com/jars/nosqlunit-mongodb/0.7.1-SNAPSHOT/maven-metadata.xml
[警告]无法将元数据com.jars:nosqlunit mongodb:0.7.1-SNAPSHOT/maven-metadata.xml从sonatype nexus快照(http/s:/oss.sonatype.org/content/repositories/snapshots):java.lang.RuntimeException:意外错误:java.security.invalidalgorithParameterException:trustAnchors参数必须为非空
[信息]------------------------------------------------------------------------
[信息]生成失败
[信息]------------------------------------------------------------------------
[信息]总时间:3.360秒
[信息]完成时间:2012年12月10日星期一06:17:30太平洋标准时间
[信息]最终内存:140M/698M
[信息]------------------------------------------------------------------------
[错误]无法在nosqlunit mongodb项目上执行目标:无法解析项目com的依赖项。LordOfJars:nosqlunit mongodb:jar:0.7.1-SNAPSHOT:未能收集[com]的依赖项。LordOfJars:nosqlunit core:jar:0.7.1-SNAPSHOT(编译),org.mongodb:mongo java驱动程序:jar:2.7.3(编译),com.jars:nosqlunit mongodb:jar:0.7.1-SNAPSHOT(编译),jmockmongo:jmockmongo:jar:0.0.2(编译),junit:junit:jar:4.11(提供),org.hamcrest:hamcrest核心:jar:1.3(编译),org.hamcrest:hamcrest库:jar:1.3(编译),org.mockito:mockito全部:jar:1.9.0(测试),org.slf4j:slf4j:slf4j-api:jar:1.6.4(编译)]:未能读取com的工件描述符。Jars:nosqlunit core:jar:0.7.1-SNAPSHOT:无法将工件com传输。Jars:nosqlunit core:pom:0.7.1-SNAPSHOT从sonatype nexus快照传输/传输到sonatype nexus快照(https:/oss.sonatype.org/content/repositories/snapshots):java.lang.RuntimeException:意外错误:java.security.invalidalgorithParameterException:trustAnchors参数必须为非空->[帮助1]
[错误]
[错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。
[错误]使用-X开关重新运行Maven以启用完整调试日志记录。
[错误]
[错误]有关错误和可能的解决方案的更多信息,请阅读以下文章:
[错误][帮助1]htt p:/cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

您试图只编译nosqlunit mongodb,因此Maven试图从中检索com.jars:nosqlunit core:jar:0.7.1-SNAPSHOT,但它不存在

在项目根目录中运行mvn compile来编译所有模块(包括nosqlunit core),它应该可以工作