What's New for Maven Users

Liferay Portal 7.0+ and Liferay DXP fully support Maven development and offers several new and improved features:

The new archetype com.liferay.project.templates.workspace generates a Liferay Workspace that includes a POM file for developing in Workspace using Maven. You can develop modules and themes in the Workspace subfolders.

Liferay DXP 7.1 provides many new Maven archetypes for various Liferay module projects. There are over thirty Maven archetypes for Liferay DXP 7.1, and more are in development. Here are some popular ones:

  • Configuration Icons
  • Fragments
  • Menu Buttons
  • Portlets
    • MVC
    • npm
    • Soy
    • Spring MVC
  • Service Builder
  • Themes
  • etc…

Liferay’s Maven archetypes cover many different Liferay frameworks and service types. These make Maven a first-class tool for creating Liferay modules and themes. Visit the Generating New Projects Using Archetypes tutorial to learn more about Liferay’s Maven archetypes and how to use them.

Liferay also provides several new and updated Maven plugins that simplify the build process. For example, the following plugins build style sheets, services, and themes respectively:

Liferay DXP 7.1’s modularity provides a more granular dependency management experience. You no longer need to depend on portal-impl or portal-service (now portal-kernel) for everything. For example, to use Liferay DXP’s Wiki framework, you need only depend on the Wiki module. You set dependencies on concise modules that provide the functionality you want without inheriting extra baggage.

Liferay’s new Workspace environment, Maven archetypes, Maven plugins, and streamlined modules make developing on Liferay DXP easier than ever. To learn more, see the Maven tutorials.

« Developing Modules with Liferay WorkspaceUsing Other Build Systems and IDEs »
¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0