Hi Arul,
The dependencies are not required in the child pom you can put
the dependency in parent pom itself like properties, I used in my
application as follows and its working fine.
<project>
.....
<properties>
....
<log4j.version>1.2.14</log4j.version>
....
</properties>
....
<dependencies>
.....
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
</dependency>
.....
<dependencies>
.....
</project>
Then I executed as follows the pom as well as I tried with child also
its working fine...
mvn clean install -Dlog4j.version=1.2.12
....
Downloading:
http://repo1.maven.org/maven2/log4j/log4j/1.2.12/log4j-1.2.12.jar
....
Thanks & Regards,
Ramesh Kumar G
Sonata Software Limited
Mobile: +91-9902968494
www.sonata-software.com
PPlease don't print this email unless you really need to. This will
preserve trees on our planet
-----Original Message-----
From: Arul Anand S P [mailto:[email protected]]
Sent: Thursday, September 03, 2009 1:56 AM
To: [email protected]
Subject: Help regarding Overriding the property value in child pom.xml
hi all,
I am having a property named test.version in parent pom.xml
<properties>
<test.version>8</test.version>
</properties>
and I have a the below entry in child pom.xml
<dependencies>
<dependency>
<groupId>com.test.data</groupId>
<artifactId>UtilLibrary</artifactId>
<version>${test.version}</version>
</dependency>
</dependencies>
While executing the release:prepare from the command prompt I am
over-riding
the value of the property test.version to 5
But the child pom.xml still takes the value 8 instead of 5 and is trying
to
download the file UtilLibrary-8.jar instead of UtilLibrary-5.jar
Please help in resolving this
--
Regards,
Arul
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]