PageRenderTime 19ms CodeModel.GetById 11ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/scalate-war/pom.xml

http://github.com/scalate/scalate
XML | 164 lines | 118 code | 23 blank | 23 comment | 0 complexity | 0bd2410397772726989d822becd7095c 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</groupId>
 25    <artifactId>scalate-project_2.10</artifactId>
 26    <version>1.7.2-SNAPSHOT</version>
 27  </parent>
 28
 29  <artifactId>scalate-war_2.10</artifactId>
 30  <packaging>war</packaging>
 31
 32  <name>${project.artifactId}</name>
 33  <description>Scalate Base 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-web_2.10</artifactId>
 43      <version>${project.version}</version>
 44      <type>pom</type>
 45    </dependency>
 46
 47    <dependency>
 48      <groupId>com.sun.jersey</groupId>
 49      <artifactId>jersey-server</artifactId>
 50    </dependency>
 51
 52    <dependency>
 53      <groupId>ch.qos.logback</groupId>
 54      <artifactId>logback-classic</artifactId>
 55      <scope>runtime</scope>
 56      <optional>true</optional>
 57    </dependency>
 58
 59    <!-- testing -->
 60    <dependency>
 61      <groupId>org.scalatra.scalate</groupId>
 62      <artifactId>scalate-test_2.10</artifactId>
 63      <version>${project.version}</version>
 64      <scope>test</scope>
 65    </dependency>
 66  </dependencies>
 67
 68  <build>
 69    <plugins>
 70      <plugin>
 71        <inherited>true</inherited>
 72        <artifactId>maven-source-plugin</artifactId>
 73        <executions>
 74          <execution>
 75            <id>attach-sources</id>
 76            <goals>
 77              <goal>jar</goal>
 78            </goals>
 79          </execution>
 80        </executions>
 81      </plugin>
 82
 83      <plugin>
 84        <artifactId>maven-surefire-plugin</artifactId>
 85        <version>${surefire-plugin-version}</version>
 86        <configuration>
 87          <systemPropertyVariables>
 88            <!-- lets force any generated source to be in the build directory when running archetype tests -->
 89            <scalate.generate.src>${basedir}/target/gen-src</scalate.generate.src>
 90          </systemPropertyVariables>
 91
 92          <!-- these settings are mandatory to avoid SureFire giving a bogus system property to the web container -->
 93          <useSystemClassLoader>false</useSystemClassLoader>
 94          <useManifestOnlyJar>false</useManifestOnlyJar>
 95          <includes>
 96            <include>**/*Test.*</include>
 97          </includes>
 98          <excludes>
 99            <exclude>**/QueuesTest.*</exclude>
100            <exclude>**/htmlunit/**.*</exclude>
101          </excludes>
102
103        </configuration>
104      </plugin>
105
106
107      <plugin>
108        <artifactId>maven-war-plugin</artifactId>
109      </plugin>
110
111      <plugin>
112        <groupId>org.codehaus.mojo</groupId>
113        <artifactId>exec-maven-plugin</artifactId>
114        <version>1.1.1</version>
115        <executions>
116          <execution>
117            <goals>
118              <goal>java</goal>
119            </goals>
120          </execution>
121        </executions>
122        <configuration>
123          <mainClass>org.scalatra.scalate.test.Main</mainClass>
124          <classpathScope>test</classpathScope>
125        </configuration>
126      </plugin>
127
128      <plugin>
129        <groupId>org.mortbay.jetty</groupId>
130        <artifactId>jetty-maven-plugin</artifactId>
131      </plugin>
132
133    </plugins>
134  </build>
135  
136  
137  <profiles>
138    <profile>
139      <id>jdk5</id>
140      <activation>
141        <jdk>1.5</jdk>
142      </activation>
143      
144      <build>
145        <plugins>
146          
147          <plugin>
148            <groupId>org.apache.maven.plugins</groupId>
149            <artifactId>maven-surefire-plugin</artifactId>
150            <configuration>
151              <excludes>
152                <!-- Jersey requires Java 1.6, so this test will fail. -->
153                <exclude>**/ConsoleTest.*</exclude>
154              </excludes>
155            </configuration>
156          </plugin>          
157
158        </plugins>
159      </build>
160    </profile>
161  </profiles>
162
163</project>
164