由于重命名软件包,etherether-demo无法编译 [英] aether-demo does not compile because of renaming of packages
问题描述
我需要编译并执行"ether-demo".
I need to compile and execute the "aether-demo".
我没有找到"aether-demo"的发行版,因此我按如下方式使用快照:
I didn't find a release of the "aether-demo", so I am using the snapshot as follows:
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却具有以下导入:
however, ManualRepositorySystemFactory.java has this import instead:
import org.apache.maven.repository.internal.DefaultServiceLocator;
为什么会这样?
ManualRepositorySystemFactory.java不会从org.sonatype.aether.impl.internal
导入该类.为什么mvn clean install尝试从此软件包中导入它?
why is so?
ManualRepositorySystemFactory.java is not importing that class from org.sonatype.aether.impl.internal
. why mvn clean install tries to import it from this package?
此外,以太核心"项目还在另一个软件包中包含了该文件:org/eclipse/aether/impl/DefaultServiceLocator.java
moreover, the "aether-core" project has that file yet in another package: org/eclipse/aether/impl/DefaultServiceLocator.java
(根据git日志,它一直在这里)
(and according to the git log, it has always been here)
那么,这是怎么回事? 是否在某处重新映射了软件包?
so, what is happening? is there a re-mapping of packages somewhere?
如何编译和执行以太演示"?
how to compile and execute the "aether-demo"?
推荐答案
已修复: https://bugs.eclipse.org/bugs/show_bug.cgi?id=406212
Benjamin Bentmann 2013-04-22 07:45:03 EDT
Benjamin Bentmann 2013-04-22 07:45:03 EDT
已成功发布了成功运行示例所需的依赖项,并且 消耗它们的相应CQ仍在处理中.直到我们 获得这些批准,您可能需要看看 https://github.com/bentmann/aether-demo 提供了以下内容的预览 更新.
The required dependencies to successfully run the examples has just been released and the corresponding CQs to consume them are still being processed. Until we have approval for these, you might want to take a look at https://github.com/bentmann/aether-demo which provides a preview of the update.
这篇关于由于重命名软件包,etherether-demo无法编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!