-
Notifications
You must be signed in to change notification settings - Fork 29
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
[BUG] Web.xml filters not kept as dependencies #81
Comments
Adding this feature to depclean would be nice. In general, it would be great to parse any XML files for patterns that look like an import statement. We still have some legacy apps which use XML config files. But I assume other frameworks would work the same. |
@cesarsotovalero since there can be many cases where we need to parse XML files (or even other text file formats), what do you think about adding a configuration to the plugin to provide the list of extra files to parse ? I think this should be better than trying to read everything we find, either by brute force or hard-coded patterns. For instance, I can think of Spring beans declared in XML files that do not need to be named xxx-beans.xml, which would be hard to locate otherwise. |
Hi @afillatre, Can you point me to some open source Spring project that relies on this form of dependency usage for so that I can use it for testing purposes? |
I can too work on this if you need. You just tell me :) |
Describe the bug
If you have custom filters in your
web.xml
, they do not count as project dependencies, and their jar is removed i the debloatedpom.xml
To Reproduce
Steps to reproduce the behavior:
web.xml
, like this:Expected behavior
Web filters declared in the web.xml are added to the Dependency Usage Analysis
The text was updated successfully, but these errors were encountered: