aether-demo does not compile because of renaming of packages

我的梦境 提交于 2019-12-13 04:51:20

问题


I need to compile and execute the "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

but it fails with:

[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();

and other errors.

it tells that it does not find the class "org.sonatype.aether.impl.internal.DefaultServiceLocator"

however, ManualRepositorySystemFactory.java has this import instead:

  import org.apache.maven.repository.internal.DefaultServiceLocator;

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?

moreover, the "aether-core" project has that file yet in another package: org/eclipse/aether/impl/DefaultServiceLocator.java

(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"?


回答1:


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

Benjamin Bentmann 2013-04-22 07:45:03 EDT

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.



来源:https://stackoverflow.com/questions/16101685/aether-demo-does-not-compile-because-of-renaming-of-packages

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!