【问题标题】:aether-demo does not compile because of renaming of packages由于重命名包,aether-demo 无法编译
【发布时间】:2013-04-19 09:40:21
【问题描述】:

我需要编译并执行“aether-demo”。

我没有找到“aether-demo”的版本,所以我使用快照如下:

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 尝试从这个包中导入它?

此外,“aether-core”项目在另一个包中还有该文件:org/eclipse/aether/impl/DefaultServiceLocator.java

(而且根据 git log,它一直都在这里)

那么,发生了什么? 是否在某处重新映射了包?

如何编译和执行“aether-demo”?

【问题讨论】:

标签: maven aether


【解决方案1】:

固定: https://bugs.eclipse.org/bugs/show_bug.cgi?id=406212

本杰明·本特曼 2013-04-22 07:45:03 EDT

成功运行示例所需的依赖项刚刚发布,并且 消耗它们的相应 CQ 仍在处理中。直到我们 已经批准这些,你可能想看看 https://github.com/bentmann/aether-demo 提供预览 更新。

【讨论】:

    猜你喜欢
    • 2020-05-20
    • 1970-01-01
    • 2016-02-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-22
    相关资源
    最近更新 更多