You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Artem Ervits (JIRA)" <ji...@apache.org> on 2018/05/24 19:15:00 UTC

[jira] [Comment Edited] (OOZIE-2105) Make version of submodules configurable with parent version

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

Artem Ervits edited comment on OOZIE-2105 at 5/24/18 7:14 PM:
--------------------------------------------------------------

[~andras.piros] once I change the version to expression, we get warnings
{code:java}
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.oozie:oozie-client:jar:5.1.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ org.apache.oozie:oozie-client:${project.parent.version}, /Users/aervits/NetBeansProjects/OOZIE/oozie/client/pom.xml, line 29, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.oozie:oozie-core:jar:5.1.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ org.apache.oozie:oozie-core:${parent.version}, /Users/aervits/NetBeansProjects/OOZIE/oozie/core/pom.xml, line 29, column 14
[WARNING] The expression ${parent.version} is deprecated. Please use ${project.parent.version} instead. @ org.apache.oozie:oozie-core:${parent.version}, /Users/aervits/NetBeansProjects/OOZIE/oozie/core/pom.xml{code}
I'm submitting a new patch with version removed, it will inherit version from parent. Btw, ${project.parent.version} expression also throws a warning.


was (Author: dbist13):
[~andras.piros] once I change the version to expression, we get warnings
{code:java}
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.oozie:oozie-client:jar:5.1.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ org.apache.oozie:oozie-client:${project.parent.version}, /Users/aervits/NetBeansProjects/OOZIE/oozie/client/pom.xml, line 29, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.oozie:oozie-core:jar:5.1.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ org.apache.oozie:oozie-core:${parent.version}, /Users/aervits/NetBeansProjects/OOZIE/oozie/core/pom.xml, line 29, column 14
[WARNING] The expression ${parent.version} is deprecated. Please use ${project.parent.version} instead. @ org.apache.oozie:oozie-core:${parent.version}, /Users/aervits/NetBeansProjects/OOZIE/oozie/core/pom.xml{code}
I'm submitting a new patch with version removed, it will inherit version from parent.

> Make version of submodules configurable with parent version 
> ------------------------------------------------------------
>
>                 Key: OOZIE-2105
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2105
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Mohammad Kamrul Islam
>            Assignee: Artem Ervits
>            Priority: Major
>             Fix For: 5.1.0
>
>         Attachments: OOZIE-2105-02.patch, OOZIE-2105-03.patch, OOZIE-6252.1.patch
>
>
> Currently the versions of the Oozie sub-modules are hard-coded with parent version. If someone changes the parent version, all sub-modules versions will need to be explicitly updated. For example, in hadooplibs/hadoop-1/pom.xml we use
> <groupId>org.apache.oozie</groupId>
>      <artifactId>oozie-hadoop</artifactId>
>      <version>1.1.1.oozie-4.1.0</version>
>  ...
> If you want to modify the Oozie version to 4.1.1 (say), you need to go to all pom files and manually change replace 4.1.0 to 4.1.1.
> This JIRA is to use "parent.version" instead of hard-coding. For example, use this :
> <version>1.1.1.oozie-${parent.version}</version>
>  
> This will allow to change only the parent version in root pom.xml.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)