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

DBeaver and .m2 #27

Closed
j3r3m1 opened this issue Feb 21, 2020 · 5 comments
Closed

DBeaver and .m2 #27

j3r3m1 opened this issue Feb 21, 2020 · 5 comments

Comments

@j3r3m1
Copy link

j3r3m1 commented Feb 21, 2020

Sorry I did not kinow where to put this issue...

I have deleted the .m2 folder in order to update my geoclimate package. Then when I launch a script using

@GrabResolver(name='orbisgis', root='https://nexus.orbisgis.org/repository/orbisgis/')
@Grab(group='org.orbisgis.orbisprocess', module='geoclimate', version='1.0.0-SNAPSHOT')

import org.orbisgis.orbisprocess.geoclimate.Geoclimate

The .m2 file is not reloaded. Is it a correct behavior ? Note that the similar behavior is met using the groovyConsole.

@ebocher
Copy link
Member

ebocher commented Feb 21, 2020

You can put the issue here https://github.com/orbisgis/orbisrcp

@j3r3m1
Copy link
Author

j3r3m1 commented Feb 22, 2020

I do not have any option to move the issue on the right side-bar. Problem of rights ?

@j3r3m1
Copy link
Author

j3r3m1 commented Feb 22, 2020

OK I realize that the problem may come from the fact that DBeaver or GroovyConsole have nothing to do with .m2 folder. Actually to make DBeaver download a new version of geoclimate, I suppose that it is necessary to delete the .groovy folder.

I have done that, however, I have the following error when using the grab resolver:

java.lang.RuntimeException: Error grabbing Grapes -- [download failed: net.sourceforge.f2j#arpack_combined_all;0.1!arpack_combined_all.jar]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

@SPalominos SPalominos transferred this issue from orbisgis/orbisgis Feb 26, 2020
@SPalominos
Copy link
Contributor

It seem to be caused by an incompatibility of versions between grab/groovy and groovyeditor plugin

Try to remove your .groovy and .m2 cache to ensure to use the very last snapshots. Then launch DBeaver (check you have the laste version) and, once launched, update the GroovyEditor plugin.
After that, retry you script.

If the issue still, can you post your script ?

@j3r3m1
Copy link
Author

j3r3m1 commented Feb 26, 2020

OK this problem has been solved yesterday when I update all mess. Thanks !

@j3r3m1 j3r3m1 closed this as completed Feb 26, 2020
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

3 participants