[ 
http://jira.codehaus.org/browse/MNG-4540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Bentmann closed MNG-4540.
----------------------------------

    Resolution: Cannot Reproduce
      Assignee: Benjamin Bentmann

The code only issues this warning when the expression is actually hit so I'm 
pretty sure this works. There is no demo project to verify your assertion.

More than likely this expression is introduced by some parent POM.

> False positives on ${version} usage
> -----------------------------------
>
>                 Key: MNG-4540
>                 URL: http://jira.codehaus.org/browse/MNG-4540
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Design, Patterns & Best Practices
>    Affects Versions: 3.0-alpha-5
>            Reporter: David J. M. Karlsen
>            Assignee: Benjamin Bentmann
>
> I get this warning with mvn 3 alpha5:
> [WARNING] The expression ${version} is deprecated. Please use 
> ${project.version} instead. @ 
> com.davidkarlsen.zipcodeservice:zipcodeservice-selenium-tests:1.0-SNAPSHOT, 
> /u/david/projects/davidkarlsen.com/zipcodeservice/zipcodeservice-selenium-tests/pom.xml
> but this is not the case, the pom's contain cxf.version, not version:
> :~/projects/davidkarlsen.com/zipcodeservice$ find . -name pom.xml -exec fgrep 
> -il '${version}' '{}' \;
> :~/projects/davidkarlsen.com/zipcodeservice$ find . -name pom.xml -exec fgrep 
> -il '${cxf.version}' '{}' \;
> ./zipcodeservice-core/pom.xml

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to