Uploaded image for project: 'Build'
  1. Build
  2. BUILD-1215

Change mgnl namespace URI in source files

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Neutral
    • BOM 6.2.44
    • None
    • None

    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

        Attachments

          Activity

            People

              Unassigned Unassigned
              rkovarik Roman Kovařík
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Task DoR