You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamas Cservenak (Jira)" <ji...@apache.org> on 2022/11/23 11:57:00 UTC

[jira] [Comment Edited] (MNG-7244) Remove deprecated WARNING for usage of pom.X placeholders

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

Tamas Cservenak edited comment on MNG-7244 at 11/23/22 11:56 AM:
-----------------------------------------------------------------

The Maven PR is wrong: the PR removes pom. prefix interpolation completely, but alas, this same interpolator is used to interpolate models for transitive dependencies.

Hence, it results that maven4 lost ability to resolve wagon-http 1.0-beta-6 that is used by some (older) plugins like surefire 2.22.2 and so on.

Current master (w/ the PR) produces output like this:
{noformat}
[WARNING] The POM for org.apache.maven.wagon:wagon-http:jar:1.0-beta-6 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for /home/cstamas/Worx/apache-maven/maven-mvnd/integration-tests/src/test/projects/module-and-plugin/local/org/apache/maven/wagon/wagon-http/1.0-beta-6/wagon-http-1.0-beta-6.pom
[ERROR] 'dependencies.dependency.groupId' for ${pom.groupId}:wagon-http-shared:jar with value '${pom.groupId}' does not match a valid coordinate id pattern. @ org.apache.maven.wagon:wagon-http:1.0-beta-6{noformat}
And it results in wagon-http being completely defunct, as HttpWagon super class is in wagon-http-shared but class is not on CP and boom.


was (Author: cstamas):
The Maven PR is wrong: the PR removes pom. prefix interpolation completely, but alas, this same interpolator is used to interpolate models for transitive dependencies.

Hence, it results that maven4 lost ability to resolve wagon-http 1.0-beta-6 that is used by some (older) plugins like surefire 2.22.2 and so on.

> Remove deprecated WARNING 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.0-alpha-2, 4.0.0
>
>
> Currently, we produce a {{WARNING}} in case of using {{pom.version}} or alike.
> We've been doing that for years so people have had enough time to update their projects. We can now remove the support and the accompanying warning, resorting to the default behaviour of not resolving the expression at all.
> {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}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)