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
Share on Google Plus

About Meera Prince

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment