geoserver / geoserver-cloud

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

Could not found findNamespaceChange(StoreInfo,WorkspaceInfo) in CatalogPlugin #483

Closed zhangiser closed 2 months ago

zhangiser commented 2 months ago

I'm new to GeoServer-Cloud。 firstly,i run

mvn dependency:go-offline

and everything seems ok

[INFO] Reactor Summary for GeoServer Cloud 1.8.3:
[INFO]
[INFO] GeoServer Cloud .................................... SUCCESS [03:18 min]
[INFO] GeoServer Cloud modules ............................ SUCCESS [ 45.663 s]
[INFO] Misc libs .......................................... SUCCESS [01:02 min]
[INFO] gs-cloud-spring-factory ............................ SUCCESS [  2.435 s]
[INFO] spring-boot-simplejndi ............................. SUCCESS [ 11.271 s]
[INFO] Catalog and Config ................................. SUCCESS [  0.154 s]
[INFO] gs-cloud-catalog-plugin ............................ SUCCESS [05:46 min]
[INFO] gs-cloud-catalog-events ............................ SUCCESS [ 48.243 s]
[INFO] gs-cloud-catalog-cache ............................. SUCCESS [ 15.727 s]
[INFO] Catalog and Config Jackson Bindings ................ SUCCESS [  0.206 s]
[INFO] gt-jackson-bindings ................................ SUCCESS [  6.575 s]
[INFO] gs-jackson-bindings ................................ SUCCESS [03:15 min]
[INFO] gs-cloud-starter-jackson ........................... SUCCESS [01:06 min]
[INFO] gs-cloud-catalog-event-bus ......................... SUCCESS [02:33 min]
[INFO] Catalog Backends ................................... SUCCESS [  1.013 s]
[INFO] gs-cloud-catalog-backend-common .................... SUCCESS [ 10.177 s]
[INFO] gs-cloud-catalog-backend-datadir ................... SUCCESS [  5.793 s]
[INFO] gs-cloud-catalog-backend-pgconfig .................. SUCCESS [03:23 min]
[INFO] gs-cloud-catalog-backend-jdbcconfig ................ SUCCESS [  7.922 s]
[INFO] Spring boot starters for GeoServer cloud services .. SUCCESS [  0.122 s]
[INFO] gs-cloud-starter-catalog-backend ................... SUCCESS [  6.249 s]
[INFO] GeoWebCache Cloud .................................. SUCCESS [  1.407 s]
[INFO] gwc-cloud-core ..................................... SUCCESS [  8.839 s]
[INFO] gwc-cloud-backends ................................. SUCCESS [  1.473 s]
[INFO] gwc-cloud-catalog-pgconfig ......................... SUCCESS [  4.679 s]
[INFO] gwc-cloud-blobstores ............................... SUCCESS [ 29.977 s]
[INFO] gwc-cloud-services ................................. SUCCESS [  9.430 s]
[INFO] gwc-cloud-bus-integration .......................... SUCCESS [  1.920 s]
[INFO] gwc-cloud-spring-boot-autoconfigure ................ SUCCESS [ 51.217 s]
[INFO] gwc-cloud-spring-boot-starter ...................... SUCCESS [  2.519 s]
[INFO] gs-cloud-spring-boot-starter ....................... SUCCESS [  1.138 s]
[INFO] gs-cloud-starter-event-bus ......................... SUCCESS [  1.132 s]
[INFO] gs-cloud-starter-vector-formats .................... SUCCESS [ 18.040 s]
[INFO] gs-cloud-starter-raster-formats .................... SUCCESS [ 24.563 s]
[INFO] gs-cloud-starter-webmvc ............................ SUCCESS [02:14 min]
[INFO] gs-cloud-starter-wms-extensions .................... SUCCESS [ 39.487 s]
[INFO] gs-cloud-starter-security .......................... SUCCESS [ 48.290 s]
[INFO] Applications ....................................... SUCCESS [ 35.510 s]
[INFO] gs-cloud-base-images ............................... SUCCESS [  0.693 s]
[INFO] Base JRE image ..................................... SUCCESS [  0.470 s]
[INFO] gs-cloud-base-spring-boot .......................... SUCCESS [  0.279 s]
[INFO] gs-cloud-base-geoserver-image ...................... SUCCESS [02:35 min]
[INFO] Infrastructure microservices ....................... SUCCESS [  0.637 s]
[INFO] Discovery service .................................. SUCCESS [ 32.888 s]
[INFO] Cloud config service ............................... SUCCESS [03:48 min]
[INFO] API gateway service ................................ SUCCESS [  6.573 s]
[INFO] Spring-boot admin service .......................... SUCCESS [01:31 min]
[INFO] GeoServer microservices ............................ SUCCESS [ 15.869 s]
[INFO] wfs-service ........................................ SUCCESS [ 13.611 s]
[INFO] wms-service ........................................ SUCCESS [  6.077 s]
[INFO] wcs-service ........................................ SUCCESS [  7.308 s]
[INFO] wps-service ........................................ SUCCESS [ 15.023 s]
[INFO] restconfig-service ................................. SUCCESS [ 50.577 s]
[INFO] web-ui-service ..................................... SUCCESS [ 49.840 s]
[INFO] gwc-service ........................................ SUCCESS [  1.791 s]
[INFO] Integration Tests .................................. SUCCESS [  0.130 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  42:33 min
[INFO] Finished at: 2024-06-13T10:48:06+08:00
[INFO] ------------------------------------------------------------------------

secondly,i run

mvn -o install -DskipTests=true

but got error

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project gs-cloud-catalog-plugin: Compilation failure: Compilation failure:Could not found findNamespaceChange(StoreInfo,WorkspaceInfo) in CatalogPlugin

image

groldan commented 2 months ago

and does it work without -o?

aside, also make sure you got the config/ submodule or run git submodule update --init

afaik the dependency:go-offline is not good enough. I just tried:

mkdir /tmp/maven
cd /tmp
git clone --recurse-submodules git@github.com:geoserver/geoserver-cloud.git
cd geoserver-cloud/
git checkout v1.8.3
mvn -Dmaven.local.repo=/tmp/maven dependency:go-offline
mvn -o -Dmaven.local.repo=/tmp/maven package -DskipTests

And got

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project gt-jackson-bindings: Resolution of annotationProcessorPath dependencies failed: The following artifacts could not be resolved: org.mapstruct:mapstruct-processor:jar:1.6.0.Beta1 (absent): Cannot access osgeo-releases (https://repo.osgeo.org/repository/release/) in offline mode and the artifact org.mapstruct:mapstruct-processor:jar:1.6.0.Beta1 has not been downloaded from it before. -> [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/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :gt-jackson-bindings

But without -o I get:

mvn -Dmaven.local.repo=/tmp/maven package -DskipTests
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:08 min
[INFO] Finished at: 2024-06-13T17:13:40-03:00
[INFO] ------------------------------------------------------------------------

The easiest would be to just run

make install
make build-image
zhangiser commented 2 months ago

@groldan Thanks. I've tried without -o,but failed too.

mvn install -DskipTests

I've checked config data dir,found it is empty,and i completed other files. But the error is not changed. image

I've no idea. What should i do?

groldan commented 2 months ago

Do you mean the build failed? or is it just IDEA that complains? If so I can't tell much cause I use eclipse. In eclipse I've to do "update maven project" every once in a while, so it sync's up with the info in the poms. Probably you just have to do something similar in IDEA?

zhangiser commented 2 months ago

@groldan Thanks anyway. Finally! I found the problem. Customized Geoserver Packages,the repo url is:

https://github.com/orgs/camptocamp/packages?repo_name=geoserver-cloud-geoserver

But my mirror of settings.xml is * from maven.aliyun.com. I'am so Sorry......