Byron Nevins wrote:
> I've never got a straight answer to this -- or maybe I did and I've
> forgotten.
This is a bug.
It should be either ${project.version} or ${project.parent.version}
depending on the pom location and it's parent (in the inheritance chain.)
Everything else should be gone / need to be cleaned. (Please don't get
confused with versions in dependency section).
-hg
>
> I see all of these things that all eventually become "10.0-SNAPSHOT"
> in pom files:
>
> ${glassfish.version}
> ${project.version}
> ${parent.version}
> "10.0-SNAPSHOT"
>
> It seems that they are almost randomly selected.
> E.g. in one Pom file I observed that the project had
> <version>10.0-SNAPSHOT</version>
>
> but later in the pom ${glassfish.version} was used as a version string.
>
> *** What's the rule for the version to use -- for us regular mortals
> that are not doing any fancy maven footwork?
>