Graphhopper jar only for API use

I would like to build a jar only exposing the API without the map index page.

I see that a web-api module exists but I can’t run this jar on my server.
How can I achieve this ?

You could try commenting out this line:

bootstrap.addBundle(new AssetsBundle(“/com/graphhopper/maps/”, “/maps/”, “index.html”));