Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

How I can use @import from classpath? #72

Open
SergeiSaraev opened this issue Mar 2, 2015 · 2 comments
Open

How I can use @import from classpath? #72

SergeiSaraev opened this issue Mar 2, 2015 · 2 comments

Comments

@SergeiSaraev
Copy link

Hi.

Created a Maven module A, where the source files (less) are collected in sources.jar.
Module A is added as a dependency of module B.
Tried to import the module A from the module B:

@import "classpath:themes/module-a/styles/main.less";

Get an error like this:

...\moduleB\src\main\less\themes\module-b\styles\main.less [0:0]: Error compiling LESS source
java.io.IOException: Resource ...\moduleB\src\main\less\themes\module-b\styles\classpath:themes\module-a\styles\main.less not found.

How to import less from other modules?

@SergeiSaraev
Copy link
Author

Solution with classpath saw here:
asual/lesscss-engine#28
But not work for lesscss-maven-plugin.

@agabrys
Copy link

agabrys commented Oct 26, 2015

It will be supported when this (lesscss-java #62) will be done (probably never).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants