Created
June 12, 2014 10:38
-
-
Save cheets/edc203d51bab855b14dc to your computer and use it in GitHub Desktop.
Using rubygems to compile compass/sass with maven
This file contains 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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.arcusys</groupId> | |
<artifactId>theme</artifactId> | |
<packaging>war</packaging> | |
<name>theme Theme</name> | |
<version>1.0-SNAPSHOT</version> | |
<build> | |
<finalName>${project.artifactId}</finalName> | |
<plugins> | |
<plugin> | |
<groupId>de.saumya.mojo</groupId> | |
<artifactId>gem-maven-plugin</artifactId> | |
<version>1.0.2</version> | |
<executions> | |
<execution> | |
<id>compass-compile</id> | |
<goals> | |
<goal>exec</goal> | |
</goals> | |
<phase>generate-sources</phase> | |
<configuration> | |
<execArgs>${project.build.directory}/rubygems/bin/compass compile | |
--sass-dir ${basedir}/src/main/resources/bootstrap/ --boring | |
--css-dir ${basedir}/src/main/webapp/css/ --time ${compass.options} | |
</execArgs> | |
</configuration> | |
</execution> | |
</executions> | |
<dependencies> | |
<dependency> | |
<groupId>rubygems</groupId> | |
<artifactId>compass</artifactId> | |
<version>0.12.6</version> | |
<type>gem</type> | |
</dependency> | |
</dependencies> | |
</plugin> | |
<plugin> | |
<groupId>com.liferay.maven.plugins</groupId> | |
<artifactId>liferay-maven-plugin</artifactId> | |
<version>${liferay.version}</version> | |
<executions> | |
<execution> | |
<phase>generate-sources</phase> | |
<goals> | |
<!--<goal>build-css</goal> remove this to disable Liferay's SASS compiler--> | |
<goal>theme-merge</goal> | |
<goal>build-thumbnail</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<autoDeployDir>${liferay.auto.deploy.dir}</autoDeployDir> | |
<appServerDeployDir>${liferay.app.server.deploy.dir}</appServerDeployDir> | |
<appServerLibGlobalDir>${liferay.app.server.lib.global.dir}</appServerLibGlobalDir> | |
<appServerPortalDir>${liferay.app.server.portal.dir}</appServerPortalDir> | |
<liferayVersion>${liferay.version}</liferayVersion> | |
<parentTheme>${liferay.theme.parent}</parentTheme> | |
<pluginType>theme</pluginType> | |
<themeType>${liferay.theme.type}</themeType> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-resources-plugin</artifactId> | |
<version>2.6</version> | |
<configuration> | |
<encoding>UTF-8</encoding> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>com.liferay.portal</groupId> | |
<artifactId>portal-service</artifactId> | |
<version>${liferay.version}</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>com.liferay.portal</groupId> | |
<artifactId>util-bridges</artifactId> | |
<version>${liferay.version}</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>com.liferay.portal</groupId> | |
<artifactId>util-taglib</artifactId> | |
<version>${liferay.version}</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>com.liferay.portal</groupId> | |
<artifactId>util-java</artifactId> | |
<version>${liferay.version}</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>javax.portlet</groupId> | |
<artifactId>portlet-api</artifactId> | |
<version>2.0</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>javax.servlet</groupId> | |
<artifactId>servlet-api</artifactId> | |
<version>2.4</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>javax.servlet.jsp</groupId> | |
<artifactId>jsp-api</artifactId> | |
<version>2.0</version> | |
<scope>provided</scope> | |
</dependency> | |
</dependencies> | |
<profiles> | |
<profile> | |
<id>development</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<properties> | |
<compass.options>-e development</compass.options> | |
</properties> | |
</profile> | |
<profile> | |
<id>production</id> | |
<properties> | |
<compass.options>-e production --force</compass.options> | |
</properties> | |
</profile> | |
</profiles> | |
<properties> | |
<liferay.auto.deploy.dir>../bundles/deploy</liferay.auto.deploy.dir> | |
<liferay.version>6.1.30</liferay.version> | |
<liferay.theme.parent>_styled</liferay.theme.parent> | |
<liferay.theme.type>ftl</liferay.theme.type> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
</properties> | |
<repositories> | |
<repository> | |
<id>rubygems-release</id> | |
<url>http://rubygems-proxy.torquebox.org/releases</url> | |
</repository> | |
</repositories> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment