Libsass Maven Plugin uses libsass to compile sass files. Uses Jna to interface with C-library.
git clone https://github.com/warmuuh/libsass-maven-plugin.git
cd libsass-maven-plugin
mvn install
Configure plugin in your pom.xml:
<build>
<plugins>
<plugin>
<groupId>wrm</groupId>
<artifactId>libsass-maven-plugin</artifactId>
<version>0.1.0-SNAPSHOT</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<imgPath>../img</imgPath>
<inputPath>${basedir}/src/main/sass/</inputPath>
<outputPath>${basedir}/target/</outputPath>
<includePath>${basedir}/src/main/sass/plugins/</includePath>
</configuration>
</plugin>
</plugins>
</build>
For windows, linux64 and osx, there are binaries included.
For rest: you probably have to compile libsass and add it by using -Djna.library.path=(path to the binary)
MIT License.