Skip to content

Add followSymlinks to follow links when jarring sources - #328

Merged
slachiewicz merged 1 commit into
masterfrom
follow-symlinks-master
Aug 24, 2026
Merged

Add followSymlinks to follow links when jarring sources#328
slachiewicz merged 1 commit into
masterfrom
follow-symlinks-master

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Forward-ports #327 to master.

Same parameter, same default of false. Two conflicts came out of the port: addDirectory takes a Path on this line, and the archiver version lives in the ${plexusArchiverVersion} property rather than at the dependency — the property moves 4.12.0 → 4.14.0.

See #327 for the bug (plexus-archiver#160) and for the verification; the ITs there cover the same code.

I have not run this line's ITs locally — the plugin declares prerequisite Maven 4.0.0-rc-6, so they need a Maven 4 to run at all. Leaving that to CI.

This change was created with AI assistance.

@slachiewicz slachiewicz added enhancement New feature or request java Pull requests that update Java code labels Aug 23, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review August 23, 2026 13:08
A symlink under a source root was archived as a link, so the sources jar
carried an entry pointing outside itself and the linked file was absent
(plexus-archiver#160). The new parameter defaults to false, keeping that
behaviour for anyone relying on it.

Needs plexus-archiver 4.14.0 for FileSet.isFollowingSymLinks().
@slachiewicz
slachiewicz force-pushed the follow-symlinks-master branch from cf27ede to 22e5858 Compare August 24, 2026 19:36
@slachiewicz
slachiewicz merged commit 7ffd1cd into master Aug 24, 2026
11 checks passed
@slachiewicz
slachiewicz deleted the follow-symlinks-master branch August 24, 2026 20:00
@github-actions github-actions Bot added this to the 4.0.0 milestone Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant