Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] Downloading the latest Snapshot

Thanks for the quick reply.
 
After cleaning my temporary local repository the version-resolution works. I had to change my ArtifactRequest with a new DefaultArtifact since changing the version to the latest from the VersionRequest didnt work (there was still "[0,=)" after I called setVersion).
 
Thanks again for the detailed explanation. I probably just have to install my test-artifacts to the remote nexus manually.
 
regards
Marc
 
Gesendet: Mittwoch, 20. August 2014 um 14:55 Uhr
Von: "Benjamin Bentmann" <bentmann@xxxxxxxxxxxx>
An: aether-users@xxxxxxxxxxx
Betreff: 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
_______________________________________________
aether-users mailing list
aether-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/aether-users

Back to the top