Showing posts with label Liferay Workspace. Show all posts
Showing posts with label Liferay Workspace. Show all posts

Tuesday, October 17, 2017

Liferay DXP/7 BLADE CLI Installation

BLADE CLI is Liferay DXP/7 Application Development Tool to create and deploy Liferay 7 Modules.

As we know that Liferay 7 introduces modularity to develop Liferay applications and BLADE is providing command line interface to create and deploy the application modules into Liferay Portal Module Framework.

BLADE have set of predefined commands to create different types of module to customize or create new features in Liferay Portal Environment.

It is really a different king of experience to develop Liferay OSGi bundles than regular web application development.

Please follow the below articles to know more about BLADE CLI and its commands.


Liferay have provided Liferay Workspace Installer to install BLADE CLI in our local machines. Installer is available for all kinds of OS environments like Windows, Linux and Mac. BLADE CLI is available as part of Liferay Workspace Installer. Liferay Workspace is manage the Liferay Modules and It configuration. We will more details of Liferay Workspace in the future articles.

Note:

Before Liferay Workspace Installer BLADE CLI used the Java Package Manager (JPM) to install BLADE CLI and we have other option as well that is directly download BLADE CLI java JAR file then simply execute using Java JAR command. Liferay Workspace Installer is way to install BLADE CLI and it is recommended.

Java Package Manager(JPM)


Step: 1

Go to following link to download Liferay Workspace Installer.


We can also go to Liferay IDE Download page and Select Liferay Workspace Installer in the Others Download dropdown.


Based on your Operating System download appropriate Installer and run in your machine.
The following screen shows you the Liferay Workspace Installer Download page.




Step: 2

In this example, I am showing for the Windows Operating System. Once you downloaded the Liferay Workspace Installer, double click in file then it open dialog. Click on Next


Step: 3

Here we have option to select directory for initialize the Liferay Workspace. However, here we would like to install only BLDE CLI so just select “Don’t Install Liferay Workspace Directory” then click on next.


Note:

Sometimes you can see the option to select Liferay portal Server. Either we can chose Liferay 7 Community Server bundle Or Liferay DXP server bundle.Select “Liferay Community Server Bundle” as we are using Liferay 7 Community Edition and it is free to use. If you already have Liferay DXP license then select Liferay DXP bundle.

Step: 4

Once you click on Next it will show dialog that “Setup is now to being install” then click on next.



Step: 5

Finally it installed all required thing and it shows finish dialog then click on finish. Now BLADE CLI installation is completed.



Step: 6

Once installation is completed then open Windows Command Prompt and type “blade” then you can list of commands. If you see all these commands, it means BLADE CLI successfully installed otherwise you can see 'blade' is not recognized as an internal or external command.



Now you can play with BLADE CLI commands. You can create and deploy the Liferay DXP/7 modules. Here you can find all available commands.


Note:

In this installation, we only installed BLADE CLI. It is recommended to initializing the Liferay Workspace through installer option. Liferay Workspace has provided the way to manage modules and deploy into different types of run time environment like DEV, UAT and PROD.

BLADE CLI also have command “blade init” to initialize the Liferay Workspace. We can create multiple Liferay Workspace based on our needs.

The following are the list of BLADE CLI commands.


blade convert
blade create
blade deploy
blade gw
blade help.
blade init
blade install
blade open
blade samples
blade server
blade sh
blade update.
blade version



Author

Wednesday, October 4, 2017

Liferay 7/DXP Development Options

Liferay 7/DXP is latest portal release from Liferay Inc. Liferay 7 / DXP came up with many promising features.

Liferay 7/DXP supported module development by using OSGi framework and its major architectural change from its previous versions.

Before Liferay 7 / DXP, when we talk about Liferay Development, we always talk about Plugins and now Liferay 7 standpoint, we have bundles.

Liferay 6.2 and before versions, Liferay Application Development and Portal Customization through Plugins, we have different plugins types and each one has its own significant in the portal.

Liferay 7 / Liferay DXP have introduced new type of artifact called Bundle. Bundle is basic unit in the OSGi applications development.

As we already know Liferay 7 / Liferay DXP is support modular way of application development and Liferay 7 / DXP have used OSGi to achieve that capability.

Therefore, in Liferay 7 / DXP each Liferay Application we can call it as bundle. Liferay customization or adding new features to the portal can be developed as bundles.

OSGi bundle or we can say Liferay Application bundles are packaged jar file with set of java and configuration files and it has followed the OSGi application development specifications. These bundles will be executed in the OSGi containers.

Now Liferay 7 / DXP application development completely based on bundles, it means customization and adding new features.

To develop these bundles Liferay has provided different tools. We use these tools to build and deploy the bundles.


Liferay 7 Application bundles development primarily using following tools

LIFERAY IDE
BLADE CLI
LIFERAY WORKSPACE

Build Tools

Maven
Gradle

LIFERAY IDE

Liferay Inc. always develop its own IDE to develop Liferay Applications. Now Liferay Inc. have developed Eclipse plugin to develop Liferay 7 / DXP OSGi bundles.
Liferay IDE will provide GUI to create Liferay 7 / DXP bundles with two types of build environments

MAVEN BUILD:

Liferay IDE will create Liferay 7 bundles and it will use MAVEN to build and deploy the bundles in the Liferay OSGi environment. We have GUI option to select to build tool while creating Liferay OSGi bundles.

GRADLE BUILD

Liferay IDE also support Gradle based build for Liferay OSGi applications.  People who have good hands on Gradle they can choose Gradle build tool.

Liferay IDE plugins internally use the Bndtools framework to create bundles and Bndtools are specially to develop OSGi bundles. Finally Liferay IDE based in Bndtools framework.
Please follow the below article for more information


To know more about Liferay IDE follow the below link


BLADE CLI

Liferay 7 have introduced new Command Line Interface called BLADE CLI. It’s specially to develop Liferay 7 OSGi bundles and deployed into the OSGi environment.

Bootstrap Liferay Advanced Developer Environments shortly call it as BLADE.

BLADE CLI based on GRADLE build tool and it’s internally use the Bndtools Gradle flavor.

BLADE CLI have set of predefined bundle templates to generated different skeleton liferay bundles.

BLADE CLI have provided set of commands and options to choose these templates and its options.


LIFERAY WORKSPACE

LIFERAY WORKSPACE is managing Liferay applications at one place. Its generated environment to hold set of liferay applications. LIFERAY WORKSPACE is not a tool finally its use the BLADE CLI and GRADLE to build and deploy the applications.

Its Independent environment we can easily move to one place to other place. It means we can easily move from one platform to other platforms.

Liferay Workspace based on OSGi workspace, introduced by enroute project to manage OSGi bundles.


Liferay Workspace holding different Gradle environment properties so that we can easy to deploy into different environments such as DEV, UAT and PROD. These configuration has provided in properties file, while building the application Gradle will pick the given environment properties.

Liferay Workspace have many advantages and follow the below articles to get more information.


LIFERAY SAMPLE MODULES

Liferay 7 have provided sample bundles to the developers to understand Liferay 7 / DXP bundles development. We can BLADE CLI to get those sample bundles then deploy into your portal OSGi environment


Author

Recent Posts

Recent Posts Widget

Popular Posts