Details
-
Task
-
Resolution: Unresolved
-
Neutral
-
None
-
None
-
-
Empty show more show less
-
Empty show more show less
Description
MAGNOLIA-9204 changed JCR mgnl namespace URI and adjusted source files for the modules in the release of Magnolia 6.2.43.
The release of 6.2.44 should also do this.
How to do this?
If https://git.magnolia-cms.com/projects/BUILD/repos/magnolia-rewrite-recipes/pull-requests is not integrated (otherwise skip this step)
git fetch origin refs/pull-requests/15/from:15 && git checkout 15 mvn clean install
In your module:
- Checkout branch on java11/17 (due to java versions, openrewrite might work only on java11/17)
git checkout master git checkout -b MAGNOLIA-9204-6.3
- Update dependency to latest parent pom (built in step 1). You don't have to commit this change, it's required only for the next step.
- Run openrewrite
mvn rewrite:run -DactiveRecipes=info.magnolia.rewrite.UpdateMgnlNodeTypeNamespace
- As result, the namespace should be updated in
- XML bootstrap files
- XML snippets in java code
- XML node type definitions
- Manually update CND files
- check if you module contains any CND (Compact Nodetype Definition)
- update mgnl namespace manually in these files
- Commit the changes
git commit -m "MAGNOLIA-9204 update mgnl namespace URI" git push
- Create PR
- Once the changes are building successfully, backport the change to a branch compatible with Magnolia 6.2
- Copy the commit hash from 6.3 branch
- Cherry-pick the commit, e.g:
git checkout release/6.2 git pull git checkout -b MAGNOLIA-9204-6.2 git cherry-pick <hash>
-
- Manually update magnoliaVersion to 6.2.42 (or later/latest, e.g. 6.2-SNAPSHOT)
- Commit the changes and create a PR
git commit -m "MAGNOLIA-9204 update mgnl namespace URI" git push
Also create the same ticket for the next release.
Checklists
Acceptance criteria