Jasig/sass-maven-plugin

Compass build does not pick up config.rb

zackarychapple opened this issue · 2 comments

<plugin>
    <groupId>org.jasig.maven</groupId>
    <artifactId>sass-maven-plugin</artifactId>
    <executions>
        <execution>
            <id>sassProcessResources</id>
            <phase>generate-resources</phase>
            <goals>
                <goal>update-stylesheets</goal>
            </goals>
            <configuration>
                <useCompass>true</useCompass>
                <sassSourceDirectory>${basedir}/src/main/scss</sassSourceDirectory>
                <destination>${project.build.outputDirectory}/styleguide-components/resources/css</destination>
            </configuration>
        </execution>
    </executions>
</plugin>

I have a config.rb in the root of my "styleguide" folder which is in the "scss" folder.

If I run compass compile from the command line the config.rb gets picked up and the sprite I am trying to generate gets created as expected, however if I try to update-stylesheets using the maven plugin it fails with the below error.

No files were found in the load path matching "common_icons/*.png". Your current load paths are: ./images

How do I actually get the plugin to pick up the config.rb file?

you may need to move it up a directory or two or use the http://developer.jasig.org/projects/sass-maven-plugin/1.1.1/update-stylesheets-mojo.html#gemPaths option. I think there are some issues with loading code from the classpath mixed with code from local files in jruby.

Does it get picked up when you use sass --compass ...?

can you provide a debug trace of the maven run (using -X)

This version is no longer maintained. Refer to more recent forks at https://github.com/Jasig/sass-maven-plugin/network for more up to date versions.