【问题标题】:Maven Theme build Liferay 6.2Maven 主题构建 Liferay 6.2
【发布时间】:2017-11-23 15:09:53
【问题描述】:

我正在尝试使用 Maven 为 Liferay 构建一个主题。 我也可以构建主题,但我想了解更多关于以下内容的信息

[INFO] --- liferay-maven-plugin:6.2.10.13:theme-merge (default) @ my-theme ---
[INFO] Parent theme group ID com.liferay.portal
[INFO] Parent theme artifact ID portal-web
[INFO] Parent theme version 6.2.10.14
[INFO] Parent theme ID _styled
[INFO] Copying html/themes/_unstyled/templates to C:\Dev\GIT_LOCAL_REPO\intranet\test-themes\my-theme\target\my-theme\templates
[INFO] Copying html/themes/_unstyled/css to C:\Dev\GIT_LOCAL_REPO\intranet\test-themes\my-theme\target\my-theme\css
[INFO] Copying html/themes/_unstyled/images to C:\Dev\GIT_LOCAL_REPO\intranet\test-themes\my-theme\target\my-theme\images
[INFO] Copying html/themes/_unstyled/js to C:\Dev\GIT_LOCAL_REPO\intranet\test-themes\my-theme\target\my-theme\js
[INFO] Copying html/themes/_styled/css to C:\Dev\GIT_LOCAL_REPO\intranet\test-themes\my-theme\target\my-theme\css
[INFO] Copying html/themes/_styled/images to C:\Dev\GIT_LOCAL_REPO\intranet\test-themes\my-theme\target\my-theme\images

我想知道 maven 试图从哪个位置复制 unstyle css ("html/themes/_unstyled/css" ) 东西。

这个路径“html/themes/_unstyled/css”属于哪里?

我使用 _style 作为基本主题来开发我的主题。

它没有使用我服务器中的文件,也没有使用我本地 maven 存储库中的战争。

【问题讨论】:

    标签: liferay maven-3 maven-plugin liferay-6


    【解决方案1】:

    我刚刚注意到您使用的是 6.2。

    6.2 插件有一种不同的方法,它们实际上是下载 Liferay 捆绑包或使用您配置的本地插件并从那里加载文件。

    编辑: 这适用于 Liferay 7 Liferay 包含基本主题 _styled 和 _unstield。 _unstiled 包含 FTL 模板,但不提供来自 styled 的基本样式 (css)。

    如果你使用 _styled 作为基础。为样式化和非样式化加载依赖项,并应用它们,如您在日志中所见。该文件应存储在 jar 模块 https://mvnrepository.com/artifact/com.liferay/com.liferay.frontend.theme.unstyledhttps://mvnrepository.com/artifact/com.liferay/com.liferay.frontend.theme.styled 或 npm 模块中 https://www.npmjs.com/package/liferay-frontend-theme-unstyledhttps://www.npmjs.com/package/liferay-frontend-theme-styled

    我不确定 maven 中使用的是哪一个。 Gradle/npm build 使用 npn 包。

    【讨论】:

      猜你喜欢
      • 2018-05-01
      • 2016-06-04
      • 2014-05-25
      • 1970-01-01
      • 1970-01-01
      • 2016-06-06
      • 1970-01-01
      • 2018-10-19
      • 1970-01-01
      相关资源
      最近更新 更多