On Fri, Feb 11, 2011 at 3:36 PM, Benjamin Bentmann
<[email protected]> wrote:
> Vidar Ramdal wrote:
>
>> I'm trying to understand how Maven updates the<latest>  element in
>> maven-metadata.xml - or more specifically, why it doesn't.
>
> Oh it does, when Maven itself needs it.

So then I guess my question is: When does Maven itself need it? Is
there any documentation around this?

> It's not a general purpose feature of the metadata.

Could you elaborate on this? Does it mean that <latest> is some kind
of internal Maven stuff that cannot be relied on?

>> (I am aware that many are discouraging the use of LATEST when
>> specifying dependency versions. The main reason I want to use it in
>> this case, is to reference it for use with maven-launchpad-plugin [1].
>> This would allow me to have automated builds with the bleeding-edge
>> versions of all artifacts. If there are other ways to accomplish this,
>> I'm happy to try different approaches.)
>
> A version range [0,) might be worth a try.

Unfortunately it doesn't work for me (could be an issue with
maven-launchpad-plugin).
I'm getting this when building:
java.lang.NullPointerException: version was null for
com.idium.kolibri:kolibri-cache-util
        at 
org.apache.maven.artifact.DefaultArtifact.getBaseVersion(DefaultArtifact.java:390)
        at 
org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout.pathOf(DefaultRepositoryLayout.java:47)
        at 
org.apache.maven.artifact.repository.DefaultArtifactRepository.pathOf(DefaultArtifactRepository.java:110)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:141)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
        at 
org.apache.sling.maven.projectsupport.AbstractBundleListMojo.getArtifact(AbstractBundleListMojo.java:196)

-- 
Vidar S. Ramdal <[email protected]> - http://www.idium.no
Sommerrogata 13-15, N-0255 Oslo, Norway
+ 47 22 00 84 00
Quando omni flunkus moritatus!

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

Reply via email to