Message Boards
自定义Theme部署失败
自定义一个_styled的theme,未做修改直接双击deploy部署时出现以下异常。
谁能帮忙解决以下,谢谢!!!
Buildfile: E:\liferay\liferay-plugins-sdk-7.0\themes\myTheme-theme\build.xml
deploy:
[copy] Copying 1099 files to E:\liferay\liferay-plugins-sdk-7.0\themes\myTheme-theme\docroot
[copy] Copying 6 files to E:\liferay\liferay-plugins-sdk-7.0\themes\myTheme-theme\docroot\templates
[copy] Copying 127 files to E:\liferay\liferay-plugins-sdk-7.0\themes\myTheme-theme\docroot
[java] Java Result: 1
[echo] Using native Sass compiler
[echo] Exception in thread "main" com.liferay.sass.compiler.jni.internal.JniSassCompilerException: com.liferay.sass.compiler.jni.internal.JniSassCompilerException: Error: file to import not found or unreadable: bourbon
[echo] Current dir: E:/liferay/liferay-plugins-sdk-7.0/themes/myTheme-theme/docroot/css/aui/lexicon/
[echo] on line 17 of docroot/css/aui/lexicon/lexicon-base.scss
[echo] >> @import "bourbon";
[echo] --------^
[echo] at com.liferay.sass.compiler.jni.internal.JniSassCompiler.compileString(JniSassCompiler.java:214)
[echo] at com.liferay.css.builder.CSSBuilder._parseSass(CSSBuilder.java:333)
[echo] at com.liferay.css.builder.CSSBuilder._addSassString(CSSBuilder.java:160)
[echo] at com.liferay.css.builder.CSSBuilder._parseSassFile(CSSBuilder.java:434)
[echo] at com.liferay.css.builder.CSSBuilder._build(CSSBuilder.java:182)
[echo] at com.liferay.css.builder.CSSBuilder.execute(CSSBuilder.java:128)
[echo] at com.liferay.css.builder.CSSBuilder.main(CSSBuilder.java:97)
[echo] Caused by: com.liferay.sass.compiler.jni.internal.JniSassCompilerException: Error: file to import not found or unreadable: bourbon
[echo] Current dir: E:/liferay/liferay-plugins-sdk-7.0/themes/myTheme-theme/docroot/css/aui/lexicon/
[echo] on line 17 of docroot/css/aui/lexicon/lexicon-base.scss
[echo] >> @import "bourbon";
[echo] --------^
[echo] at com.liferay.sass.compiler.jni.internal.JniSassCompiler.compileFile(JniSassCompiler.java:102)
[echo] at com.liferay.sass.compiler.jni.internal.JniSassCompiler.compileString(JniSassCompiler.java:193)
[echo] ... 6 more
BUILD FAILED
E:\liferay\liferay-plugins-sdk-7.0\build-common.xml:3411: The following error occurred while executing this line:
: The following error occurred while executing this line:
E:\liferay\liferay-plugins-sdk-7.0\build-common.xml:1468: The following error occurred while executing this line:
: The following error occurred while executing this line:
E:\liferay\liferay-plugins-sdk-7.0\build-common.xml:3079: The following error occurred while executing this line:
E:\liferay\liferay-plugins-sdk-7.0\build-common.xml:197: Sass to CSS Builder generated exceptions.
Total time: 3 seconds
谁能帮忙解决以下,谢谢!!!
Andy Wu, modified 7 Years ago.
RE: 自定义Theme部署失败
Regular Member Posts: 195 Join Date: 5/5/15 Recent Posts
你好,欢迎使用liferay portal 7.0 , 现在的7.0-sdk不支持创建theme(虽然还有themes文件夹),如果想创建7.0的theme,可以参考以下方式:
1.https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/themes-generator,
2.使用最新的liferay-ide 3.1 m3 (https://web.liferay.com/downloads/liferay-projects/liferay-ide)创建gradle/maven 类型的theme
(https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/creating-themes-with-liferay-ide)
3.使用命令行工具blade创建,参考https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/theme-template
1.https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/themes-generator,
2.使用最新的liferay-ide 3.1 m3 (https://web.liferay.com/downloads/liferay-projects/liferay-ide)创建gradle/maven 类型的theme
(https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/creating-themes-with-liferay-ide)
3.使用命令行工具blade创建,参考https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/theme-template