You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Larry West (JIRA)" <ji...@codehaus.org> on 2011/09/09 22:51:32 UTC

[jira] Created: (MNGSITE-141) Maven properties are not like Ant properties

Maven properties are not like Ant properties
--------------------------------------------

                 Key: MNGSITE-141
                 URL: https://jira.codehaus.org/browse/MNGSITE-141
             Project: Maven Project Web Site
          Issue Type: Bug
         Environment: http://maven.apache.org/settings.html#Properties
            Reporter: Larry West
            Priority: Minor


The text says "Maven properties are value placeholder, like properties in Ant."  This is incorrect.  Ant properties generally cannot be changed.   Maven documentation is oddly silent on this crucial point -- I cannot imagine how many hours have been wasted by this -- but in my tests, Maven 3 does change the value of properties.

It's a huge difference in functionality, and a surprise to anyone coming from Ant, and that line exacerbates the problem.

The fix: append this text: ", except that Maven properties are NOT immutable, which is to say attempts to change (user-defined) properties will succeed."

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira