Closed zhangiser closed 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
@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.
I've no idea. What should i do?
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?
@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......
I'm new to GeoServer-Cloud。 firstly,i run
and everything seems ok
secondly,i run
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