legacy-knowledge-base
公開されました Jun. 30, 2025

Liferay Mavenワークスペースでのテーマの作成とビルド

written-by

Balázs Létai

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Liferay Maven Workspaceでテーマを作成し、ビルドしたい。

環境

  • Liferay DXP 7.3
  • Liferay DXP 7.4

解像度

  • 前提条件 https://learn.liferay.com/web/guest/w/dxp/building-applications/tooling/blade-cli
  • チェック バージョン互換性マトリックス
  • 手順に従ってください:
    1. 新しいワークスペースを作成した。 例 Liferay 7.4 Update 92 用 blade init -b maven -v 7.4.13.u92
    2. cd themes ワークスペースのthemesフォルダに移動する。
    3. 利用可能なテンプレートはblade create -lで一覧表示できます。
    4. 既成のテンプレートから新しいテーマを作成する。 blade create -t theme themeName
    5. 必要に応じて生成されたソースコードを変更したり、独自のCSS、Javascript、Freemarkerテンプレート、設定などを追加してください。
    6. テーマのフォルダから mvnclean package というコマンドを実行した。
    7. デプロイ可能なバージョンをwarファイルとしてターゲット・フォルダーに見つける。
did-this-article-resolve-your-issue

legacy-knowledge-base