You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/07/03 09:14:46 UTC

[PR] [#11449] Fix Mockito agent: use late binding @{} interpolation (backport to 4.0.x) [maven]

gnodet opened a new pull request, #12415:
URL: https://github.com/apache/maven/pull/12415

   Backport of #12369 to `maven-4.0.x`.
   
   The mockito profile used Maven property interpolation (`${...}`) which resolves at POM parse time — before the `dependency:properties` goal runs and sets the `org.mockito:mockito-core:jar` property. This caused the javaagent path to remain unresolved.
   
   Fix: use Surefire/Failsafe late-binding property interpolation (`@{...}`) which resolves the property at test execution time, after `dependency:properties` has already set it.
   
   Also:
   - Restore `@{jacocoArgLine}` placeholder
   - Extend the profile to cover `maven-failsafe-plugin` as well
   
   Cherry-picked from 6f4644329f (master).
   
   Fixes: https://github.com/apache/maven/issues/11449


-- 
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] [#11449] Fix Mockito agent: use late binding @{} interpolation (backport to 4.0.x) [maven]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet merged PR #12415:
URL: https://github.com/apache/maven/pull/12415


-- 
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