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

Could edu.stanford.protege:protege-launcher:5.6.0-beta-1-SNAPSHOT drop off redundant dependencies? #1051

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Celebrate-future
Copy link

@Celebrate-future Celebrate-future commented Apr 18, 2022

Hi! I found the pom file of project edu.stanford.protege:protege-launcher:5.6.0-beta-1-SNAPSHOT introduced 60 dependencies. However, among them, 4 libraries (6%) are not used by your project. I list the redundant dependencies below (labelled as red ones in the figure):

Redundant dependencies

org.apache.servicemix.bundles:org.apache.servicemix.bundles.javax-inject:jar:1_2:compile
com.google.errorprone:error_prone_annotations:jar:2.4.0:compile
com.google.code.findbugs:jsr305:jar:3.0.1:compile
org.slf4j:jul-to-slf4j:jar:1.7.12:compile

Outdated dependencies

org.apache.servicemix.bundles:org.apache.servicemix.bundles.javax-inject:1_2 (4198 days without maintenance)
org.slf4j:jul-to-slf4j:1.7.12 (3047 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, 2 of the redundant dependencies org.apache.servicemix.bundles:org.apache.servicemix.bundles.javax-inject:jar:1_2:compile, com.google.code.findbugs:jsr305:jar:3.0.1:compile induced dependency conflict in the dependency graph. As such, I suggest a refactoring operation for edu.stanford.protege:protege-launcher:5.6.0-beta-1-SNAPSHOT’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 edu.stanford.protege:protege-launcher:5.6.0-beta-1-SNAPSHOT’s maven tests.

Best regards

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

Successfully merging this pull request may close these issues.

1 participant