You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Beermann,Matthew" <Ma...@cerner.com> on 2005/09/29 20:16:07 UTC

[m2] Question about maven-metadata.xml

So, I've been looking over the "maven-metadata.xml" files in the
"remote" repository I publish to (just on my hard drive for now).
There's a <release/> tag if I set the updateReleaseInfo flag on the
maven-deploy-plugin, which is all well and good. And there are assorted
<versions/>, in no particular order. My question is: if I were looking
through a remote repository, how would I tell which version is the
latest?

For whatever reason, my "deploy" goal is not adding the <latest/> tag
that I see in the official repositories, nor is it creating the
"version.txt" files I've seen discussed elsewhere. What
setting/plugin/whatever ought to be generating the <latest/> marker?

Matthew Beermann | Software Engineer | Cerner Corporation | 816.201.7026
| matthew.beermann@cerner.com | www.cerner.com



CONFIDENTIALITY NOTICE

This message and any included attachments
are from Cerner Corporation and are intended
only for the addressee. The information
contained in this message is confidential and
may constitute inside or non-public information
under international, federal, or state
securities laws. Unauthorized forwarding,
printing, copying, distribution, or use of such
information is strictly prohibited and may be
unlawful. If you are not the addressee, please
promptly delete this message and notify the
sender of the delivery error by e-mail or you
may call Cerner's corporate offices in Kansas
City, Missouri, U.S.A at (+1) (816)221-1024.
---------------------------------------- --

Re: [m2] Question about maven-metadata.xml

Posted by Brett Porter <br...@gmail.com>.
On 9/30/05, Beermann,Matthew <Ma...@cerner.com> wrote:
>
> My question is: if I were looking
> through a remote repository, how would I tell which version is the
> latest?

Maven defines an ordering for versions (see the
docs.codehaus.org/pages/MAVEN wiki space).

It falls back to string comparison if this type of version is not used
(though it is very flexible already). We intend to allow pluggable
ones later.

> For whatever reason, my "deploy" goal is not adding the <latest/> tag
> that I see in the official repositories, nor is it creating the
> "version.txt" files I've seen discussed elsewhere. What
> setting/plugin/whatever ought to be generating the <latest/> marker?

The latest marker is only set for plugins, and will be removed
eventually. It was a stopgap solution. Latest includes snapshots,
releases do not.

Support for the text files have now been removed in favour of the new metadata.

Is this causing any issues for you?

HTH,
Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org