You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Praveenkumar Kasu <Pr...@hcl.in> on 2009/09/08 13:54:28 UTC

Help regarding Overriding the property value in pom.xml

Hi All,

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

  <properties>
    <test.version>8</test.version>
  </properties>

and I have a the below entry in the same 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 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

Posted by Brian Fox <br...@infinity.nu>.
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 Kasu<Pr...@hcl.in> wrote:
> Hi All,
>
> I am having a property named "test.version" in pom.xml
>
>  <properties>
>    <test.version>8</test.version>
>  </properties>
>
> and I have a the below entry in the same 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 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-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org