Issue
- When deploying a module that customizes Control Panel, the changes don't take effect and I get:
java.lang.UnsupportedOperationException: Requires 3.0 opt-in.
Environment
- Liferay DXP 7.2
Resolution
The solution is to rebuild the module with the latest Liferay IDE version as well as the latest Blade version:
- If you do not already using the Liferay Developer Studio, you can install it following this article: Installing Liferay Developer Studio 3.9.x (check latest Developer Studio releases in the Downloads page.
- If you are already using the Developer Studio, you can upgrade it according to this article: Updating Liferay Dev Studio
- Here is the article for upgrading the Blade CLI version: Updating the Blade CLI.
- And after the above steps, when you are on the latest Dev Studio and Blade versions, you can follow the below steps to import your modules:
-
- If you modules are not residing in a Liferay Workspace or you want to import the whole Workspace: Importing Projects in Dev Studio
- If you want to import individual modules into a new Workspace from an existing workspace, you can copy them into the modules folder of the Workspace in Developer Studio.