legacy-knowledge-base
公開されました Jul. 2, 2025

Developer StudioでDXP 7.1テーマをビルドできない。

written-by

Justin Choi

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

この記事は、DXP 7.1でDeveloper Studio 3.3を使用してテーマを構築する際の既知の問題を記録しています。

再現までの手順

  1. Liferay Developer Studio 3.3 を 7.1 のワークスペース・プロジェクトで起動します。
  2. New --> Liferay Module Project にアクセスし、以下のプロパティを設定します:
    1. 名前: umf-v7-theme
    2. Gradle
    3. Liferay 7.1
    4. プロジェクトテンプレート: テーマ
  3. フォルダ umf-v7-theme/src/main/webapp のデフォルトの内容をすべて削除し、プロジェクトの内容をフォルダ umf-v7-theme/src/main/webappに貼り付けてください。
    1. カッシ
    2. 画像
    3. ジェス
    4. テンプレート
    5. WEB-INF
  4. Developer Studioで、テーマプロジェクトを右クリックし、 "Refresh"を選択します。
  5. Gradle Tasksメニューで、テーマのGradle Buildタスクを選択します。

期待される成果

テーマが正常に構築される。

実績

テーマのビルドは以下の例外で失敗します。

Exception in thread "main" com.liferay.sass.compiler.jni.internal.JniSassCompilerException: Error: no mixin named text-overflow

       Backtrace:
           build/buildTheme/css/portlet/_topper.scss:90
        on line 90 of build/buildTheme/css/portlet/_topper.scss
>>     @include text-overflow;
   ----------^

    at com.liferay.sass.compiler.jni.internal.JniSassCompiler.compileFile(JniSassCompiler.java:164)
    at com.liferay.css.builder.CSSBuilder._parseSass(CSSBuilder.java:380)
    at com.liferay.css.builder.CSSBuilder._parseSassFile(CSSBuilder.java:394)
    at com.liferay.css.builder.CSSBuilder.execute(CSSBuilder.java:160)
    at com.liferay.css.builder.CSSBuilder.main(CSSBuilder.java:79)
:wars:class-them:buildCSS FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':wars:class-them:buildCSS'.
> Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.752 secs

解像度

ステータス回避策あり

回避策として考えられるのは、 @import "compat/mixins"; プロパティを src/css/_imports.scssに追加することです。

例として、 https://github.com/liferay/liferay-portal/blob/master/modules/apps/frontend-theme-porygon/frontend-theme-porygon/src/css/_imports.scssをご覧ください。

did-this-article-resolve-your-issue

legacy-knowledge-base