-
Notifications
You must be signed in to change notification settings - Fork 382
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
document mvn caching #6583
Comments
Is it possible for me to publish a jar locally from another project and then consume it in Beakerx with the recent Maven improvements? |
I'd also be curious about such a feature. With https://github.com/ligee/kotlin-jupyter it's possible to use gradle like locators to fetch maven artifacts (including sub-dependencies if present) with @file:DependsOnMaven(“de.mpicbg.scicomp:krangl:0.7”)
import krangl.*
irisData.glimpse() I wonder if a similar functionality is planned for beakerx or already built-in? |
Hi Holger thank you for your question. What Ben is asking for (?) is the ability to load not from maven central but a local package under development. That's something I would like to support but I don't fully understand it yet. |
That said, there seems to be a problem loading your library: |
@benmccann can you say exactly what you mean by "publish a jar locally"? https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html ? |
Usually I'm installing a first party jar locally (vs a 3rd party jar as mentioned in that article). I.e. I'm developing a library and want to see the latest changes in BeakerX by running |
@benmccann Per the discussion at #6340 I think this does what you want:
… with the understanding that, unless your artifact is versioned as a |
How can I clear the beakerx cache? |
Currently you would have to do it manually,
and then restart your kernel. but yea there should be a magic for this, one that removes any repos as well: #6987. |
related: #6994 |
include |
Cool thanks! |
@jpallas yes, that looks like it would do what I want. Though the last comment from @scottdraves looks like an even nicer way to do that Typically that's done automatically when using Maven, SBT, etc. and doesn't require an extra step from the user. It would be nice to consider including the local repo by default |
beakerx does not seem to honour my .m2/settings.xml configuration <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>d:/Users/me/.m2/repository</localRepository>
</settings>
|
#6340
location of cache, as well as how to override it with an envar.
The text was updated successfully, but these errors were encountered: