Use ${version} instead of ${pom.version}
git-svn-id: https://svn.apache.org/repos/asf/geronimo/javamail/trunk@469684 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/geronimo-javamail_1.3.1_mail/pom.xml b/geronimo-javamail_1.3.1_mail/pom.xml
index 7227561..65d409d 100644
--- a/geronimo-javamail_1.3.1_mail/pom.xml
+++ b/geronimo-javamail_1.3.1_mail/pom.xml
@@ -40,7 +40,7 @@
<dependency>
<groupId>org.apache.geronimo.javamail</groupId>
<artifactId>geronimo-javamail_1.3.1_provider</artifactId>
- <version>${pom.version}</version>
+ <version>${version}</version>
</dependency>
<dependency>
diff --git a/pom.xml b/pom.xml
index d8155d4..2db34c0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -46,7 +46,19 @@
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/geronimo/javamail/trunk/</developerConnection>
<url>http://svn.apache.org/viewvc/geronimo/javamail/trunk/</url>
</scm>
-
+
+ <properties>
+ <!--
+ NOTE: Project version, to be used instead of ${pom.version} since that
+ value magically changes when using SNAPSHOT versions.
+
+ This value *must* be kept in sync with the value of the <version>
+ element, and it will need to be changed manually before a release,
+ as the maven-release-plugin will not update this value.
+ -->
+ <version>1.0-SNAPSHOT</version>
+ </properties>
+
<dependencyManagement>
<dependencies>