Installing GeoNetwork from the /core-geonetwork/ directory (Github - Source - Build)

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project gn-common: Fatal error compiling: invalid target release: 11 → [Help 1]

on running the command: man clean install -DSkipTests,
I get the above error and I have tried to ensure I have the right Java version running.
Nothing I try including making adjustments to the pom.xml file has helped.
I’d appreciate any feedback or assistance with this please.

Kindest,

Andrew

Which Java version are you running?

$ java -version

“”"
java version “1.8.0_371”

Java™ SE Runtime Environment (build 1.8.0_371-b11)

Java HotSpot™ 64-Bit Server VM (build 25.371-b11, mixed mode)
“”"

Above is the current version of Java running on my machine - I had to delete the 5 Java Virtual Machines that were all different versions, up to 23

I tried to read and understand how this may affect an install since the versions of Maven and Java need to be compatible, but no luck.

java version “1.8.0_371”

Java™ SE Runtime Environment (build 1.8.0_371-b11)

Java HotSpot™ 64-Bit Server VM (build 25.371-b11, mixed mode)

Looks like maven is running with Java 8, which is not suitable anymore for GeoNetwork.

I’m quite sure you need to setup your environment to run Java 11 or above.

Hi there Olivia,

this is the error that I get after switching to Java 11…

[> ERROR] Failed to execute goal on project gn-web-app: Could not resolve dependencies for project org.geonetwork-opensource:gn-web-app:war:4.4.7-SNAPSHOT

[ERROR] dependency: org.geotools:gt-jdbc:jar:32.2 (compile)

[ERROR] Could not transfer artifact org.geotools:gt-jdbc:jar:32.2 from/to osgeo (Repository - Sonatype Nexus Repository): No PSK available. Unable to resume.

[ERROR] Could not find artifact org.geotools:gt-jdbc:jar:32.2 in central (Central Repository:)

[ERROR] dependency: jakarta:jakarta-slide-webdavlib:jar:2.1 (compile)

[ERROR] Could not transfer artifact jakarta:jakarta-slide-webdavlib:jar:2.1 from/to osgeo (Repository - Sonatype Nexus Repository): No PSK available. Unable to resume.

[ERROR] Could not find artifact jakarta:jakarta-slide-webdavlib:jar:2.1 in central (Central Repository:)

[ERROR]

I notice it refers to dependencies. I do not have Tomcat and Jetty installed on my Mac OS (Monterey 12.7.6) and am currently trying to get Jetty installed. Would that be necessary at the install stage ? I appreciate your assistance with this.

ok… progress, I now get this error when trying to start jetty -

ERROR : No enabled jetty modules found!

INFO : ${jetty.home} = /Users/andrewchibwesha/Downloads/jetty-home-11.0.25

INFO : ${jetty.base} = /opt

ERROR : Please create and/or configure a ${jetty.base} directory.

So I am following a setup guide on https://happycoding.io to configure jetty.

Jetty is not needed for the build stage. The error “No PSK available” seems related to the TLS protocol (used for HTTPS requests), solving this is above my Java knowledge but I’m quite sure it is not related to the GeoNetwork project in any way.

Have you tried with another version of the JDK?

yes, when I was removing each version I tried to run man install as well - no luck.

Now, I am trying to follow on from a topic that I came across:

[GeoNetwork-devel] trouble building from source

I have Eclipse installed, but have never tried it so I am just trying to follow on to try and complete the Maven install of the core-geonetwork project.

Does this sound useful ?

if I run:

mvn clean install -DSkipTests -rf :gn-web-app

the process freezes @:

[INFO] frontend:1.15.0:npm (npm-install) @ gn-datahub-integration

[INFO] Running ‘npm ci --loglevel error’ in /Users/andrewchibwesha/core-geonetwork/plugins/datahub-integration/src/main/geonetwork-ui

From what I can make out from discussions online this isn’t a GeoNetwork issue, but possibly some issue with my setup and environment ??

I am also going to try installing from a WAR file again

Interesting, this has just been merged but it shouldn’t be built without specifying a specific profile; I’ll look into this.

What happens if you let the build run for a while?

Le jeu. 20 mars 2025, 16:59, Andrew Chibwesha via OSGeo Discourse <noreply@discourse.osgeo.org> a écrit :

ConsarnProject
March 20

I am also going tottery installing from a WAR file again


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

I’ve let it run for a while now and it is still frozen at the same point.
Thanks for looking into it !

… thanks for the link. (I think this is more like a side note for now…)
I am not entirely sure how to make use of the information provided though.
The only folder I can see that I’ve come across in the process of installing is the Jakarta plugin.
Am I supposed to ensure that the files are not corrupted and complete like they are in the repository ?

I am hover going through the GeoNetwork Developer Manual in the next few days and am interested in getting a mentor to assist me in working as a professional GeoNetwork Developer.

Error 404 - Not Found.

No context on this server matched or handled this request.

Contexts known to this server are:

Context Path Display Name Status LifeCycle
/geonetwork geonetwork Not Available STARTED

I installed the GeoNetwork.war file, but now it seems as though when I start the jetty server from a /jetty-base/webapps directory that I copied the .war file into it has no context ??

I actually forgot to place /geonetwork in the url to be

localhost:8080/geonetwork

, but then when I did I got a server error ?

server error:

HTTP ERROR 503 Service Unavailable

URI: /geonetwork/
STATUS: 503
MESSAGE: Service Unavailable
SERVLET: -