-
Notifications
You must be signed in to change notification settings - Fork 30
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] Mapstruct processor dependency is deleted #76
Comments
Hi @afillatre, thanks for reporting this issue. Can you please give more details about your proposal?
|
Yes. Given this plugin configuration
Depclean could consider |
Hi@afillatre, I understand your proposal. It is definitely not difficult to implement some rules that analyze the I'll implement the pom rule parser ASAP. In case you feel comfortable with the task, the debloated-pom is generated here: https://github.com/castor-software/depclean/blob/master/depclean-maven-plugin/src/main/java/se/kth/depclean/DepCleanMojo.java#L586-L658. |
Describe the bug
After depclean completes, and given mapstruct processor is used, the
mapstruct-processor
direct dependency is not longer present on the debloatedpom.xml
To Reproduce
Steps to reproduce the behavior:
Expected behavior
mapstruct-processor
dependency is conservedAdditional context
Mapstruct generates code during the
generated-sources
phase, but do not keepmapstruct-processor
imports in the generated classes. This may be why it is eventually removed from the debloated-pom.One could manually list this dependency into the
ignoreDependencies
configuration, but it may be better to consider annotation processor classes to be rightfulprovided
dependenciesThe text was updated successfully, but these errors were encountered: