Help regarding Overriding the property value in pom.xml

2009-09-08 Thread Praveenkumar Kasu
Hi All,

I am having a property named test.version in pom.xml

  properties
test.version8/test.version
  /properties

and I have a the below entry in the same pom.xml

dependencies
dependency
groupIdcom.test.data/groupId
artifactIdUtilLibrary/artifactId
version${test.version}/version
/dependency
  /dependencies

While executing the release:prepare from the command prompt I am trying to 
over-ride the value of the property test.version to 5
org.apache.maven.plugins:maven-release-plugin:2.0-beta-9:prepare 
-Dtest.version=5

But that is not overriding.
It's trying to download the file UtilLibrary-8.jar instead of UtilLibrary-5.jar

Please help in resolving this

Thanks  Regards,
Praveen.kasu


DISCLAIMER:
---

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

---


Re: Help regarding Overriding the property value in pom.xml

2009-09-08 Thread Brian Fox
This list is for development of maven only. AND i already answered
your question on the user list the last time you asked.

On Tue, Sep 8, 2009 at 7:54 AM, Praveenkumar Kasupraveenkum...@hcl.in wrote:
 Hi All,

 I am having a property named test.version in pom.xml

  properties
    test.version8/test.version
  /properties

 and I have a the below entry in the same pom.xml

    dependencies
        dependency
            groupIdcom.test.data/groupId
            artifactIdUtilLibrary/artifactId
            version${test.version}/version
        /dependency
  /dependencies

 While executing the release:prepare from the command prompt I am trying to 
 over-ride the value of the property test.version to 5
 org.apache.maven.plugins:maven-release-plugin:2.0-beta-9:prepare 
 -Dtest.version=5

 But that is not overriding.
 It's trying to download the file UtilLibrary-8.jar instead of 
 UtilLibrary-5.jar

 Please help in resolving this

 Thanks  Regards,
 Praveen.kasu


 DISCLAIMER:
 ---

 The contents of this e-mail and any attachment(s) are confidential and 
 intended for the named recipient(s) only.
 It shall not attach any liability on the originator or HCL or its affiliates. 
 Any views or opinions presented in
 this email are solely those of the author and may not necessarily reflect the 
 opinions of HCL or its affiliates.
 Any form of reproduction, dissemination, copying, disclosure, modification, 
 distribution and / or publication of
 this message without the prior written consent of the author of this e-mail 
 is strictly prohibited. If you have
 received this email in error please delete it and notify the sender 
 immediately. Before opening any mail and
 attachments please check them for viruses and defect.

 ---


-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org