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

Guillaume Nodet commented on MNG-7783:
--------------------------------------

This is caused by 
[https://github.com/apache/maven/commit/9f88494b6064ad45ea2e2e1e3478afc7af0bc065]

 

I've provided a PR to fix the problem, but the code is really fragile imho as 
using `toString()` to get an id with strong assomptions is a recipe for 
problems.

> Profile source point to file instead of to module
> -------------------------------------------------
>
>                 Key: MNG-7783
>                 URL: https://issues.apache.org/jira/browse/MNG-7783
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 4.0.0-alpha-4, 4.0.0-alpha-5
>            Reporter: Slawomir Jaranowski
>            Priority: Major
>
> Executing:
> {noformat}
> mvn help:active-profiles  -P run-its
> {noformat}
> With Maven 3.9.2 we have
> {noformat}
> The following profiles are active:
>  - props (source: external)
>  - run-its (source: external)
>  - run-its (source: 
> org.apache.maven.plugins:maven-clean-plugin:3.2.1-SNAPSHOT)
>  - run-its (source: org.apache.maven.plugins:maven-plugins:38)
>  - format-check (source: org.apache.maven:maven-parent:38) {noformat}
> But with 4.x
> {noformat}
> The following profiles are active:
>  - props (source: external)
>  - run-its (source: external)
>  - run-its (source: ..../maven-clean-plugin/pom.xml)
>  - run-its (source: 
> ..../.m2/repository-prv/org/apache/maven/plugins/maven-plugins/38/maven-plugins-38.pom)
>  - format-check (source: 
> ..../.m2/repository-prv/org/apache/maven/maven-parent/38/maven-parent-38.pom) 
> {noformat}



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

Reply via email to