Skip to content

Remove the maven-shared-utils dependency - #1439

Merged
slachiewicz merged 1 commit into
apache:masterfrom
slachiewicz:drop-shared-utils
Nov 8, 2026
Merged

slachiewicz merged 1 commit into
apache:masterfrom
slachiewicz:drop-shared-utils

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

JavadocUtil now uses DirectoryScanner and FileUtils from plexus-utils, which the plugin already declares, instead of the maven-shared-utils copies, and the maven-shared-utils dependency is gone. The replaced methods have the same signatures and, with two exceptions, the same semantics. The default excludes applied when copying doc-files differ: plexus-utils also excludes **/RCS, **/SCCS, **/vssver.scc and **/project.pj, and no longer excludes **/.cvsignore. And when a resources directory cannot be listed (File.listFiles() returns null), the shared-utils copyDirectoryStructure skipped it silently, while the plexus-utils one fails, today with a NullPointerException; codehaus-plexus/plexus-utils#349 makes that an IOException naming the directory.

Verified: mvn -B verify → 82 of 83 unit tests pass (9 skipped); JavadocReportTest.testJavadocResourcesWithExcludes fails on this machine on master too, before and after the change, so it is not caused here. The integration tests were not run.

Part of apache/maven-shared-utils#452.

JavadocUtil now uses DirectoryScanner and FileUtils from plexus-utils, which the plugin already declares.

Part of apache/maven-shared-utils#452
@slachiewicz slachiewicz added the dependencies Pull requests that update a dependency file label Nov 8, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 8, 2026 11:42
@slachiewicz
slachiewicz merged commit 75ea6d0 into apache:master Nov 8, 2026
19 checks passed
@github-actions github-actions Bot added this to the 3.12.1 milestone Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant