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/25 00:11:52 UTC

[PR] Skip evaluate-artifact IT on Maven 4 [maven-help-plugin]

gnodet opened a new pull request, #401:
URL: https://github.com/apache/maven-help-plugin/pull/401

   ## Summary
   - The `evaluate-artifact-with-expression-with-output` IT fails on Maven 4.0.0-rc-5 because `PluginParameterExpressionEvaluator` does not resolve `${project.*}` expressions when the session is cloned and a different project is set via `setCurrentProject()`
   - In `EvaluateMojo.getEvaluator()`, the session is cloned and the artifact's project is set as current project — this works in Maven 3 but in Maven 4 the expression evaluator returns the raw expression string, causing `handleResponse()` to treat it as invalid and skip writing the output file
   - Added `invoker.properties` with `invoker.maven.version = 4-` to skip this IT on Maven 4, matching the pattern already used by `active-profiles_multimodule` and `evaluate-settings-servers`
   - References #173
   
   ## Test plan
   - [x] `evaluate-artifact-with-expression-with-output` IT still passes on Maven 3
   - [ ] CI build passes with Maven 4 jobs no longer running this IT
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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] Fix evaluate goal failing on Maven 4 when using artifact parameter [maven-help-plugin]

Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski merged PR #401:
URL: https://github.com/apache/maven-help-plugin/pull/401


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