0

I want to develop an extension for my GeoServer and I started by following this guide : https://docs.geoserver.org/latest/en/developer/programming-guide/ows-services/implementing.html

The chapter of "Running from Source" works well with my Eclipse instance project.

Is there a way for "auto-reload" (or refresh) my GeoServer instance when I change the code in my extension ?

If I change the "Hello World" message by "Hello foo", I need to

  • stop GeoServer
  • refresh Eclipse project
  • and re-start GeoServer

I seek a faster way.

1 Answer 1

1

That's the only way to do it I'm afraid. Your extension jar is only read at start up.

6
  • Ok, thank you for your reponse. So all developers around geoserver have to do like this? It takes about 30/40 seconds (on my side) to refresh/restart GeoServer. Commented May 3, 2022 at 7:59
  • As far as I know that's it - try not to make too many trivial changes Commented May 3, 2022 at 8:23
  • 1
    Most of geoserver development is tested with unit tests. Instead of running the whole server, just run your tests. Commented May 3, 2022 at 10:44
  • Ok well thank you all for your replies. I will run my tests ! Commented May 3, 2022 at 13:07
  • 1
    I definitely don't develop GeoServer like this... but you need to place your community module in GeoServer to do what I do: create a profile adding a dependency to your community module in web/app, run GeoServer from your IDE with the profile activated, and just keep on changing stuff without (depending on your JVM, you should be able to do some changes in debug mode without having to restart GeoServer). Commented May 4, 2022 at 7:42

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.