Compass Maven Plugin
Java Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main/java/net/sinsengumi
.gitignore
README.md
mvn-eclipse.bat
mvn-install.bat
pom.xml

README.md

maven-compass-plugin

Overview

Maven plugin to compile in Compass.

This plugin uses Ruby and Sass and Compass. Specifically, please look at the site of Compass.

For execute of this plugin, it is necessary for include Compass program in the PATH.

Usage

<build>
    <plugins>
        ....
        <plugin>
            <groupId>net.sinsengumi</groupId>
            <artifactId>maven-compass-plugin</artifactId>
            <version>0.0.1</version>
            <configuration>
                <config>config.rb</config>
            </configuration>
            <executions>
                <execution>
                    <goals>
                        <goal>compile</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        ....
    </plugins>
</build>

To run the compiler manually just execute: mvn compass:compile

Or can set it individually without using config.rb.

<build>
    <plugins>
        ....
        <plugin>
            <groupId>net.sinsengumi</groupId>
            <artifactId>maven-compass-plugin</artifactId>
            <version>0.0.1</version>
            <configuration>
                <sassDir>src/main/webapp/sass</sassDir>
                <cssDir>src/main/webapp/stylesheets</cssDir>
                <outputStyle>compressed</outputStyle>
            </configuration>
            <executions>
                <execution>
                    <goals>
                        <goal>compile</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        ....
    </plugins>
</build>

Specifically, please watch the manual of Compass.

All configuration options

  • debugInfo (Boolean) - Turns on sass's debuging information.
  • config (File) - Specify the location of the configuration file explicitly.
  • sassDir (File) - The source directory where you keep your sass stylesheets.
  • cssDir (File) - The target directory where you keep your css stylesheets.
  • imagesDir (File) - The directory where you keep your images.
  • javascriptsDir (File) - The directory where you keep your javascripts.
  • fontsDir (File) - The directory where you keep your fonts.
  • environment (String) - Use sensible defaults for your current environment. One of: development (default), production
  • outputStyle (String) - Select a CSS output mode. One of: nested, expanded, compact, compressed
  • noLineComments (Boolean) - Disable line comments.

License

Apache License, Version 2.0
http://www.apache.org/licenses/LICENSE-2.0.txt