Error accessing transitive dependencies via %maven
See original GitHub issueSo I am working on the DFLib Jupyter integration per https://github.com/nhl/dflib/issues/44 . It mostly works well. Found one problem though. I am including all the DFLib modules as “compile” dependencies of “dflib-jupyter” , so I assumed I can only specify %maven com.nhl.dflib:dflib-jupyter:0.6-SNAPSHOT
once, and get all of them. Apparently not. Here is a screenshot where Jupyter fails to import a package from one of the dependencies:
Oddly enough, when instead of importing “com.nhl.dflib”, I import “com.nhl.dflib.jdbc” package (from another module), the error is NoClassDefFound on the core DFLib package… So it seems to be ok with jdbc import, but still can’t find the core library.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Maven transitive dependencies - Stack Overflow
The reason for failure in transitive dependency is the project in which we are dependent inherits the jar from custom path rather than...
Read more >Maven dependencies | IntelliJ IDEA Documentation - JetBrains
Open the dependency POM and find the transitive dependency you want to exclude. Copy groupId and artifactId . In your project POM, underneath ......
Read more >Maven – Optional Dependencies and Dependency Exclusions
For example, a certain older jar may have security issues or be incompatible with the Java version you're using. To address this, Maven...
Read more >Downgrading versions and excluding dependencies
Forcing a version of a dependency requires a conscious decision. Changing the version of a transitive dependency might lead to runtime errors if...
Read more >How to resolve transitive dependency problem on maven java ...
The maven way of resolving situations like this is to include this. In this scenario if I run project A, Maven will correctly...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No worries. As a long time open source developer I can relate.
This solved the second issue - the conflict between 2 notebooks. It no longer appears.
Thanks for providing this nice tool. I also got my small Java test working, but stumble over a very similar problem that is described here when doing the following:
I sometimes get errors that a certain class is missing although it should be included from one of the
%maven
statements. E.g.:or
or
Sometimes it affects the last
%maven
statement. Not sure if it helps but this was (sometimes) reproducible at mybinder.org.And one time I was able to remove such an error when I switched from
%%loadFromPOM
to%maven
but it does not disappear now and is also permanent even if I restart my system. Is there a way to “restart from scratch”?