maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MNG-5576) Allow continuous delivery friendly versions
Date Mon, 29 Aug 2016 07:18:21 GMT

    [ https://issues.apache.org/jira/browse/MNG-5576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15445067#comment-15445067
] 

Vincent Massol commented on MNG-5576:
-------------------------------------

Hi. Why not support any property in <parent>/<version> elements in POM or if that's
not possible, why not support ${project.version}?

I'd like to be able to to write:

{code}
...
  <parent>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-activeinstalls</artifactId>
    <version>${project.version}</version>
  </parent>
...
{code}

And in the top level POM have:

{code}
...
  <version>1.0-SNAPSHOT</version>
...
{code}

Thanks

> Allow continuous delivery friendly versions
> -------------------------------------------
>
>                 Key: MNG-5576
>                 URL: https://issues.apache.org/jira/browse/MNG-5576
>             Project: Maven
>          Issue Type: Improvement
>    Affects Versions: 3.1.1
>            Reporter: Jason van Zyl
>             Fix For: 3.2.1
>
>
> Currently warnings will be emitted when there are expressions in versions, a few exceptions
should be deemed valid to make continuous delivery easier. The use case is to allow easy versioning
of an entire multi-module build that can take a version from an external source like SCM.
These are the types of exceptions that will be allowed:
> 1.0.0.$\{changelist}
> 1.0.0.$\{revision}
> 1.0.0.$\{sha1}
> When a whole build is versioned like this we can avoid churning the POMs in the SCM which
makes it a lot easier to see the actual changes in the project. Not a complete solution for
continuous delivery but is a step in the right direction and doesn't interfere with currently
behavior as it is currently allowed, just warned against.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message