What does your parent tag say in POM3?
Isn't that how current version is going to get resolved?
Maven will use what you tell it to find places where variables get
resolved to values.
On 15/01/2015 2:02 AM, yeelong wrote:
Hi All,
Could you please help to advise the following?
I have the following in my parent POM 1:
<profiles>
<profile>
<id>development</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>some-snapshots</id>
<name>Some snapshots</name>
<url>http://someip:someport/content/repositories/snapshots/</url>
</repository>
</repositories>
</profile>
<properties>
<currentVersion>version_A</currentVersion>
</properties>
</profiles>
I have the following in my children POM 2:
<parent>
<groupId>parent_group_id</groupId>
<artifactId>parent_artifact_id</artifactId>
<version>${currentVersion}</version>
</parent>
I have the following in my children POM 3:
<dependency>
<groupId>pom2_group_id</groupId>
<artifactId>pom2_artifact_id</artifactId>
<version>pom2_version</version>
</dependency>
POM1 and POM2 is both working fine and the ${currentVersion} is
recognized. But in POM 3, it complains that ${currentVersion} can not be
resolved.
Thanks and Regards,
Yee Long
--
View this message in context:
http://maven.40175.n5.nabble.com/Enquiry-about-POM-parent-tag-version-tp5823587.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]