PageRenderTime 18ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/samples/scalate-sample-precompile/pom.xml

http://github.com/scalate/scalate
XML | 179 lines | 112 code | 20 blank | 47 comment | 0 complexity | 04e1110d6b418468e236492e5a4f9b7e MD5 | raw file
  1<?xml version="1.0" encoding="UTF-8"?>
  2<!--
  3
  4    Copyright (C) 2009-2011 the original author or authors.
  5    See the notice.md file distributed with this work for additional
  6    information regarding copyright ownership.
  7
  8    Licensed under the Apache License, Version 2.0 (the "License");
  9    you may not use this file except in compliance with the License.
 10    You may obtain a copy of the License at
 11
 12        http://www.apache.org/licenses/LICENSE-2.0
 13
 14    Unless required by applicable law or agreed to in writing, software
 15    distributed under the License is distributed on an "AS IS" BASIS,
 16    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 17    See the License for the specific language governing permissions and
 18    limitations under the License.
 19
 20-->
 21<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">
 22  <modelVersion>4.0.0</modelVersion>
 23  <parent>
 24    <groupId>org.scalatra.scalate.samples</groupId>
 25    <artifactId>samples_2.10</artifactId>
 26    <version>1.7.2-SNAPSHOT</version>
 27  </parent>
 28  
 29  <artifactId>scalate-sample-precompile_2.10</artifactId>
 30  <packaging>war</packaging>
 31
 32  <name>${project.artifactId}</name>
 33  <description>Scalate Precompile Sample Web Application</description>
 34
 35  <properties>
 36    <netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server>
 37  </properties>
 38
 39  <dependencies>
 40    <dependency>
 41      <groupId>org.scalatra.scalate</groupId>
 42      <artifactId>scalate-war_2.10</artifactId>
 43      <version>${project.version}</version>
 44      <type>war</type>
 45    </dependency>
 46
 47    <!-- lets exclude the compiler from the WAR -->
 48    <dependency>
 49      <groupId>org.scala-lang</groupId>
 50      <artifactId>scala-compiler</artifactId>
 51      <version>${scala-version}</version>
 52      <scope>provided</scope>
 53    </dependency>
 54
 55<!--
 56    <dependency>
 57      <groupId>javax.servlet</groupId>
 58      <artifactId>servlet-api</artifactId>
 59      <scope>provided</scope>
 60    </dependency>
 61    <dependency>
 62      <groupId>org.scalatra.scalate</groupId>
 63      <artifactId>scalate-page_2.10</artifactId>
 64      <version>${project.version}</version>
 65    </dependency>
 66    <dependency>
 67      <groupId>org.markdownj</groupId>
 68      <artifactId>markdownj</artifactId>
 69    </dependency>
 70    <dependency>
 71      <groupId>com.sun.jersey</groupId>
 72      <artifactId>jersey-server</artifactId>
 73    </dependency>
 74    <dependency>
 75      <groupId>ch.qos.logback</groupId>
 76      <artifactId>logback-classic</artifactId>
 77    </dependency>
 78-->
 79
 80
 81    <!-- testing -->
 82    <dependency>
 83      <groupId>org.scalatra.scalate</groupId>
 84      <artifactId>scalate-test_2.10</artifactId>
 85      <version>${project.version}</version>
 86      <scope>test</scope>
 87    </dependency>
 88  </dependencies>
 89
 90  <build>
 91    <plugins>
 92      <plugin>
 93        <inherited>true</inherited>
 94        <artifactId>maven-source-plugin</artifactId>
 95        <executions>
 96          <execution>
 97            <id>attach-sources</id>
 98            <goals>
 99              <goal>jar</goal>
100            </goals>
101          </execution>
102        </executions>
103      </plugin>
104
105      <plugin>
106        <artifactId>maven-surefire-plugin</artifactId>
107        <version>${surefire-plugin-version}</version>
108        <configuration>
109          <forkMode>once</forkMode>
110          <!-- these settings are mandatory to avoid SureFire giving a bogus system property to the web container -->
111          <useSystemClassLoader>false</useSystemClassLoader>
112          <useManifestOnlyJar>false</useManifestOnlyJar>
113          <includes>
114            <include>**/*Test.*</include>
115          </includes>
116          <excludes>
117            <exclude>**/QueuesTest.*</exclude>
118            <exclude>**/htmlunit/**.*</exclude>
119          </excludes>
120        </configuration>
121      </plugin>
122
123
124      <plugin>
125        <artifactId>maven-war-plugin</artifactId>
126      </plugin>
127      
128      <plugin>
129        <groupId>org.mortbay.jetty</groupId>
130        <artifactId>jetty-maven-plugin</artifactId>
131      </plugin>
132
133      <plugin>
134        <groupId>org.codehaus.mojo</groupId>
135        <artifactId>exec-maven-plugin</artifactId>
136        <version>1.1.1</version>
137        <executions>
138          <execution>
139            <goals>
140              <goal>java</goal>
141            </goals>
142          </execution>
143        </executions>
144        <configuration>
145          <classpathScope>test</classpathScope>
146          <mainClass>org.scalatra.scalate.test.Main</mainClass>
147        </configuration>
148      </plugin>
149    </plugins>
150  </build>
151  
152  <profiles>
153    <profile>
154      <id>jdk5</id>
155      <activation>
156        <jdk>1.5</jdk>
157      </activation>
158      
159      <build>
160        <plugins>
161          
162          <plugin>
163            <groupId>org.apache.maven.plugins</groupId>
164            <artifactId>maven-surefire-plugin</artifactId>
165            <configuration>
166              <excludes>
167                <!-- Jersey requires Java 1.6, so this test will fail. -->
168                <exclude>**/SampleTest.*</exclude>
169              </excludes>
170            </configuration>
171          </plugin>          
172
173        </plugins>
174      </build>
175    </profile>
176  </profiles>
177    
178</project>
179