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

Dependencies missing in the pom #231

Open
pgrt opened this issue Sep 11, 2022 · 2 comments
Open

Dependencies missing in the pom #231

pgrt opened this issue Sep 11, 2022 · 2 comments
Assignees

Comments

@pgrt
Copy link

pgrt commented Sep 11, 2022

Hello,

The dependencies commons-io:commons-io, com.google.guava:guava and org.apache.commons:commons-lang3 (test scope only for the last one) are missing in pom.xml, whereas they are needed by some files in the code.

Cheers,
Pierre

@mlathara
Copy link
Contributor

@pgrt Can you elaborate on what steps you followed to find these missing dependencies? This doesn't trigger issues when we try to build a jar, so I'm trying to understand if building a specific target causes this issue, or perhaps I'm missing something

@pgrt
Copy link
Author

pgrt commented Oct 7, 2022

Hello @mlathara and thanks for reading my report.

I met the issue when embedding the build of GenomicsDB in the Debian packaging workflow. The dependencies are searched for in other Debian packages, which can explain there might be discrepancies between the versions of the dependencies you are using and mine (and thus different transitive dependencies maybe...).

Anyway, if I fail to add the above discussed dependencies in the pom, I get

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /<>/src/test/java/org/genomicsdb/reader/GenomicsDBQueryTest.java:[28,37] package org.apache.commons.lang3.math does not exist
[ERROR] /<>/src/test/java/org/genomicsdb/importer/GenomicsDBImporterSpec.java:[38,29] package org.apache.commons.io does not exist
[ERROR] /<>/src/test/java/org/genomicsdb/GenomicsDBUtilsTest.java:[25,28] package com.google.common.io does not exist
[INFO] 3 errors

If there is no additional cost on your side, I would suggest yo add the dependencies in the pom; I guess today they are provided as part of some dependency chain, but this might break and obviously the packages are needed by the code, so it should be safe to include them explcitly...

But you can also ignore this suggestion if the outcome is uncertain to you. It is still OK to add them later if needed!

Best,
Pierre

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

No branches or pull requests

2 participants