使用 Liferay 7.0 建立主題

使用 Liferay 7.0 建立主題

根據文件在 Liferay 7 中建立主題時https://community.liferay.com/forums/-/message_boards/message/113737977

buildtheme成功了,但是運行時buidcss出現以下錯誤,請指教

https://repo1.maven.org/maven2/com/liferay/com.liferay.sass.compiler.api/2.0.1/com.liferay.
sass.compiler.api-2.0.1.jar
Download https://repo1.maven.org/maven2/org/jruby/jruby-complete/9.2.7.0/jruby-complete-9.2.7.0.jar
Was passed main parameter 'sass.dir=/' but no main parameter was defined in your arg class
Usage: java -jar com.liferay.css.builder-3.0.0.jar [options]

Execution failed for task ':wars:cbdrm:buildCSS'.

Process 'command 'C:\Program Files\Java\jdk1.8\bin\java.exe'' finished with non-zero exit
value 1* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option toget more log output.BUILD FAILED 

答案1

Liferay 已將其 css 建構器更新為 3.0.0 版本,但您的 gradle 插件使用的是 2.1.3。因此,透過在依賴項中新增以下行來更新您的 build.gradle 主題:

cssBuilder群組:“com.liferay”,名稱:“com.liferay.css.builder”,版本:“2.1.3”

檢查這個例子

相關內容