Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] Questions about Aether demo code

Lothar Werzinger wrote:

ManualRepositorySystemFactory uses a
class org.apache.maven.repository.internal.MavenRepositorySystemUtils that
is not installed/available when installing Aether from the p2 repository.

If this class is required to run Aether, then why is is it not being
installed?

As the package name suggess, this class belongs to the Apache Maven project and the Aether p2 repo only contains the bundles produced by Eclipse Aether, not by 3rd parties.

If it is not required, is there a code sample that shows "pure" Aether use?

The examples in aether-demo.git are all there is and all of them rely on the maven-aether-provider to access Maven-style repositories, i.e. repos using *.pom and maven-metadata.xml to describe contents.

I am trying to use Aether from inside a 3rd party Eclipse based tool via
Eclipsescript http://eclipsescript.org/ and I can only access classes that
I can install via p2 into the (Helios based) tool.

In this case, you need to bundlelize the maven-aether-provider (and its dependencies) yourself or write a request to the Apache Maven project to produce a p2 update site for their artifacts. For the former, [0] might provide an inspiration.


Benjamin


[0] http://git.eclipse.org/c/m2e/m2e-core.git/tree/m2e-maven-runtime/org.eclipse.m2e.maven.runtime


Back to the top