[
http://jira.codehaus.org/browse/MNG-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=191472#action_191472
]
Hans-Peter Störr commented on MNG-624:
--------------------------------------
The problem is not so much that updating the poms is difficult, but rather that
changing the poms has some quite annoying consequences. So I wish to strongly
support the plea to remove the unnecessary requirement to put the parent
version number into all poms.
This restriction can make quite some trouble with version control systems. At
least it did in our projects. The reason of the trouble is that you need to
check in a new version of the pom each time the version number changes - even
if absolutely nothing changes about the way to build the system. Over time you
have loads of versions checked in and it is hard to tell when there were actual
changes in the pom, or just a checkin because of a version number change. When
merging releases you have trouble, since there are loads of pom changes all
over the place but it is hard to tell where something actually changed. In our
particular setting this is even more annoying than this sounds, but this is a
long story.
How would you feel if a strange compiler required you to put the current
version number into each and every file? Maven actually does this - after all a
pom is a kind source code describing the way to build the system. 8-/
It is up to you if you want to do this for some reason, but it is not good to
force everyone to do it.
> automatic parent versioning
> ---------------------------
>
> Key: MNG-624
> URL: http://jira.codehaus.org/browse/MNG-624
> Project: Maven 2
> Issue Type: Improvement
> Components: Inheritance and Interpolation
> Reporter: Brett Porter
> Assignee: Ralph Goers
> Priority: Blocker
> Fix For: 2.x
>
> Attachments: MNG-624-maven-2.0.x-r507648.patch, MNG-624-tests.tar.gz
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> (this may be bumped to 2.1 or even made WON't FIX as it is contentious - see
> MNG-521)
> currently, you have to specify the parent version when extending which makes
> a project stand alone very easily, but has the drawback of being a
> maintainance problem when you start development on a new version. Tools can
> help, but it would be nice not to have to rely on them.
> One alternative is to allow the parent version to be omitted, and when it is
> it is assumed you want the latest. The parent is used from the reactor or the
> universal source directory. IT may also be read from a LATEST in the
> repository though this is contentious - it may be better to simply fail in
> that environment and require builds be in a known checkout structure for
> building individual projects.
> This also introduces the need for tool support to populate the version on
> release and deployment for reproducibility.
--
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