[ http://jira.codehaus.org/browse/MARTIFACT-35?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason van Zyl closed MARTIFACT-35. ---------------------------------- Resolution: Won't Fix We will gravitate toward a single standard. We don't need to support N variants. > Allow the ability to "plugin" or "inject" different versioning implementations > ------------------------------------------------------------------------------ > > Key: MARTIFACT-35 > URL: http://jira.codehaus.org/browse/MARTIFACT-35 > Project: Maven Artifact > Issue Type: Improvement > Affects Versions: 3.0 > Reporter: Jason Chaffee > > Currently, maven's versioning for snapshot builds is > ${timestamp}-${build.number}. However, it is often the case that companies > have their own versioning requirements or conventions and there are different > models for versioning such as OSGI, etc. For example, eclipse plugin > versioning proposal has the following: > the major segment indicates breakage in the API > the minor segment indicates "externally visible" changes > the service segment indicates bug fixes and the change of development stream > the qualifier segment indicates a particular build > This may result their snapshot builds take the the form of 1.2.1.v20050506 or > 1.2.1.34 depending on they wanted to represent the qualifier segment. They > could use the timestamp in the form "v20050506" or they could use a build > number "34". > Also, many times companies would like to utilize the build number in the > final release version. For example, 1.2.1-SNAPSHOT is on build 34 when a > release is done. Instead of making the final artifact 1.2.1, they may wish > to make the final artifact 1.2.1.34 or 1.2.1-34. > I think it would be ok for maven to only actually implement their default > strategy, but I think allowing a different implementation to be injected > based on the user's needs would be extremely valuable. > Another option is change the way <version> works in the pom. Instead of > entering a string, perhaps it could have child elements such as the following: > <version> > <major>1</major> > <minor>2</minor> > <service>1</service> > <qualifer>${project.build.number}</qualifer> > <separator>.</separator> > </version> > Note: qualifer may be the same notion as classifier. However, it would be > nice to be able to specify to use a "." or a "-" or a "_" separator based on > whatever format your company abides by. -- 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