Last active
December 9, 2015 06:09
-
-
Save cocoabox/5881ddb38950957cf2e9 to your computer and use it in GitHub Desktop.
vaadin sass compiler を単体で動かせる為の Maven プロジェクトファイルです to create a Vaadin Sass Compiler JAR without any dependencies (;・∀・)
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
| <!-- | |
| HOW TO USE: | |
| 0. https://github.com/vaadin/sass-compiler からソースを取得する | |
| get vaadin sass compiler from above | |
| 1. このファイルで pom.xml を上書きする | |
| overwrite pom.xml with this file | |
| 2. ビルドする $ mvn package | |
| build | |
| 3. 出来上がり $ java -jar target/vaadin-sass-compiler-1.0.0-SNAPSHOT-jar-with-dependencies.jar | |
| done! | |
| --> | |
| <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/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.vaadin</groupId> | |
| <version>1.0.0-SNAPSHOT</version> | |
| <artifactId>vaadin-sass-compiler</artifactId> | |
| <packaging>jar</packaging> | |
| <name>Vaadin Sass Compiler</name> | |
| <inceptionYear>2013</inceptionYear> | |
| <organization> | |
| <name>Vaadin</name> | |
| <url>http://vaadin.com/</url> | |
| </organization> | |
| <url>http://vaadin.com/</url> | |
| <description> | |
| A pure Java implementation of the http://sass-lang.com compiler | |
| </description> | |
| <scm> | |
| <connection>scm:git:https://github.com/vaadin/sass-compiler.git</connection> | |
| <developerConnection>scm:git:ssh://dev.vaadin.com:29418/sass-compiler</developerConnection> | |
| <url>http://github.com/vaadin/sass-compiler</url> | |
| </scm> | |
| <developers> | |
| <developer> | |
| <id>artur</id> | |
| <name>Artur Signell</name> | |
| <email>artur@vaadin.com</email> | |
| </developer> | |
| </developers> | |
| <distributionManagement> | |
| <repository> | |
| <id>vaadin-staging</id> | |
| <name>Sonatype Release</name> | |
| <url>http://oss.sonatype.org/service/local/staging/deploy/maven2</url> | |
| </repository> | |
| <snapshotRepository> | |
| <id>vaadin-snapshots</id> | |
| <name>Vaadin snapshot repository</name> | |
| <url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url> | |
| </snapshotRepository> | |
| </distributionManagement> | |
| <properties> | |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
| <project.organization>Vaadin</project.organization> | |
| <maven.javadoc.failOnError>false</maven.javadoc.failOnError> | |
| </properties> | |
| <licenses> | |
| <license> | |
| <name>Apache License 2.0</name> | |
| <distribution>repo</distribution> | |
| <url>http://www.apache.org/licenses/LICENSE-2.0</url> | |
| </license> | |
| </licenses> | |
| <build> | |
| <resources> | |
| <resource> | |
| <directory>src/main/java</directory> | |
| </resource> | |
| <resource> | |
| <directory>src/main/resources</directory> | |
| </resource> | |
| </resources> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-resources-plugin</artifactId> | |
| <version>2.6</version> | |
| <configuration> | |
| <encoding>UTF-8</encoding> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <version>3.1</version> | |
| <configuration> | |
| <encoding>UTF-8</encoding> | |
| <source>1.6</source> | |
| <target>1.6</target> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-jar-plugin</artifactId> | |
| <version>2.3.1</version> | |
| <configuration> | |
| <archive> | |
| <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> | |
| <index>true</index> | |
| <manifest> | |
| <addClasspath>true</addClasspath> | |
| <!-- Implementation-Title and Implementation-Version | |
| come from the POM by default --> | |
| <addDefaultImplementationEntries>true</addDefaultImplementationEntries> | |
| <!-- by @0xcocoa --> | |
| <mainClass>com.vaadin.sass.SassCompiler</mainClass> | |
| <!-- END: by @0xcocoa --> | |
| </manifest> | |
| </archive> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.felix</groupId> | |
| <artifactId>maven-bundle-plugin</artifactId> | |
| <version>2.4.0</version> | |
| <executions> | |
| <execution> | |
| <id>bundle-manifest</id> | |
| <phase>process-classes</phase> | |
| <goals> | |
| <goal>manifest</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-source-plugin</artifactId> | |
| <version>2.1.2</version> | |
| <executions> | |
| <execution> | |
| <phase>package</phase> | |
| <goals> | |
| <goal>jar</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-javadoc-plugin</artifactId> | |
| <version>2.9.1</version> | |
| <executions> | |
| <execution> | |
| <id>attach-javadocs</id> | |
| <goals> | |
| <goal>jar</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>javacc-maven-plugin</artifactId> | |
| <version>2.6</version> | |
| <executions> | |
| <execution> | |
| <id>javacc</id> | |
| <goals> | |
| <goal>javacc</goal> | |
| </goals> | |
| <configuration> | |
| <includes> | |
| <include>**/*.jj</include> | |
| </includes> | |
| <!-- <lookAhead>2</lookAhead> <isStatic>false</isStatic> --> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-checkstyle-plugin</artifactId> | |
| <version>2.12</version> | |
| <executions> | |
| <execution> | |
| <id>verify-style</id> | |
| <phase>process-classes</phase> | |
| <goals> | |
| <goal>check</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| <configuration> | |
| <configLocation>vaadin-checkstyle.xml</configLocation> | |
| <consoleOutput>true</consoleOutput> | |
| <failsOnError>true</failsOnError> | |
| <linkXRef>false</linkXRef> | |
| </configuration> | |
| </plugin> | |
| <!-- by @0xcocoa --> | |
| <plugin> | |
| <artifactId>maven-assembly-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <phase>package</phase> | |
| <goals> | |
| <goal>single</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| <configuration> | |
| <descriptorRefs> | |
| <descriptorRef>jar-with-dependencies</descriptorRef> | |
| </descriptorRefs> | |
| <archive> | |
| <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> | |
| <index>true</index> | |
| <manifest> | |
| <addClasspath>true</addClasspath> | |
| <!-- Implementation-Title and Implementation-Version | |
| come from the POM by default --> | |
| <addDefaultImplementationEntries>true</addDefaultImplementationEntries> | |
| <mainClass>com.vaadin.sass.SassCompiler</mainClass> | |
| </manifest> | |
| </archive> | |
| </configuration> | |
| </plugin> | |
| <!-- end: by @0xcocoa --> | |
| </plugins> | |
| <pluginManagement> | |
| <plugins> | |
| <plugin> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <version>2.16</version> | |
| <configuration> | |
| <includes> | |
| <include>**/*.java</include> | |
| </includes> | |
| <reuseForks>false</reuseForks> | |
| <excludes> | |
| </excludes> | |
| <systemProperties> | |
| </systemProperties> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </pluginManagement> | |
| </build> | |
| <repositories> | |
| <repository> | |
| <id>Vaadin releases</id> | |
| <url>http://oss.sonatype.org/content/repositories/vaadin-releases</url> | |
| <releases> | |
| <enabled>true</enabled> | |
| </releases> | |
| <snapshots> | |
| <enabled>false</enabled> | |
| </snapshots> | |
| </repository> | |
| <repository> | |
| <id>vaadin-snapshots</id> | |
| <url>http://oss.sonatype.org/content/repositories/vaadin-snapshots</url> | |
| <releases> | |
| <enabled>false</enabled> | |
| </releases> | |
| <snapshots> | |
| <enabled>true</enabled> | |
| </snapshots> | |
| </repository> | |
| </repositories> | |
| <profiles> | |
| <profile> | |
| <id>release</id> | |
| <activation> | |
| <property> | |
| <name>release</name> | |
| <value>true</value> | |
| </property> | |
| </activation> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>properties-maven-plugin</artifactId> | |
| <version>1.0-alpha-2</version> | |
| <executions> | |
| <execution> | |
| <phase>initialize</phase> | |
| <goals> | |
| <goal>read-project-properties</goal> | |
| </goals> | |
| <configuration> | |
| <files> | |
| <file>${gpg.passphrase.file}</file> | |
| </files> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-gpg-plugin</artifactId> | |
| <version>1.4</version> | |
| <executions> | |
| <execution> | |
| <id>sign-artifacts</id> | |
| <phase>verify</phase> | |
| <goals> | |
| <goal>sign</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </profile> | |
| </profiles> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.w3c.css</groupId> | |
| <artifactId>sac</artifactId> | |
| <version>1.3</version> | |
| <scope>compile</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.vaadin.external.flute</groupId> | |
| <artifactId>flute</artifactId> | |
| <version>1.3.0.gg2</version> | |
| <scope>compile</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.yahoo.platform.yui</groupId> | |
| <artifactId>yuicompressor</artifactId> | |
| <version>2.4.8</version> | |
| <scope>compile</scope> | |
| </dependency> | |
| <!-- Testing --> | |
| <dependency> | |
| <groupId>junit</groupId> | |
| <artifactId>junit</artifactId> | |
| <version>4.11</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jsoup</groupId> | |
| <artifactId>jsoup</artifactId> | |
| <version>1.6.3</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>commons-io</groupId> | |
| <artifactId>commons-io</artifactId> | |
| <version>2.2</version> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| </project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment