Skip to content

Fix release workflows not updating project template version and more - #13040

Merged
tdipisa merged 2 commits into
geosolutions-it:masterfrom
offtherailz:fix-project-template-version
Oct 23, 2026
Merged

tdipisa merged 2 commits into
geosolutions-it:masterfrom
offtherailz:fix-project-template-version

Conversation

@offtherailz

@offtherailz offtherailz commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Description

A project created from master with createProject.js does not deploy: the standard template still depends on mapstore-services 1.13-SNAPSHOT (Spring 7.0.8) while master is at 1.14-SNAPSHOT, and the GeoStore war brings Spring 7.0.9. The war ends up with both versions and Tomcat refuses it randomly:

More than one fragment with the name [spring_web] was found

Root cause: cut_major_branch.yml, pre_release.yml and post_release.yml run versions:set-property on project/standard/templates/web/pom.xml, but mapstore-services.version is defined in project/standard/templates/pom.xml (moved there in #10015). The command silently does nothing, so the template had to be aligned by hand every time (#12708, #12711, #12731).

The template version itself is aligned on master only in #13043, since stable branches use a different mapstore-services version. This PR can be backported as is.

Changes:

  • point the three release workflows to project/standard/templates/pom.xml
  • docs: mention INITIAL_ADMIN_PASSWORD in the project creation guide and add Windows (cmd / PowerShell / setenv.bat) examples

Please check if the PR fulfills these requirements

  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

  • Bugfix
  • Build related changes
  • Docs

Issue

Closes #13044

Other useful information

Tested by creating a project with createProject.js from master, building it and starting the backend with INITIAL_ADMIN_PASSWORD set: with 1.14-SNAPSHOT (see #13043) the war deploys, admin with the configured password logs in (200), admin:admin and wrong passwords are refused (401). mvn versions:set-property -f project/standard/templates/pom.xml ... verified on a copy of the template.

…DMIN_PASSWORD for projects

Release workflows updated the property in templates/web/pom.xml, but it lives in templates/pom.xml.
@offtherailz offtherailz changed the title Fix project template mapstore-services version and release workflows Fix release workflows not updating project template version, document INITIAL_ADMIN_PASSWORD for projects Oct 23, 2026
@tdipisa tdipisa changed the title Fix release workflows not updating project template version, document INITIAL_ADMIN_PASSWORD for projects Fix release workflows not updating project template version and more Oct 23, 2026
@tdipisa
tdipisa merged commit 459dd8e into geosolutions-it:master Oct 23, 2026
15 checks passed
@offtherailz

Copy link
Copy Markdown
Member Author

offtherailz added a commit that referenced this pull request Oct 23, 2026
…13040) (#13047)

* Fix project template mapstore-services version and document INITIAL_ADMIN_PASSWORD for projects

Release workflows updated the property in templates/web/pom.xml, but it lives in templates/pom.xml.

* Keep project template version out of the backportable change

(cherry picked from commit 459dd8e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Projects created from master fail to deploy: template mapstore-services version not aligned by release workflows

2 participants