On 9/18/06, Markus KARG <[EMAIL PROTECTED]> wrote:

Dan, thank you for your fast answer. In fact, I have some more detail
questions as I do not find a complete guide on the version scheme
somewhere (maybe you can give me a link to a *complete* guide?):

dan tran schrieb:

> name your version as 1.0-beta-5-SNAPSHOT, it means your are working
> toward 1.0-beta-5 release.

This is in contrast to the version scheme told in
"BetterBuildsWithMaven.pdf", so does this mean that the SNAPSHOT
mechanism only checks for the word SNAPSHOT "somewhere" in the version?
Actually qualifiers will lower the version number will build numbers
increase the version number. So is this still true when adding
-SNAPSHOT  AFTER  the build number as seen above?


The numbering scheme told in BBWM is recommendation only.  however, if you
have
-SNAPSHOT at the end, when you deploy it to your internal repo, who ever
depends on your snapshot artifact will pickup up the latest of your
snapshot automatically depending
your download policy.


> Once you are comfortable with your code base, you can the produce the
> real 1.0-beta5 using
> maven-release-plugin.

You wanted to say "1.0-beta-5" I think (missing last dash)?



sorry

Is there some short description on how to use the release-plugin to
accomplish that (just a code line and a sentence what it does)?



http://people.apache.org/~jtolentino/maven-release-plugin/ ( ongoing review
)

basically, the release plugin validate your build, remove the "SNAPSHOT" out
of your pom,
tag your SCM, build and deploy the build ( your official release of
1.-0-beta-5), and finally increament your version and put back the SNAPSHOT
string. ( ie 1.0-beta-6-SNAPSHOT )

-D

Thanks a lot!
Markus

>
> -D
>
>
>
>
> On 9/18/06, *Markus KARG* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
wrote:
>
>     We are new to Maven2 and are wondering how the naming schema is to
be
>     used correctly. In "BetterBuildsWithMaven.pdf " is told that our
>     schema
>     shall be "Major.Minor.Fix-Qualifier-Build", (e. g. 1.0.0-beta-1).
>     So we
>     like to have the qualifier set to "beta-5" now, since we are
producing
>     our fifth beta release. On the other hand, we like the SNAPSHOT
>     automatism (publishing using timestamp as qualifier, downloading
>     latest
>     JAR once a day). But how to tell Maven2 to do that together? I
>     mean, the
>     SNAPSHOT features are only working, if the word SNAPSHOT is used,
but
>     actually we are using "beta". So what is the correct way to say
>     "this is
>     a beta release but it shall be published with timestamp qualifier"
and
>     how to say "this project depends on a snapshot but that other
>     project is
>     named beta but not SNAPSHOT"?
>
>
>




Reply via email to