[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aether-users] Downloading the latest Snapshot
|
Marc Schlegel wrote:
According to the examples
( http://git.eclipse.org/c/aether/aether-demo.git/tree/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/FindNewestVersion.java )
it is possible to get the latest version when using [0,) as version-coordinate.
I am following the example but when using this snippet I get a
ArtifactNotFoundException.
From which repository in your setup is said snapshot version supposed
to be coming? And in that repository, what does
groupId/artifactId/maven-metadata.xml look like?
When I use the actual version (1.3.0-SNAPSHOT) the VersionRange gets resolved.
Version range resolution requires certain metadata in the repository
(maven-metadata.xml in your case). That same metadata is not required
when already specifying a concrete version.
That one request works but not the other suggests the metadata in your
repositories is broken.
Just in case I missed somethinig, here is my code (using Guice for setup).
Thanks, much appreciated, concrete code helps greatly in understanding
issues.
I add my local maven-repository as a remote
This is a flawed setup, or let's say a setup with constraints that one
needs to be aware of.
The format of Maven2 local repository is not the same as a Maven2 remote
repository. They are similar for the most part (e.g. artifact locations)
but are incompatible when it comes to metadata files.
Benjamin