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

Duplicated specialized pom files #13

Closed
cesarsotovalero opened this issue Oct 31, 2022 · 5 comments
Closed

Duplicated specialized pom files #13

cesarsotovalero opened this issue Oct 31, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@cesarsotovalero
Copy link
Contributor

Deptrim is generating multiple specialized poms with the same content.

The example project produces 32 pom files instead of 4.

It seems to be some bug in the XML dependency manipulation in the pom files so the combinatorial pom generation is not working properly.

@cesarsotovalero cesarsotovalero added the bug Something isn't working label Oct 31, 2022
@Deee92
Copy link
Contributor

Deee92 commented Nov 1, 2022

@cesarsotovalero, this project has a total of 5 dependencies (including transitive ones), hence the 32 generated pom files.

@cesarsotovalero
Copy link
Contributor Author

@Deee92 but 2/5 dependencies are actually used. Thus only 2 dependencies appear in the 32 specialized poms, which leads to duplications.

@Deee92
Copy link
Contributor

Deee92 commented Nov 1, 2022

I see. 3 of the 5 specialized jars do not have .class files, probably because all of them are unused. But why does depclean report the corresponding dependencies as non-bloated?

@cesarsotovalero
Copy link
Contributor Author

I ran DepClean from the CLI. The DepClean report is correct for this project. I think should be some issue with the pom analysis/manipulation in DepTrim.

image

@Deee92
Copy link
Contributor

Deee92 commented Nov 1, 2022

Okay, you're right! I'll look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants