Menu

Installing Blade CLI

Не знаю причину, но в один ясный день Liferay IDE отказался создавать mvc портлеты. Временный выход, работать через Blade CLI

Linux https://www.youtube.com/watch?v=wRluHYtmiRE
curl -L https://raw.githubusercontent.com/liferay/liferay-blade-cli/master/cli/installers/local | sh

Windows https://www.youtube.com/watch?v=KOu0vwroQ18

  1. Устанавливаем jpm4j ( https://github.com/jpm4j/jpm4j.installers )
  2. Устанавливаем blade CLI
    2.1 jpm install -f https://releases.liferay.com/tools/blade-cli/latest/blade.jar
    2.2 blade version

    blade version 3.3.0.201811151753
    Run 'blade update' to update to version 7.0.1

2.3 blade update

Current blade version 3.3.0.201811151753
Updating from: https://repository-cdn.liferay.com/nexus/content/repositories/liferay-public-releases/com/liferay/blade/com.liferay.blade.cli//7.0.1/com.liferay.blade.cli-7.0.1.jar
blade update cannot execute successfully because of Windows file locking. Please use the following command:
jpm install -f https://repository-cdn.liferay.com/nexus/content/repositories/liferay-public-releases/com/liferay/blade/com.liferay.blade.cli//7.0.1/com.liferay.blade.cli-7.0.1.jar

2.4 jpm install -f https://repository-cdn.liferay.com/nexus/content/repositories/liferay-public-releases/com/liferay/blade/com.liferay.blade.cli//7.0.1/com.liferay.blade.cli-7.0.1.jar
2.5 blade version

blade version 7.0.1.202407261807

2.6 C:\sildar\f100\eclipse2024_06_work\a>blade create -t mvc-portlet -p com.liferay.frontend.editor.ckeditor.web.internal -c LiferaySamplePortlet -v 7.4.3 -b gradle frontend-editor-ckeditor-web

Successfully created project frontend-editor-ckeditor-web in C:\sildar\f100\eclipse2024_06_work\a\modules

Posted by safiullinib 2024-09-18

Log in to post a comment.

MongoDB Logo MongoDB