0

zkless-engine-maven-plugin problem

asked 2018-04-23 21:42:18 +0800

hf gravatar image hf
0

Hi everyone,

I would like use custom theme for my zk 8.5.0 webapp. I have create a Maven project from org.zkoss.zk-archetype-theme v. 8.5.0, but when I run mvn clean and mvn install I have this error:

[ERROR] ParseError: Unrecognised input in C:\Users\NSCARC~1\AppData\Local\Temp\tempgen1524490180308\archive\web\nico\zul\less\norm.less on line 2, column 102: 1 @import "C:/Users/NSCARC~1/AppData/Local/Temp/tempgen1524490180308/archive/web/nico/zul/less/header.less"; 2 @import "C:/Users/NSCARC~1/AppData/Local/Temp/tempgen1524490180308/archive/web/zul/less/reset.less";"; 3 @import "C:/Users/NSCARC~1/AppData/Local/Temp/tempgen1524490180308/archive/web/zul/less/font/all.less";"; // Font-Awesome 3.1.1 org.zkoss.maven.ZKLesscException: ParseError: Unrecognised input in C:\Users\NSCARC~1\AppData\Local\Temp\tempgen1524490180308\archive\web\nico\zul\less\norm.less on line 2, column 102: 1 @import "C:/Users/NSCARC~1/AppData/Local/Temp/tempgen1524490180308/archive/web/nico/zul/less/header.less"; 2 @import "C:/Users/NSCARC~1/AppData/Local/Temp/tempgen1524490180308/archive/web/zul/less/reset.less";"; 3 @import "C:/Users/NSCARC~1/AppData/Local/Temp/tempgen1524490180308/archive/web/zul/less/font/all.less";"; // Font-Awesome 3.1.1 at org.zkoss.maven.ZKLessEngine.compileLess(ZKLessEngine.java:176) at org.zkoss.maven.ZKLessCompilerMojo.compileFromFolder(ZKLessCompilerMojo.java:248) at org.zkoss.maven.ZKLessCompilerMojo.execute(ZKLessCompilerMojo.java:173) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

I think the problem is that plugin doesn't load less file from classpath.

Any helps?

Thanks

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-05-04 18:18:24 +0800

cor3000 gravatar image cor3000
4158 1 7
ZK Team

as mentioned in this article the new and recommended way to build a custom theme is based on the zkThemeTemplate repository (allowing git supported upgrading to newer ZK versions)

If you follow the steps you'll get a custom theme in no time.

  • install nodejs / lessc
  • clone the repo
  • execute ./init.js
  • build with maven mvn clean package
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2018-04-23 21:42:18 +0800

Seen: 5 times

Last updated: May 04

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More