Issue
- As the JCR store is supported as a document store till Liferay Portal 6.2 and from DXP 7.0 onwards it is no longer supported, what are the guidelines that should be followed before upgrading from Liferay 6.2 into any higher version of Liferay?
Environment
- Liferay Portal 6.2
- Liferay DXP 7.0, 7.1, 7.2
Resolution
- Since the JCR is no longer supported from Liferay DXP 7.0 SP3 onwards, migrating from JCR to any other file system is recommended.
Migration steps:
1) Login with Admin user
2) Go to Control Panel -> Configuration -> Server Administration -> Data Migration -> Migrate documents from one repository to another
3) Select a new repository and then check "Delete files from previous repository"
4) Click on Execute.
5) Now documents will be migrated into the new repository. Shut down the Liferay to make the new repository as the default by adding the below property in portal-ext.properties file, and then restart
eg: if Advanced File System Store is selected, the following property should be added in portal-ext.properties
dl.store.impl=com.liferay.portlet.documentlibrary.store.AdvancedFileSystemStore
Additional Information
- Selecting a new repository completely depends on the business use case. Connecting with the respective architect team would help.