[ https://issues.apache.org/jira/browse/MNG-7595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17796086#comment-17796086 ]
ASF GitHub Bot commented on MNG-7595: ------------------------------------- laeubi commented on PR #1339: URL: https://github.com/apache/maven/pull/1339#issuecomment-1853488494 @cstamas sound quite handy, I wonder if an extra file is required here (its often a bit hard to really reference "right" root as there is no official "the location of the `.mvn` folder") alos it adds maybe more stuff to the repo and hopefully user relocations should be rarely used! So I would like to suggest to support (in addition to the file) support a syntax like this: ``` -Dmaven.relocation.banfoo=org.foo:*:*> -Dmaven.relocation.org=org.here:*:*>org.there:*:* -Dmaven.relocation.javax=javax.inject:javax.inject:1>jakarta.inject:jakarta.inject:1.0.5 ``` so basically everything starting with `-Dmaven.relocation.` followed by any string will be merged with the content of a possible file given. > [REGRESSION] $pom.-expressions in remote pom cause warnings > ----------------------------------------------------------- > > Key: MNG-7595 > URL: https://issues.apache.org/jira/browse/MNG-7595 > Project: Maven > Issue Type: Bug > Affects Versions: 4.0.0-alpha-2 > Reporter: Robert Scholte > Priority: Major > > When depending on > [wagon-http-1.0-beta-6|https://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-http/1.0-beta-6/wagon-http-1.0-beta-6.pom] > you'll get a warning like: > {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 > C:\Users\rober\.m2\repository\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} > Even though this is an old artifact, IMO we should not have such a warning > for remote poms, as they cannot be changed. So the question is: do we need to > reconsider the decision to only allow $project.-expressions for the build-pom? -- This message was sent by Atlassian Jira (v8.20.10#820010)