[
https://issues.apache.org/jira/browse/MNG-7432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tamás Cservenák updated MNG-7432:
---------------------------------
Description:
As Resolver session contains non-MavenWorkspaceReader, the reactor models
(already resolved w/ profiles applied) are re-built when using Resolver within
Mojo, instead to get them via ReactorReader as expected. The rebuilt models
will lack explicit (-P on CLI) profiles applied, as resolver itself is not
maven aware, hence there is no way to "tell" resolver to apply them. Building
reactor models w/ profiles applied is NOT done using resolver, but by Maven
when loading up reactor, as profiles are NOT applied for drownstream transitive
dependencies (see discussion on MNG-1388 why).
---
The README of the following reproducer says it all:
https://github.com/aloubyansky/playground/tree/maven-3.8.5-profile-activation
Initially discussed here:
https://github.com/quarkusio/quarkus/pull/24285#issuecomment-1067368625
was:
As Resolver session contains non-MavenWorkspaceReader, the reactor models
(already resolved w/ profiles applied) are re-built when using Resolver within
Mojo, instead to get them via ReactorReader as expected. The rebuilt models
will lack explicit (-P on CLI) profiles applied, as resolver itself is not
maven aware, hence there is no way to "tell" resolver to apply them. Building
reactor models w/ profiles applied is NOT done using resolver, but by Maven
when loading up reactor.
---
The README of the following reproducer says it all:
https://github.com/aloubyansky/playground/tree/maven-3.8.5-profile-activation
Initially discussed here:
https://github.com/quarkusio/quarkus/pull/24285#issuecomment-1067368625
> [REGRESSION] Resolver session contains non-MavenWorkspaceReader
> ---------------------------------------------------------------
>
> Key: MNG-7432
> URL: https://issues.apache.org/jira/browse/MNG-7432
> Project: Maven
> Issue Type: Bug
> Affects Versions: 3.8.5
> Reporter: Falko Modler
> Assignee: Tamás Cservenák
> Priority: Critical
> Fix For: 3.8.6
>
>
> As Resolver session contains non-MavenWorkspaceReader, the reactor models
> (already resolved w/ profiles applied) are re-built when using Resolver
> within Mojo, instead to get them via ReactorReader as expected. The rebuilt
> models will lack explicit (-P on CLI) profiles applied, as resolver itself is
> not maven aware, hence there is no way to "tell" resolver to apply them.
> Building reactor models w/ profiles applied is NOT done using resolver, but
> by Maven when loading up reactor, as profiles are NOT applied for drownstream
> transitive dependencies (see discussion on MNG-1388 why).
> ---
> The README of the following reproducer says it all:
> https://github.com/aloubyansky/playground/tree/maven-3.8.5-profile-activation
> Initially discussed here:
> https://github.com/quarkusio/quarkus/pull/24285#issuecomment-1067368625
--
This message was sent by Atlassian Jira
(v8.20.1#820001)