[Geoserver-devel] unable to import into Eclipse

I have cloned a fresh repo from git following the docs. However when importing all modules through the main pom file into eclipse, the IDE takes a lot of time while it downloads dependencies only to fail with multiple errors, please find attached screenshot

image.png

Has anyone faced similar problems recently or am I missing something?

regards,
Imran

···

I.R

I have not tried with the latest eclipse. The developers guide has two approaches:

  • maven eclipse plugin which uses maven on the command line to download everything

  • eclipse m2 plugin which I have gotten to work but find slow

(attachments)

image.png

···


Jody Garnett

Hi Jody,
our guides are a bit inconsistent.

The GeoTools dev guide does not describe the eclipse:eclipse approach anymore, says:
“In previous years we used the command line (gasp!) when working with maven. This year we are going to be using the M2E plugin from Sonyatype.”
See: http://docs.geotools.org/latest/userguide/tutorial/quickstart/eclipse.html

The GeoServer guide instead still talks about both using “eclipse:eclipse” and M2E:
https://docs.geoserver.org/latest/en/developer/eclipse-guide/index.html

Cheers
Andrea

(attachments)

image.png

···

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

https://docs.geoserver.org/latest/en/developer/quickstart/eclipse.html

step 8 and 9 seem to be suggesting to import all the projects including community and extensions. Even doing mvn eclipse:eclipse -Prelease does not have any effect or if you choose the release profile under the Advanced Option. So following step by step, actually dominos into loading a lot of snapshot code from GeoTools as well, in my case there was some problem with the gt-webservice dependences in Geotools which ended up breaking the whole geoserver development environment. Only way was to first build geotools and then geoserver. I am using Java8, Win10, Maven 3.6 and latest Eclipse IDE

https://docs.geoserver.org/latest/en/developer/quickstart/eclipse_m2.html
on this page, the Import Module part became irrelevant because the main pom imported everything anyways irrespective of the fact that you setup a profile in Advanced Options or not.

regards,
Imran

(attachments)

image.png

···

I.R