geoserver / geoserver-cloud

Cloud Native GeoServer is GeoServer ready to use in the cloud through dockerized microservices.
http://geoserver.org/geoserver-cloud
Other
246 stars 74 forks source link

Unable to Compile #126

Closed securedimensions closed 2 years ago

securedimensions commented 2 years ago

Tried to build geoserver-cloud on CENTOS 7 (Linux version 3.10.0-1127.19.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ) #1 SMP Tue Aug 25 17:23:54 UTC 2020) following the documentation at http://geoserver.org/geoserver-cloud/develop/#building

After cloning the repo (and cd geoserver-cloud) executing the command ./mvnw clean install ends with exception:

[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ gs-cloud-catalog-backend-starter ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 42 source files to /home/.../Development/geoserver-cloud/starters/catalog-backend-starter/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/.../Development/geoserver-cloud/starters/catalog-backend-starter/src/main/java/org/geoserver/cloud/config/jdbcconfig/JDBCConfigBackendConfigurer.java:[36,36] error: package org.geoserver.jdbcstore.locks does not exist
[ERROR] /home/.../Development/geoserver-cloud/starters/catalog-backend-starter/src/main/java/org/geoserver/cloud/config/jdbcconfig/JDBCConfigBackendConfigurer.java:[54,48] error: package org.springframework.integration.jdbc.lock does not exist
[ERROR] /home/.../Development/geoserver-cloud/starters/catalog-backend-starter/src/main/java/org/geoserver/cloud/config/jdbcconfig/JDBCConfigBackendConfigurer.java:[55,48] error: package org.springframework.integration.jdbc.lock does not exist
[ERROR] /home/.../Development/geoserver-cloud/starters/catalog-backend-starter/src/main/java/org/geoserver/cloud/config/jdbcconfig/JDBCConfigBackendConfigurer.java:[156,17] error: cannot find symbol
  symbol:   class LockRegistryAdapter
  location: class JDBCConfigBackendConfigurer
[ERROR] /home/.../Development/geoserver-cloud/starters/catalog-backend-starter/src/main/java/org/geoserver/cloud/config/jdbcconfig/JDBCConfigBackendConfigurer.java:[161,17] error: cannot find symbol
  symbol:   class JdbcLockRegistry
  location: class JDBCConfigBackendConfigurer
[ERROR] /home/.../Development/geoserver-cloud/starters/catalog-backend-starter/src/main/java/org/geoserver/cloud/config/jdbcconfig/JDBCConfigBackendConfigurer.java:[166,17] error: cannot find symbol
  symbol:   class DefaultLockRepository
  location: class JDBCConfigBackendConfigurer
[INFO] 6 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for gs-cloud-parent 1.0-SNAPSHOT:
[INFO] 
[INFO] gs-cloud-parent .................................... SUCCESS [  1.298 s]
[INFO] gs-cloud-docker-healthcheck ........................ SUCCESS [  3.152 s]
[INFO] Parent pom for support services .................... SUCCESS [  0.176 s]
[INFO] Discovery service .................................. SUCCESS [ 32.900 s]
[INFO] Cloud config service ............................... SUCCESS [ 20.996 s]
[INFO] API gateway service ................................ SUCCESS [ 12.457 s]
[INFO] Spring-boot admin service .......................... SUCCESS [ 12.795 s]
[INFO] Parent pom for GeoServer Catalog modules ........... SUCCESS [  0.116 s]
[INFO] gt-jackson-bindings ................................ SUCCESS [ 21.888 s]
[INFO] gs-cloud-pluggable-catalog-support ................. SUCCESS [01:00 min]
[INFO] gs-jackson-bindings ................................ SUCCESS [ 21.718 s]
[INFO] gs-cloud-catalog-cache ............................. SUCCESS [ 11.125 s]
[INFO] gs-cloud-event-bus ................................. SUCCESS [ 16.573 s]
[INFO] gs-cloud-event-bus-amqp ............................ SUCCESS [  0.190 s]
[INFO] Spring boot starters for GeoServer cloud services .. SUCCESS [  0.096 s]
[INFO] gs-cloud-starter-jackson ........................... SUCCESS [  6.524 s]
[INFO] gs-cloud-catalog-client ............................ SUCCESS [ 16.660 s]
[INFO] gs-cloud-catalog-backend-starter ................... FAILURE [ 12.449 s]
[INFO] gs-cloud-starter-vector-formats .................... SKIPPED
[INFO] gs-cloud-starter-raster-formats .................... SKIPPED
[INFO] gs-cloud-starter-webmvc ............................ SKIPPED
[INFO] gs-cloud-starter-reactive .......................... SKIPPED
[INFO] Parent pom for GeoServer microservices ............. SKIPPED
[INFO] Catalog microservice ............................... SKIPPED
[INFO] wfs-service ........................................ SKIPPED
[INFO] wms-service ........................................ SKIPPED
[INFO] wcs-service ........................................ SKIPPED
[INFO] wps-service ........................................ SKIPPED
[INFO] restconfig-service ................................. SKIPPED
[INFO] web-ui-service ..................................... SKIPPED
[INFO] Integration tests parent ........................... SKIPPED
[INFO] gs-cloud-catalog-service-it ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  04:12 min
[INFO] Finished at: 2021-12-19T18:15:30+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project gs-cloud-catalog-backend-starter: Compilation failure: Compilation failure: 
[ERROR] /home/.../Development/geoserver-cloud/starters/catalog-backend-starter/src/main/java/org/geoserver/cloud/config/jdbcconfig/JDBCConfigBackendConfigurer.java:[36,36] error: package org.geoserver.jdbcstore.locks does not exist
[ERROR] /home/.../Development/geoserver-cloud/starters/catalog-backend-starter/src/main/java/org/geoserver/cloud/config/jdbcconfig/JDBCConfigBackendConfigurer.java:[54,48] error: package org.springframework.integration.jdbc.lock does not exist
[ERROR] /home/.../Development/geoserver-cloud/starters/catalog-backend-starter/src/main/java/org/geoserver/cloud/config/jdbcconfig/JDBCConfigBackendConfigurer.java:[55,48] error: package org.springframework.integration.jdbc.lock does not exist
[ERROR] /home/.../Development/geoserver-cloud/starters/catalog-backend-starter/src/main/java/org/geoserver/cloud/config/jdbcconfig/JDBCConfigBackendConfigurer.java:[156,17] error: cannot find symbol
[ERROR]   symbol:   class LockRegistryAdapter
[ERROR]   location: class JDBCConfigBackendConfigurer
[ERROR] /home/.../Development/geoserver-cloud/starters/catalog-backend-starter/src/main/java/org/geoserver/cloud/config/jdbcconfig/JDBCConfigBackendConfigurer.java:[161,17] error: cannot find symbol
[ERROR]   symbol:   class JdbcLockRegistry
[ERROR]   location: class JDBCConfigBackendConfigurer
[ERROR] /home/.../Development/geoserver-cloud/starters/catalog-backend-starter/src/main/java/org/geoserver/cloud/config/jdbcconfig/JDBCConfigBackendConfigurer.java:[166,17] error: cannot find symbol
[ERROR]   symbol:   class DefaultLockRepository
[ERROR]   location: class JDBCConfigBackendConfigurer
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :gs-cloud-catalog-backend-starter
groldan commented 2 years ago

Hey, sorry for the inconvenience. This week I'll work on #100 Meanwhile, we need to build this geoserver-cloud_integration GeoServer branch first, just like the CI builds do, to get the fixes to geoserver startup race conditions.

securedimensions commented 2 years ago

Thank you for the quick reply. It's not that urgent, but ...

groldan commented 2 years ago

@securedimensions finally took the time to make it easier to get started building the project and its deps. Updated instructions in the README, but basically the required geoserver branch is checked out as a submodule, and a simple mvn install -DskipTests from the root directory would give you all you need.