You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/12/17 13:29:00 UTC

[jira] [Comment Edited] (MNG-7244) Change from deprecated WARNING to FAIL the build for usage of pom.X placeholders

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

Michael Osipov edited comment on MNG-7244 at 12/17/21, 1:28 PM:
----------------------------------------------------------------

After some debugging and testing, I was wondering what the desired behaviour is if we remove the support for both the {{pom.}} prefixed expressions and the prefixless expressions.

Do we want to give an explicit error message explaining to use {{project.X}} instead, or do we want the build to fail (or succeed) with possible unresolved expressions? This would be the same behaviour as if it was an expression we couldn't resolve in the first place.


was (Author: giovds):
After some debugging and testing, I was wondering what the desired behaviour is if we remove the support for both the {{.pom}} prefixed expressions and the prefixless expressions.

Do we want to give an explicit error message explaining to use {{project.X}} instead, or do we want the build to fail (or succeed) with possible unresolved expressions? This would be the same behaviour as if it was an expression we couldn't resolve in the first place.

> Change from deprecated WARNING to FAIL the build for usage of pom.X placeholders
> --------------------------------------------------------------------------------
>
>                 Key: MNG-7244
>                 URL: https://issues.apache.org/jira/browse/MNG-7244
>             Project: Maven
>          Issue Type: Improvement
>    Affects Versions: 4.0.0-alpha-1
>            Reporter: Karl Heinz Marbaise
>            Assignee: Maarten Mulders
>            Priority: Minor
>             Fix For: 4.0.x-candidate
>
>
> Currently we produce a {{WARNING}} in case of using {{pom.version}} or alike.
> I would suggest to change {{WARNING}} into a failing build in such use cases.
> {code}
> [WARNING] 
> [WARNING] Some problems were encountered while building the effective model for 'com.soebes.examples.j2ee:appasm:pom:1.0-SNAPSHOT'
> [WARNING] The expression ${pom.version} is deprecated. Please use ${project.version} instead. 
> {code}
> WDYT?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)