Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to ignore broken symlinks in directories #700

Open
DimitriosSG opened this issue Jun 21, 2024 · 1 comment
Open

Add option to ignore broken symlinks in directories #700

DimitriosSG opened this issue Jun 21, 2024 · 1 comment

Comments

@DimitriosSG
Copy link

DimitriosSG commented Jun 21, 2024

When using the "directory" src type, the plugin fails with the following error when it encounters a broken symlink:
Caused by: java.io.FileNotFoundException: <filepath> (No such file or directory)
Most other maven plugins (for example the rpm-maven-plugin and maven-assembly-plugin) ignore any broken symlinks and process the rest of the directory.

When building large projects with lots of dependencies, there is a change one of them has a broken symlink somewhere, so plugins should be able to deal with it (by ignoring the broken symlink), or at least have an option to do that.

I can workaround the issue by first packaging the stuff I want into a tgz (using maven-assembly-plugin) and then using that as the src for jdeb, but jdeb should exhibit a behavior that's consistent with other maven plugins.

I've also attached my plugin configuration (project-specific and company-specific identifiers removed)
jdeb.txt

@tcurdt
Copy link
Owner

tcurdt commented Jun 25, 2024

Sounds like a useful addition. Just needs someone to implement it. Does not sound too hard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants