Foren

New Liferay Module Project/Blade CLI update 2016-06-29

thumbnail
Gregory Amerson, geändert vor 7 Jahren.

New Liferay Module Project/Blade CLI update 2016-06-29

Liferay Legend Beiträge: 1123 Beitrittsdatum: 16.02.10 Neueste Beiträge
Hello all. We know that many people have encountered bugs recently with the New Liferay Module Project wizard and also the blade cli tool when creating new Liferay module projects. We have addressed those issues today with a new blade-cli release today version 1.0.2. To update the CLI do this:

$ sudo jpm remove blade   
$ sudo jpm install com.liferay.blade.cli


In DevStudio/IDE, it should automatically find the new blade version during the "new liferay module project" wizard. But DevStudio has a 24h timeout before it "checks" for newer versions of Blade tool. If it doesn't find the new one when you try today you can "force" it to find the new one by doing this:

rm -rf <eclips_workspace>/.metadata/.plugins/com.liferay.ide.project.core/blade*
rm -rf <user_home>/.liferay-ide/repoCache</user_home></eclips_workspace>


When DevStudio/IDE delegates to the blade tool to create the projects, the project contents themselves come from the Liferay nexus server, which are stored in the gradle.templates artifact here:

https://repository.liferay.com/nexus/content/groups/public/com/liferay/com.liferay.gradle.templates/

Today, we also pushed a new version of the gradle templates (1.0.9). The blade tool should automatically find the newest templates and download them, but internally blade tool uses gradle client to ping Liferay Nexus server and this mechanism also has a 24h timeout as well. If it doesn't find the new template content then you may have to remove your .gradle folder (or rename it actually may be safer so you can restore it in the future). This will force the new templates to be downloaded.

Sorry for the inconvenience caused by this and please respond in this thread if you have any problems getting IDE/DevStudio or blade-cli generating good project content.