[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.
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] 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] 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.
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.
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.
… 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.
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 ??