Maven always knows how to expand ${project.version} where it is allowed,
which does not include inside of <parent/> elements. It's a basic maven
feature.
It is possible that you don't have the right pom content for the release
plugin, and have hit the remote tagging mess. And/or you don't have an
up-to-date svn client on your machine.
Here's what CXF uses:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.0-beta-9</version>
<configuration>
<tagBase>https://svn.apache.org/repos/asf/cxf/tags
</tagBase>
<useReleaseProfile>false</useReleaseProfile>
<preparationGoals>clean install</preparationGoals>
<goals>deploy</goals>
<arguments>-Prelease,deploy</arguments>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
and here's what we use Internally at Basis:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.0-beta-9</version>
<configuration>
<tagBase>
http://svn.basistech.net/engineering/etrog/tags</tagBase>
<useReleaseProfile>true</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<remoteTagging>true</remoteTagging>
<preparationGoals>clean install</preparationGoals>
<goals>deploy</goals>
<autoVersionSubmodules>true</autoVersionSubmodules>
<allowTimestampedSnapshots>true</allowTimestampedSnapshots>
</configuration>
</plugin>
On Wed, Oct 21, 2009 at 9:10 PM, Sean Owen <[email protected]> wrote:
> OK may have spied a related problem -- the build process doesn't know
> how to expand the token ${project.version} -- where should this be
> defined? i don't see it. Is it somehow supposed to be on the command
> line?
>
> On Thu, Oct 22, 2009 at 2:04 AM, Sean Owen <[email protected]> wrote:
> > Here's a new one, wondering if anyone has seen this and sees the easy
> > answer, while I research it.
>