slachiewicz opened a new issue, #452: URL: https://github.com/apache/maven-shared-utils/issues/452
Maven 3.10.x and 4.x no longer depend on maven-shared-utils, and Maven 3.9.x uses only its `logging` package (apache/maven#13892 keeps that working without JAnsi). The library stays as the compatibility layer for Maven 3 plugins, so what remains is to stop using it where a replacement exists, and to mark the rest. Usage across `apache/maven-*`, `mojohaus/*` and `codehaus-plexus/*` (GitHub code search, default branches, 2026-11-08): | Part | Repos | Replacement | |---|---|---| | `logging` | 14: compiler, dependency, help, invoker-plugin, jmod, release, reporting-impl, scm-publish, site, surefire, wrapper, artifact-plugin, buildplan | `org.apache.maven.message.MessageBuilderFactory` (3.10) / `org.apache.maven.api.services.MessageBuilderFactory` (4); not before the Maven floor moves to 3.10 | | `StringUtils` | 9: compiler, invoker, jarsigner, jarsigner-plugin, jmod, reporting-impl, surefire, war | plexus-utils `StringUtils`, commons-lang3 or the JDK | | `cli` | 6: maven-invoker, maven-jarsigner, jarsigner/jlink/jmod plugins | none; `Commandline` and `javatool` have no equivalent elsewhere | | `io.FileUtils` | 6: ear, jarsigner-plugin, javadoc, jmod, reporting-impl, surefire | commons-io or `java.nio.file.Files` | | `Os` | 3: invoker, jmod | plexus-utils `Os` | | `io.DirectoryScanner` | 3: javadoc, surefire | plexus-utils `DirectoryScanner` | | `xml` | 2: surefire | plexus-xml | | `PathTool` | 1: site | plexus-utils `PathTool` | | `io.IOUtil` | 1: versions | commons-io | | `introspection`, `PropertyUtils`, `ReaderFactory` | 0 | plexus-utils, JDK | Plan: 1. Deprecate the parts nothing uses: `introspection`, `PropertyUtils`, `ReaderFactory` (annotation; the Javadoc already pointed elsewhere). 2. Remove the dependency from the plugins that use only replaceable parts: maven-ear-plugin, maven-javadoc-plugin, maven-war-plugin, versions-maven-plugin. 3. Reduce the others to `cli` and `logging`: maven-invoker, maven-jarsigner, maven-jarsigner-plugin, maven-jmod-plugin, maven-jlink-plugin, maven-compiler-plugin, maven-reporting-impl, maven-site-plugin. 4. `logging` migration waits for the 3.10 floor; `cli` stays until there is a replacement. maven-surefire is listed for completeness only. Each PR links here. -- 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]
