Struggling to reference one less file from another using absolute syntax:
Less file A located at
$find `pwd` -name auth0.less
/Users/panos/dcimsupport/struxureon/auth0/src/main/resources/css/auth0.less
imports Less file B
@import '/bootstrap/less/so_colors.less';
Now, so_colors.less is located at
find `pwd` -name so_colors.less
/Users/panos/dcimsupport/struxureon/auth0/src/main/resources/bootstrap/less/so_colors.less
The import fails with
java.io.FileNotFoundException: File /Users/panos/dcimsupport/struxureon/auth0/src/main/resources/css/bootstrap/less/so_colors.less
It seems like lesscss is confined to the css folder. While importing as ../bootstrap/....less would work, navigating up directories isn't ideal. Any alternative solutions? Note that bootstrap cannot be under the css folder.
I've tried both
<groupId>biz.gabrys.maven.plugins</groupId>
<artifactId>lesscss-maven-plugin</artifactId>
and
<groupId>org.lesscss</groupId>
<artifactId>lesscss-maven-plugin</artifactId>
with configurations like
<configuration>
<sourceDirectory>${project.basedir}/src/main/resources</sourceDirectory>
<outputDirectory>${project.basedir}/target/classes/resources</outputDirectory>
<compress>true</compress>
<includes>
<include>css/**/*.less</include>
<include>layouts/**/*.less</include>
<include>page/**/*.less</include>
<include>pages/**/*.less</include>
</includes>