You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Utkarsh-rwt (via GitHub)" <gi...@apache.org> on 2026/10/11 07:51:36 UTC

[PR] [3.10.x] Fix dependency POM property profile activation [maven]

Utkarsh-rwt opened a new pull request, #13402:
URL: https://github.com/apache/maven/pull/13402

   ## Summary
   
   Backport of the #13390 fix for Maven 3.10.x.
   
   Dependency POM-local properties must not activate property-based profiles in the same POM during external model building. Maven 3.10.x currently merges POM properties into the external profile activation system-property lookup, which causes unintended profile activation.
   
   ## Changes
   
   - Stop merging dependency POM-local properties into external system properties.
   - Preserve system-property, JDK, OS, and negated-property/default-on activation behavior.
   - Continue suppressing consumer user properties for dependency POM profile activation.
   - Update the 3.10.x compat regression test to assert that POM-local properties do not activate profiles.
   
   ## Validation
   
   - `mvn -pl maven-model-builder -Dtest=ResolvedDependencyProfileActivationTest -Dsurefire.failIfNoSpecifiedTests=false test`
   - Result: 10 tests passed, 0 failures, 0 errors.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [3.10.x] Fix dependency POM property profile activation [maven]

Posted by "Utkarsh-rwt (via GitHub)" <gi...@apache.org>.
Utkarsh-rwt commented on PR #13402:
URL: https://github.com/apache/maven/pull/13402#issuecomment-6111169924

   After reviewing #13084/#13112/#13114, I believe the #13390 change should not be retained as currently implemented.
   
   The external-model sandbox intentionally exposes dependency POM properties because they are part of the published model and are required for profiles such as RESTEasy’s defaults and BOM/dependency-management profiles. Removing that lookup or returning null from getModelProperty() would regress the behavior fixed by #13084.
   
   I will withdraw the Maven 3.10.x backport and revert the #13390 changes unless maintainers confirm that the documented behavior should supersede the established #13084 design.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [3.10.x] Fix dependency POM property profile activation [maven]

Posted by "Utkarsh-rwt (via GitHub)" <gi...@apache.org>.
Utkarsh-rwt commented on PR #13402:
URL: https://github.com/apache/maven/pull/13402#issuecomment-6112597776

   @gnodet 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [3.10.x] Fix dependency POM property profile activation [maven]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet commented on PR #13402:
URL: https://github.com/apache/maven/pull/13402#issuecomment-6135087669

   _Fully automatic review from Claude Code_
   
   @Utkarsh-rwt Your instinct in the comment above was right to question the approach, but the concern about regressing #13084 turns out to be unfounded. The actual RESTEasy profile that motivated #13084 uses a **negated-property** pattern (`!resteasy.dependencies.eap`), not a positive POM-property activation — so removing the POM-property merge does not break it.
   
   Replacement PRs with a complete fix, tests, and updated Javadoc have been submitted:
   
   - **#13450** — master
   - **#13451** — maven-3.10.x backport (replaces this PR)
   - **#13452** — maven-4.0.x backport


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [3.10.x] Fix dependency POM property profile activation [maven]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #13402:
URL: https://github.com/apache/maven/pull/13402#issuecomment-6106856150

   <!-- license-declaration-check -->
   ### ⚠️ License declaration missing
   
   The pull request description must contain at least one of the following lines with a **checked** box (`[x]`):
   
   ```markdown
   - [ ] I hereby declare this contribution to be licensed under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
   - [ ] I hereby declare that I have filed an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   ```
   
   This comment will be hidden automatically once the description is fixed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [3.10.x] Fix dependency POM property profile activation [maven]

Posted by "cstamas (via GitHub) via issues" <is...@maven.apache.org>.
cstamas closed pull request #13402: [3.10.x] Fix dependency POM property profile activation
URL: https://github.com/apache/maven/pull/13402


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org