slachiewicz opened a new issue, #14232: URL: https://github.com/apache/maven/issues/14232
The integration tests of the Maven plugins pull real third-party artifacts from Maven Central that most of them never execute. Each CI matrix job starts the ITs with an empty `target/local-repo`, so those artifacts are requested again in every job, and that is where many of the HTTP 429 failures from Central come from. The same fixture POMs carried 61 of the 254 open Dependabot alerts in the `apache/maven-*` repositories, and Dependabot security updates against them break the ITs (for example apache/maven-jdeps-plugin#124 and apache/maven-javadoc-plugin#1461). A review of the 44 repositories with `src/it` (1,972 IT POMs) sorts the fixtures by how they use the artifact: - **Unused, or replaceable by the build's own version.** The dependency is never imported, or a literal version differs from one the build already resolves (`maven-core` 3.9.12 against `@mavenVersion@`, `commons-lang3` 3.18.0 against the build's 3.22.0). Fix: drop it, or filter the build's version in. - **Read only.** The verify script asserts a file name, a manifest `Class-Path`, a dependency tree or a log line, never the content. Fix: a stand-in artifact in the repository's IT repository, or a small, rarely released library without advisories. - **Executed.** The test runs or compiles against the artifact (javadoc automatic modules, compiler automodules, shade `jna`, site skins and Doxia). These stay; plugins the site ITs execute are cached through `extraArtifacts`, and a Dependabot entry for `/src/it/**` keeps security updates off them (trial: apache/maven-jdeps-plugin#125). The pull requests below remove 40 of the 61 fixture alerts. Measured Central downloads, fresh local repository: maven-assembly-plugin's changed ITs 475 → 53, maven-invoker-plugin's 8 changed ITs 191 → 46, maven-reporting-exec `forked-lifecycle` 248 → 22, maven-xinclude-extension 144 → 4. Two fixtures had checks that could never fail (maven-ear-plugin `packaging-includes` and `packaging-excludes`); those are fixed too. The invoker `aether.remoteRepositoryFilter.prefixes.basedir` property, which stops every IT from fetching Central's prefixes file again, is apache/maven-parent#652. Left for later: maven-compiler-plugin's `commons-io` and `commons-lang3` pins in `MCOMPILER-203-processorpath` and `jpms_compile-main-foo-test-foo`, maven-jlink-plugin `MJLINK-4` (needs a stand-in jar the plugin treats as a named module), and maven-assembly-plugin `depSet-enum-vs-wildcard`, which compares real jar contents. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
