Could com.egzosn:pay-java-web-support:2.14.4-fix drop off redundant dependencies? #92
Open
Celebrate-future wants to merge 1 commit intoegzosn:developfrom
Open
Could com.egzosn:pay-java-web-support:2.14.4-fix drop off redundant dependencies? #92Celebrate-future wants to merge 1 commit intoegzosn:developfrom
Celebrate-future wants to merge 1 commit intoegzosn:developfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi! I found the pom file of project com.egzosn:pay-java-web-support:2.14.4-fix introduced 11 dependencies. However, among them, 5 libraries (45%) are not used by your project. I list the redundant dependencies below (labelled as red ones in the figure):
Redundant dependencies
commons-logging:commons-logging:jar:1.2:compile
org.apache.httpcomponents:httpmime:jar:4.5.4:compile
org.apache.httpcomponents:httpclient:jar:4.5.4:compile
commons-codec:commons-codec:jar:1.10:compile
org.apache.httpcomponents:httpcore:jar:4.4.7:compile
Outdated dependencies
commons-codec:commons-codec:1.10 (3188 days without maintenance)
org.apache.httpcomponents:httpcore:4.4.7 (2149 days without maintenance)
Removing the redundant dependencies can reduce the size of project and prevent potential dependency conflict issues (i.e., multiple versions of the same library). More importantly, one of the redundant dependencies org.apache.httpcomponents:httpclient:jar:4.5.4:compile incorporates a medium-level vulnerability SNYK-JAVA-ORGAPACHEHTTPCOMPONENTS-1048058. As such, I suggest a refactoring operation for com.egzosn:pay-java-web-support:2.14.4-fix’s pom file.
The attached PR helps resolve the reported problem. It is safe to remove the unused libraries (we considered Java reflection relations when analyzing the dependencies). These changes have passed com.egzosn:pay-java-web-support:2.14.4-fix’s maven tests.
Best regards