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