Last active
August 2, 2016 14:28
-
-
Save mkristian/1671207 to your computer and use it in GitHub Desktop.
using gem-maven-plugin to compass compile or execute sass. sass with gem dependency within plugin and compass with global compile dependency (which is also added to the java-classpath and not so nice)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<project | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | |
xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.example</groupId> | |
<artifactId>example</artifactId> | |
<version>0.0.36</version> | |
<repositories> | |
<repository> | |
<id>rubygems-releases</id> | |
<url>http://rubygems-proxy.torquebox.org/releases</url> | |
</repository> | |
</repositories> | |
<dependencies> | |
<dependency> | |
<groupId>rubygems</groupId> | |
<artifactId>compass</artifactId> | |
<version>0.11.7</version> | |
<type>gem</type> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>de.saumya.mojo</groupId> | |
<artifactId>gem-maven-plugin</artifactId> | |
<version>0.29.4</version> | |
<extensions>true</extensions> | |
<executions> | |
<execution> | |
<goals> | |
<goal>exec</goal> | |
</goals> | |
<phase>compile</phase> | |
</execution> | |
</executions> | |
<configuration> | |
<!--jrubyVersion>1.7.2</jrubyVersion--> | |
<execArgs>${project.build.directory}/rubygems/bin/compass compile ${basedir}/src/main/sass</execArgs> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<project | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | |
xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.example</groupId> | |
<artifactId>example</artifactId> | |
<version>0.0.36</version> | |
<pluginRepositories> | |
<pluginRepository> | |
<id>rubygems-releases</id> | |
<url>http://rubygems-proxy.torquebox.org/releases</url> | |
</pluginRepository> | |
</pluginRepositories> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>de.saumya.mojo</groupId> | |
<artifactId>gem-maven-plugin</artifactId> | |
<version>0.29.4</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>exec</goal> | |
</goals> | |
<phase>process-resources</phase> | |
<configuration> | |
<jrubyVersion>1.7.2</jrubyVersion> | |
<execArgs>${project.build.directory}/rubygems/bin/sass --update ${basedir}/src/main/sass</execArgs> | |
</configuration> | |
</execution> | |
</executions> | |
<dependencies> | |
<dependency> | |
<groupId>rubygems</groupId> | |
<artifactId>sass</artifactId> | |
<version>3.2.5</version> | |
<type>gem</type> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Hi There, I am trying to specify my includes directory like I do using compass but maven seems to be failing with the following error "Error: invalid option: -I" are includes not supported with this plugin?
Here is what I am doing, maybe I am not doing it right
<execArgs> ${project.build.directory}/rubygems/bin/compass compile --sass-dir ${basedir}/src/SCSS/stylesheets --css-dir ${basedir}/target/CSS -I ${basedir}/src/SCSS/includes </execArgs>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hoops - never saw any notification on those comments.
@gastonfournler yes - that plugin needs maven3 ;)
@Mhsh still problems ? I can not help you with sass but on how to add a config file. windows is also a bit of problem for me