PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/samples/scalate-bookstore/pom.xml

http://github.com/scalate/scalate
XML | 161 lines | 121 code | 18 blank | 22 comment | 0 complexity | 2c283d1d45f5455cb54ba0a960eda9b1 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-bookstore_2.10</artifactId>
 30  <packaging>war</packaging>
 31
 32  <name>${project.artifactId}</name>
 33  <description>Scalate Sample BookStore 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    <dependency>
 48      <groupId>javax.servlet</groupId>
 49      <artifactId>servlet-api</artifactId>
 50      <scope>provided</scope>
 51    </dependency>
 52    <dependency>
 53      <groupId>org.scalatra.scalate</groupId>
 54      <artifactId>scalate-guice_2.10</artifactId>
 55      <version>${project.version}</version>
 56    </dependency>
 57    <dependency>
 58      <groupId>org.codehaus.jackson</groupId>
 59      <artifactId>jackson-jaxrs</artifactId>
 60      <version>1.3.5</version>
 61    </dependency>
 62    <dependency>
 63      <groupId>ch.qos.logback</groupId>
 64      <artifactId>logback-classic</artifactId>
 65      <scope>runtime</scope>
 66      <optional>true</optional>
 67    </dependency>
 68
 69    <!-- testing -->
 70    <dependency>
 71      <groupId>org.scalatra.scalate</groupId>
 72      <artifactId>scalate-test_2.10</artifactId>
 73      <version>${project.version}</version>
 74      <scope>test</scope>
 75    </dependency>
 76
 77    <dependency>
 78      <groupId>org.scala-lang</groupId>
 79      <artifactId>scala-library</artifactId>
 80      <version>${scala-version}</version>
 81    </dependency>
 82    <dependency>
 83      <groupId>org.scala-lang</groupId>
 84      <artifactId>scala-compiler</artifactId>
 85      <version>${scala-version}</version>
 86    </dependency>
 87  </dependencies>
 88
 89  <build>
 90    <plugins>
 91      <plugin>
 92        <inherited>true</inherited>
 93        <artifactId>maven-source-plugin</artifactId>
 94        <executions>
 95          <execution>
 96            <id>attach-sources</id>
 97            <goals>
 98              <goal>jar</goal>
 99            </goals>
100          </execution>
101        </executions>
102      </plugin>
103
104      <plugin>
105        <artifactId>maven-surefire-plugin</artifactId>
106        <version>${surefire-plugin-version}</version>
107        <configuration>
108          <forkMode>once</forkMode>
109          <!-- these settings are mandatory to avoid SureFire giving a bogus system property to the web container -->
110          <useSystemClassLoader>false</useSystemClassLoader>
111          <useManifestOnlyJar>false</useManifestOnlyJar>
112          <includes>
113            <include>**/*Test.*</include>
114          </includes>
115          <excludes>
116            <exclude>**/QueuesTest.*</exclude>
117            <exclude>**/htmlunit/**.*</exclude>
118          </excludes>
119        </configuration>
120      </plugin>
121
122
123      <plugin>
124        <artifactId>maven-war-plugin</artifactId>
125      </plugin>
126      <plugin>
127        <groupId>org.mortbay.jetty</groupId>
128        <artifactId>jetty-maven-plugin</artifactId>
129      </plugin>
130
131    </plugins>
132  </build>
133  
134  <profiles>
135    <profile>
136      <id>jdk5</id>
137      <activation>
138        <jdk>1.5</jdk>
139      </activation>
140      
141      <build>
142        <plugins>
143          
144          <plugin>
145            <groupId>org.apache.maven.plugins</groupId>
146            <artifactId>maven-surefire-plugin</artifactId>
147            <configuration>
148              <excludes>
149                <!-- Jersey requires Java 1.6, so this test will fail. -->
150                <exclude>**/SampleTest.*</exclude>
151              </excludes>
152            </configuration>
153          </plugin>          
154
155        </plugins>
156      </build>
157    </profile>
158  </profiles>
159    
160</project>
161