[
https://issues.apache.org/jira/browse/MNG-8477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17913444#comment-17913444
]
Tamas Cservenak edited comment on MNG-8477 at 1/15/25 9:08 PM:
---------------------------------------------------------------
The reproducer does not reproduce anymore (works with any parallelism), if
activation condition in profile is changed to:
{noformat}
<exists>${project.basedir}/src/io.properties</exists>
{noformat}
Also, just FTR: the reproducer _reproduce with parallelism 1 and 2, but not
with 3 and above.
was (Author: cstamas):
The reproducer does not reproduce anymore (works with any parallelism), if
activation condition in profile is changed to:
{noformat}
<exists>${project.basedir}/src/io.properties</exists>
{noformat}
> File-activated profile not activated when maven.modelBuilder.parallelism=1
> --------------------------------------------------------------------------
>
> Key: MNG-8477
> URL: https://issues.apache.org/jira/browse/MNG-8477
> Project: Maven
> Issue Type: Bug
> Affects Versions: 4.0.0-rc-2
> Reporter: Dmitry Kichinsky
> Priority: Major
> Fix For: 4.0.0-rc-3
>
> Attachments: project.zip
>
>
> *Reproducer project (attached)*
> In a multi-module project with a parent POM ({{{}project{}}}) and two child
> modules ({{{}m1{}}} and {{{}m2{}}}), the parent POM defines a profile named
> "xxx" that is activated by the presence of a file
> ({{{}src/io.properties{}}}). The file triggering the profile
> ({{{}io.properties{}}}) is placed under {{{}m2/src/{}}}, satisfying the
> activation condition in {{{}m2{}}}.
> *Steps to reproduce*
> In Maven 4.0.0-rc-2, running {{mvn help:active-profiles}} correctly
> identifies the "xxx" profile as active.
> {code:java}
> Active Profiles for Project 'test:m2:jar:1':
> The following profiles are active:
> - xxx (source: test:m2:jar:1){code}
> However, when running {{{}mvn help:active-profiles
> -Dmaven.modelBuilder.parallelism=1{}}}, the "xxx" profile fails to activate.
> {code:java}
> Active Profiles for Project 'test:m2:jar:1':
> The following profiles are active: {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)