Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<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>net.sourceforge.cssparser</groupId>
    <artifactId>cssparser</artifactId>
    <version>0.9.9</version>
    <name>CSS Parser</name>
    <url>http://cssparser.sourceforge.net/</url>
    <description>A CSS parser which implements SAC (the Simple API for CSS).</description>
    <licenses>
        <license>
            <name>GNU Lesser General Public License</name>
            <url>http://www.gnu.org/licenses/lgpl.txt</url>
        </license>
    </licenses>
    <issueManagement>
        <system>SourceForge</system>
        <url>http://sourceforge.net/p/cssparser/bugs/</url>
    </issueManagement>
    <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>7</version>
    </parent>
    <scm>
        <connection>scm:svn:svn://alankrueger@svn.code.sf.net/p/cssparser/code/tags/cssparser-0.9.9</connection>
        <developerConnection>scm:svn:svn+ssh://alankrueger@svn.code.sf.net/p/cssparser/code/tags/cssparser-0.9.9</developerConnection>
        <url>http://svn.code.sf.net/p/cssparser/code/tags/cssparser-0.9.9</url>
    </scm>
    <build>
        <plugins>
            <plugin>
                <!-- set Java 5 as the minimum requirement -->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.0</version>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            <plugin>
                <!-- generate parsers and lexers before compiling -->
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>javacc-maven-plugin</artifactId>
                <version>2.6</version>
                <executions>
                    <execution>
                        <id>javacc</id>
                        <goals>
                            <goal>javacc</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.google.code.maven-replacer-plugin</groupId>
                <artifactId>replacer</artifactId>
                <version>1.5.2</version>
                <executions>
                    <execution>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>replace</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <includes>
                        <include>target/generated-sources/javacc/com/steadystate/css/parser/SACParserCSSmobileOKBasic1.java</include>
                        <include>target/generated-sources/javacc/com/steadystate/css/parser/SACParserCSSmobileOKBasic1TokenManager.java</include>

                        <include>target/generated-sources/javacc/com/steadystate/css/parser/SACParserCSS1.java</include>
                        <include>target/generated-sources/javacc/com/steadystate/css/parser/SACParserCSS1TokenManager.java</include>

                        <include>target/generated-sources/javacc/com/steadystate/css/parser/SACParserCSS2.java</include>
                        <include>target/generated-sources/javacc/com/steadystate/css/parser/SACParserCSS2TokenManager.java</include>

                        <include>target/generated-sources/javacc/com/steadystate/css/parser/SACParserCSS21.java</include>
                        <include>target/generated-sources/javacc/com/steadystate/css/parser/SACParserCSS21TokenManager.java</include>

                        <include>target/generated-sources/javacc/com/steadystate/css/parser/SACParserCSS3.java</include>
                        <include>target/generated-sources/javacc/com/steadystate/css/parser/SACParserCSS3TokenManager.java</include>

                        <include>target/generated-sources/javacc/com/steadystate/css/parser/Token.java</include>
                        <include>target/generated-sources/javacc/com/steadystate/css/parser/TokenMgrError.java</include>
                    </includes>
                    <regex>true</regex>
                    <regexFlags>
                        <regexFlag>MULTILINE</regexFlag>
                    </regexFlags>
                    <replacements>
                        <replacement>
                            <token>^public class</token>
                            <value>@SuppressWarnings("all") public class</value>
                        </replacement>
                    </replacements>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>2.9.1</version>
                <configuration>
                    <configLocation>checkstyle.xml</configLocation>
                    <includeTestSourceDirectory>true</includeTestSourceDirectory>
                    <consoleOutput>true</consoleOutput>
                    <failsOnError>true</failsOnError>
                    <propertyExpansion>
                        checkstyle.suppressions.file=checkstyle_suppressions.xml
                        checkstyle.header.file=LICENSE.txt
                    </propertyExpansion>
                </configuration>
            </plugin>
            <plugin>
                <!-- always generate a source JAR -->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.2.1</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-eclipse-plugin</artifactId>
                <version>2.9</version>
                <configuration>
                    <downloadSources>true</downloadSources>
                    <downloadJavadocs>true</downloadJavadocs>
                    <additionalBuildcommands>
                        <buildcommand>net.sf.eclipsecs.core.CheckstyleBuilder</buildcommand>
                    </additionalBuildcommands>
                    <additionalProjectnatures>
                        <projectnature>net.sf.eclipsecs.core.CheckstyleNature</projectnature>
                    </additionalProjectnatures>
                    <additionalConfig>
                        <file>
                            <name>.checkstyle</name>
                            <content>
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
  <local-check-config name="CSS Parser" location="checkstyle.xml" type="project" description="">
    <property name="checkstyle.suppressions.file" value="$${project_loc}/checkstyle_suppressions.xml" />
    <property name="checkstyle.header.file" value="$${project_loc}/LICENSE.txt" />
    <additional-data name="protect-config-file" value="false" />
  </local-check-config>
  <fileset name="all" enabled="true" check-config-name="CSS Parser" local="true">
    <file-match-pattern match-pattern="." include-pattern="true" />
  </fileset>
  <filter name="NonSrcDirs" enabled="true" />
</fileset-config>
]]>
                            </content>
                        </file>
                    </additionalConfig>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.4</version>
            </plugin>
        </plugins>
    </build>
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-changes-plugin</artifactId>
                <version>2.8</version>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>changes-report</report>
                        </reports>
                    </reportSet>
                </reportSets>
                <configuration>
                    <issueLinkTemplate>%URL%?group_id=82996&amp;func=detail&amp;atid=567969&amp;aid=%ISSUE%</issueLinkTemplate>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.9</version>
                <configuration>
                    <links>
                        <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
                        <link>http://www.w3.org/Style/CSS/SAC/doc/</link>
                    </links>
                </configuration>
            </plugin>
        </plugins>
    </reporting>
    <dependencies>
        <dependency>
            <groupId>org.w3c.css</groupId>
            <artifactId>sac</artifactId>
            <version>1.3</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>
New to GrepCode? Check out our FAQ X