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

add aliases for standard repositories #6979

Open
scottdraves opened this issue Mar 15, 2018 · 11 comments
Open

add aliases for standard repositories #6979

scottdraves opened this issue Mar 15, 2018 · 11 comments

Comments

@scottdraves
Copy link
Contributor

%classpath add mvn de.mpicbg.scicomp:krangl:0.7

@scottdraves
Copy link
Contributor Author

dup of #6954
?

@holgerbrandl
Copy link

Maybe It fails to load because it's deposited on jcenter and not on maven central?
Central artifacts are working totally fine for me when using %classpath add

@jaroslawmalekcodete
Copy link
Contributor

Hi
to fix your problem just try to add all yours repositories by magic command as below
kranglmvn

Tip: look at https://github.com/jitpack/jitpack.io#publishing-on-jitpack and "Some extras to consider"

@holgerbrandl
Copy link

holgerbrandl commented Mar 16, 2018

Cool thanks, what about mvn local or jcenter. Are there resolvers for these as well? Like

%classpath config resolver mvnlocal

Especially test changes locally, this would be super useful.

@holgerbrandl
Copy link

Found half of the answer myself in a recent comment o #6583. To add the local maven cache, the user needs to configure a resolver with:

%classpath config resolver local file:/Users/joe/.m2/repository

Not sure why file:/Users/joe/.m2/repository is not the default, though?

@scottdraves
Copy link
Contributor Author

scottdraves commented Mar 18, 2018

Cool. It's not the default because unfortunately maven doesn't support concurrent access, so if we used the default location then the user could break BeakerX if they were doing development in a terminal or IDE at the same time as running BeakerX. See #6340.

I do like your idea for a mvnlocal resolver, will try to get it in the next release: #6986.

@holgerbrandl
Copy link

Thanks.

Users may want to fetch such dependencies from jcenter. E.g. the above mentioned krangl is hosted there. Is there a dedicated resolver for jcenter as well?

@scottdraves
Copy link
Contributor Author

There isn't, but I don't mind adding a shortcut to jcenter, like gradle has, so you don't have to type or remember the URL. Is there a list of all/most such repositories that we can just pull in? I don't really want to the maintainer and arbiter of such a thing.

@holgerbrandl
Copy link

Not sure, but https://docs.gradle.org/current/userguide/repository_types.html#sub:maven_jcenter seems a good reference.

@jpallas
Copy link
Contributor

jpallas commented Mar 19, 2018

If there are built-in aliases, maybe also jitpack?

@scottdraves
Copy link
Contributor Author

scottdraves commented Mar 19, 2018 via email

@scottdraves scottdraves changed the title krangl fails to load add aliases for standard repositories Apr 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants