lesscss-maven-plugin icon indicating copy to clipboard operation
lesscss-maven-plugin copied to clipboard

@import (reference) "foo.less"; fails build with file not found error

Open mikeacook opened this issue 10 years ago • 10 comments

[ERROR] Failed to execute goal org.lesscss:lesscss-maven-plugin:1.7.0.1.0:compile (default) on project test: Error while compiling LESS source: css/test.less: FileError: 'test.less' wasn't found in /var/folders/gr/vx891bvn2g7ds11njbzlnqf80000gn/T/tmp8429192458404082989less.tmp on line 1931, column 1: ...

@import (reference) works just fine when using the javascript version of LESS on my pages, but when trying to build through lesscss-maven-plugin I get file not found errors. Is this intended to work, or is this unsupported by the plugin?

mikeacook avatar May 28 '14 17:05 mikeacook

I'm also seeing the same issue.

chrylis avatar Jul 01 '14 11:07 chrylis

Same issue here.

julienmellerin avatar Aug 31 '14 10:08 julienmellerin

+1

rbarato avatar Oct 01 '14 19:10 rbarato

Mee too. Local JS compiling works. Multiple Imports fail. Removing the multiple, (what I need) works

polent avatar Jan 27 '15 12:01 polent

:question: Any movement on this? I am also seeing the same issue :(

isuftin avatar May 07 '15 18:05 isuftin

Seems like this plugin is abandoned.. I gave it a try to update the less compile and then submit a merge request but my java skills didn't help so I went to a different solution and started using Grunt to compile LESS.

rbarato avatar May 08 '15 12:05 rbarato

8 pull requests, 45 open issues, no merges for almost a year? @rbarato you may be right :cry:

Unfortunately, I still need a compile-time processor to include CSS in our web app artifacts.

isuftin avatar May 08 '15 12:05 isuftin

@isuftin I had to change a little our projects architecture to fit grunt tasks inside it but it worked fine, afterwards grunt became useful for other stuff that initially I thought it couldn't be done in a Java project.

rbarato avatar May 08 '15 14:05 rbarato

I've rolled over to using Mimosa and just calling out from the Maven build. It seems that the consensus is forming to just use a native toolchain for the HTML/CSS/JS bits and use exec-maven-plugin to run it.

chrylis avatar May 08 '15 21:05 chrylis

The problem with imports is caused by "incorrect manual processing". I noticed that the plugin is not developed for a long time, so I wrote my own (https://github.com/gabrysbiz/lesscss-maven-plugin). I currently work only on documentation (I will release it in 2-3 weeks). I'll be grateful for any comments.

Ps. Marcel sorry for advertising my plugin on your site.

agabrys avatar Jun 28 '15 16:06 agabrys