maven/its/core-it-support
Tamas Cservenak 57c1066862 [MNG-7706] Fix for ITs WARNING detection (#245)
The MNG-7706 deprecates ancient ArtifactRepository type use to get access to local repository, and issues warning as for any other deprecated Mojo parameters.

But alas, in ITs the MNG-5576 completely unrelated IT there is an assertion to have WARNING-free log. This IT uses the IT-plugins/IT-plugin-expression EvalMojo, that in turn uses the deprecated `${localRepository}` parameter (but does not use it). Result is, Maven 3.9.1 emits a WARNING about use of deprecated parameter and the IT fails.

Further inspection shows, that while EvalMojo injects ArtifactRepository for local repository, there is only one IT that actually uses it, the MNG-4305, but even that one is interested in basedir of the local repository only. So to say, the use of deprecated ArtifactRepository type is not needed at all.

Fix:
* change EvalMojo to not expose in context the localRepository (w/ type ArtifactRepository), but a new expression `localRepositoryBasedir` only, that is injected in non-deprecated way (in real life repoSysSession would be injected, but in IT we keep all super-safe and use Object types).
* adjusted MNG-4305 to use new epxression instead to use object reflection in template to get basedir from ArtifactRepository
* This makes the originally failing MNG-5576 pass, as warning due EvalMojo is gone.

See
https://issues.apache.org/jira/browse/MNG-7706
https://github.com/apache/maven/pull/1009
2023-02-23 13:52:03 +01:00
..
core-it-component Trim trailing whitespace 2020-12-24 00:31:14 +01:00
core-it-extension Lock plugin versions in extension lifecycle to prevent it'll pick up the LATEST, which might behave differently 2020-06-19 23:12:36 +02:00
core-it-javaagent Modernize IT plugins to use annotations (#184) 2023-01-11 13:35:56 +01:00
core-it-plugins [MNG-7706] Fix for ITs WARNING detection (#245) 2023-02-23 13:52:03 +01:00
core-it-support-artifacts Modernize IT plugins to use annotations (#184) 2023-01-11 13:35:56 +01:00
core-it-toolchain Modernize IT plugins to use annotations (#184) 2023-01-11 13:35:56 +01:00
core-it-wagon [MNG-5728] Switch the default checksum policy from "warn" to "fail" 2020-11-30 20:21:11 +01:00
maven-it-helper [MNG-7661] Replace deprecated 'verifier.addCliOption()' 2023-01-13 17:16:59 +01:00
maven-it-plugin-bootstrap [MNG-7667] Fix DownloadMojo to properly resolve (#236) 2023-01-16 14:13:55 +01:00
maven-it-sample [MNG-7661] Replace deprecated 'verifier.executeGoal()' 2023-01-09 17:55:26 +01:00
maven-it-sample-archetype [MNG-7661] Replace deprecated 'verifier.executeGoal()' 2023-01-09 17:55:26 +01:00
src/site added name for site.xml to improve site breadcrumbs 2012-01-02 23:31:57 +00:00
pom.xml Upgrade to JDK8, use a plugin to download all dependencies to bypass conflict resolution (#178) 2022-07-01 20:54:18 +02:00