If you're using Nexus specifically, there was (and probably still is) a plugin 
called LVO which enabled you to formulate an URL to the Latest Version  Of an 
artifact. This might do the trick.

Justin

On Dec 2, 2010, at 5:27 PM, Tobias Wunden <[email protected]> wrote:

> Hi,
> 
> I am looking for a solution where I can reference -SNAPSHOT versions of my 
> bundles that are hosted in a maven repository from config.properties.
> 
> The problem that I am running into is that starting with Maven 3, SNAPSHOT 
> artifacts will always have their build number attached when deployed to maven 
> repositories such as Sonatype's Nexus (as in bundle-1.0-SNAPSHOT-982346.jar). 
> Since this number is generated each time I do a "mvn deploy", I can't 
> reference the snapshot in config.properties using 
> http://my.repo.org/snapshots/bundle-1.0-SNAPSHOT.jar (earlier versions of 
> Maven would simply overwrite the bundle-1.0-SNAPSHOT.jar with the new 
> version).
> 
> So I guess what I am looking for is a "maven" way to reference bundles from 
> config.properties, as in mvn://my.repo.org/snapshots/bundle-1.0-SNAPSHOT, 
> which would be using the repository's metadata to find the most recent 
> version of the SNAPSHOT, just like maven does.
> 
> Has anybody come accross this problem as well and found a solution to this 
> problem? Alternatively, I could of course  ask people to install maven, do a 
> build before starting felix and reference the bundle using a file:// url 
> locally.
> 
> Thanks for any hints,
> 
> Tobias
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to