Skip to content

Unpack sources jars with java.util.zip instead of plexus-archiver - #1225

Closed
slachiewicz wants to merge 1 commit into
masterfrom
agent/plugin-tools-unzip-sources
Closed

slachiewicz wants to merge 1 commit into
masterfrom
agent/plugin-tools-unzip-sources

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

JavaAnnotationsMojoDescriptorExtractor unpacked dependency *-sources.jar files through plexus-archiver's ArchiverManager, which the Maven 4 API line cannot inject. It now uses java.util.zip with a guard that rejects entries resolving outside the target directory; the layout and the extracted files are the same. plexus-archiver goes from maven-plugin-tools-annotations and from dependency management. The ArchiverManager was field-injected, so the extractor's constructor is unchanged.

Ported to maven-plugin-tools-3.x in #1226.

Part of apache/maven#13309.

Verified: mvn verify -Prun-its → annotations 39 tests (2 new: extraction and a ../ entry), plugin ITs 32 passed, report ITs 12 passed.

@slachiewicz
slachiewicz marked this pull request as ready for review October 1, 2026 10:28
@slachiewicz slachiewicz added the wontfix This will not be worked on label Oct 7, 2026
@slachiewicz slachiewicz closed this Oct 7, 2026
@slachiewicz
slachiewicz deleted the agent/plugin-tools-unzip-sources branch October 7, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant