我需要编译并执行“以太演示”。
我没有找到“以太演示”的发行版,所以我使用的快照如下:
git clone git://git.eclipse.org/gitroot/aether/aether-core.git
cd aether-core
mvn clean install
git clone git://git.eclipse.org/gitroot/aether/aether-demo.git
cd aether-demo/
cd aether-demo-snippets/
mvn clean install但失败的原因是:
[ERROR] /private/tmp/aether-demo/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/manual/ManualRepositorySystemFactory.java:[33,40] cannot access org.sonatype.aether.impl.internal.DefaultServiceLocator
[ERROR] class file for org.sonatype.aether.impl.internal.DefaultServiceLocator not found
[ERROR] DefaultServiceLocator locator = new DefaultServiceLocator();和其他错误。
它告诉我们它找不到类"org.sonatype.aether.impl.internal.DefaultServiceLocator"
但是,ManualRepositorySystemFactory.java具有此导入:
import org.apache.maven.repository.internal.DefaultServiceLocator;为甚麽呢?ManualRepositorySystemFactory.java不会从org.sonatype.aether.impl.internal导入该类。为什么mvn clean install尝试从此包中导入它?
此外,“以太核心”项目还在另一个包中包含该文件:org/eclipse/aether/impl/DefaultServiceLocator.java
(根据git日志,它一直都在这里)
那么,到底发生了什么呢?是否存在包的重新映射?
如何编译和执行“以太演示”?
发布于 2013-04-22 20:19:58
已修复:https://bugs.eclipse.org/bugs/show_bug.cgi?id=406212
美国东部时间2013-04-22 07:45:03
成功运行示例所需的依赖项刚刚发布,使用它们的相应CQs仍在处理中。在我们批准这些更新之前,您可能需要查看https://github.com/bentmann/aether-demo,它提供了更新的预览。
https://stackoverflow.com/questions/16101685
复制相似问题