CQ 5.4 -> 6.1 Migration Issue: javax.jcr.nodetype.ConstraintViolationException: OakConstraint0001
I am getting the following exception when uploading a package to 6.1 AEM instance:
com.day.jcr.vault.packaging.PackageException: org.apache.jackrabbit.vault.packaging.PackageException: javax.jcr.nodetype.ConstraintViolationException: OakConstraint0001: /apps/test-config/config[[nt:folder]]: No matching definition found for child node test with effective type [nt:unstructured]
at com.day.jcr.vault.packaging.impl.JrVltJcrPackageAdapter.install(JrVltJcrPackageAdapter.java:109)
at com.day.crx.packaging.impl.J2EEPackageManager.consoleInstall(J2EEPackageManager.java:329)
at com.day.crx.packaging.impl.J2EEPackageManager.doPost(J2EEPackageManager.java:171)
at com.day.crx.packaging.impl.PackageManagerServlet.doPost(PackageManagerServlet.java:144)
...
I understand that the childnode type [nt:unstructured] is not allowed under [nt:folder] node.
What is the normal approach to carry out such content migration?