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]

Reply via email to