/samples/scalate-sample-precompile/pom.xml
XML | 179 lines | 112 code | 20 blank | 47 comment | 0 complexity | 04e1110d6b418468e236492e5a4f9b7e MD5 | raw file
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Copyright (C) 2009-2011 the original author or authors.
- See the notice.md file distributed with this work for additional
- information regarding copyright ownership.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
- <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>
- <parent>
- <groupId>org.scalatra.scalate.samples</groupId>
- <artifactId>samples_2.10</artifactId>
- <version>1.7.2-SNAPSHOT</version>
- </parent>
-
- <artifactId>scalate-sample-precompile_2.10</artifactId>
- <packaging>war</packaging>
- <name>${project.artifactId}</name>
- <description>Scalate Precompile Sample Web Application</description>
- <properties>
- <netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.scalatra.scalate</groupId>
- <artifactId>scalate-war_2.10</artifactId>
- <version>${project.version}</version>
- <type>war</type>
- </dependency>
- <!-- lets exclude the compiler from the WAR -->
- <dependency>
- <groupId>org.scala-lang</groupId>
- <artifactId>scala-compiler</artifactId>
- <version>${scala-version}</version>
- <scope>provided</scope>
- </dependency>
- <!--
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.scalatra.scalate</groupId>
- <artifactId>scalate-page_2.10</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.markdownj</groupId>
- <artifactId>markdownj</artifactId>
- </dependency>
- <dependency>
- <groupId>com.sun.jersey</groupId>
- <artifactId>jersey-server</artifactId>
- </dependency>
- <dependency>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-classic</artifactId>
- </dependency>
- -->
- <!-- testing -->
- <dependency>
- <groupId>org.scalatra.scalate</groupId>
- <artifactId>scalate-test_2.10</artifactId>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <inherited>true</inherited>
- <artifactId>maven-source-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>${surefire-plugin-version}</version>
- <configuration>
- <forkMode>once</forkMode>
- <!-- these settings are mandatory to avoid SureFire giving a bogus system property to the web container -->
- <useSystemClassLoader>false</useSystemClassLoader>
- <useManifestOnlyJar>false</useManifestOnlyJar>
- <includes>
- <include>**/*Test.*</include>
- </includes>
- <excludes>
- <exclude>**/QueuesTest.*</exclude>
- <exclude>**/htmlunit/**.*</exclude>
- </excludes>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-war-plugin</artifactId>
- </plugin>
-
- <plugin>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>jetty-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.1.1</version>
- <executions>
- <execution>
- <goals>
- <goal>java</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <classpathScope>test</classpathScope>
- <mainClass>org.scalatra.scalate.test.Main</mainClass>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <profiles>
- <profile>
- <id>jdk5</id>
- <activation>
- <jdk>1.5</jdk>
- </activation>
-
- <build>
- <plugins>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <excludes>
- <!-- Jersey requires Java 1.6, so this test will fail. -->
- <exclude>**/SampleTest.*</exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
- </project>