PageRenderTime 46ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/archetypes/scalate-archetype-guice/src/main/resources/archetype-resources/pom.xml

http://github.com/scalate/scalate
XML | 318 lines | 255 code | 25 blank | 38 comment | 0 complexity | 8a39cdc6917566fa9faf55fd12b97471 MD5 | raw file
  1. <!--
  2. Copyright (C) 2009-2011 the original author or authors.
  3. See the notice.md file distributed with this work for additional
  4. information regarding copyright ownership.
  5. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  16. 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. <groupId>\${groupId}</groupId>
  19. <artifactId>\${artifactId}</artifactId>
  20. <version>\${version}</version>
  21. <packaging>war</packaging>
  22. <name>My Web App</name>
  23. <description>Web Application Using Scalate, Scala and JAXRS/Jersey</description>
  24. <prerequisites>
  25. <maven>2.0.9</maven>
  26. </prerequisites>
  27. <properties>
  28. <!-- environment settings -->
  29. <jetty-port>8080</jetty-port>
  30. <scalate.editor>${env.SCALATE_EDITOR}</scalate.editor>
  31. <scalate.workdir>\${basedir}/target/_scalate</scalate.workdir>
  32. <scalate.package.resources>${package}.resources</scalate.package.resources>
  33. <scalate.generate.src>\${basedir}/src</scalate.generate.src>
  34. <scalate.mode>development</scalate.mode>
  35. <!-- version info -->
  36. <jersey-version>${jersey-version}</jersey-version>
  37. <jetty-version>${jetty-version}</jetty-version>
  38. <logback-version>${logback-version}</logback-version>
  39. <scala-version>${scala-version}</scala-version>
  40. <scalate-version>${project.version}</scalate-version>
  41. <servlet-api-version>${servlet-api-version}</servlet-api-version>
  42. <!-- plugins -->
  43. <jetty-plugin-version>${jetty-plugin-version}</jetty-plugin-version>
  44. <scala-plugin-version>${scala-plugin-version}</scala-plugin-version>
  45. <surefire-plugin-version>${surefire-plugin-version}</surefire-plugin-version>
  46. <tomcat-plugin-version>${tomcat-plugin-version}</tomcat-plugin-version>
  47. <war-plugin-version>${war-plugin-version}</war-plugin-version>
  48. </properties>
  49. <dependencies>
  50. <dependency>
  51. <groupId>org.scala-lang</groupId>
  52. <artifactId>scala-library</artifactId>
  53. <version>\${scala-version}</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.scala-lang</groupId>
  57. <artifactId>scala-compiler</artifactId>
  58. <version>\${scala-version}</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>javax.servlet</groupId>
  62. <artifactId>servlet-api</artifactId>
  63. <version>\${servlet-api-version}</version>
  64. <scope>provided</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.scalatra.scalate</groupId>
  68. <artifactId>scalate-guice_2.10</artifactId>
  69. <version>\${scalate-version}</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>ch.qos.logback</groupId>
  73. <artifactId>logback-classic</artifactId>
  74. <version>\${logback-version}</version>
  75. <scope>runtime</scope>
  76. <optional>true</optional>
  77. </dependency>
  78. <!-- testing -->
  79. <dependency>
  80. <groupId>org.scalatra.scalate</groupId>
  81. <artifactId>scalate-test_2.10</artifactId>
  82. <version>\${scalate-version}</version>
  83. <scope>test</scope>
  84. </dependency>
  85. </dependencies>
  86. <repositories>
  87. <repository>
  88. <id>repo1.maven</id>
  89. <name>Maven Central Repo</name>
  90. <url>http://repo1.maven.org/maven2/</url>
  91. </repository>
  92. <repository>
  93. <id>fusesource.m2</id>
  94. <name>FuseSource Community Release Repository</name>
  95. <url>http://repo.fusesource.com/nexus/content/repositories/public</url>
  96. <snapshots>
  97. <enabled>false</enabled>
  98. </snapshots>
  99. <releases>
  100. <enabled>true</enabled>
  101. </releases>
  102. </repository>
  103. <repository>
  104. <id>fusesource.m2-snapshot</id>
  105. <name>FuseSource Community Snapshot Repository</name>
  106. <url>http://repo.fusesource.com/nexus/content/repositories/snapshots</url>
  107. <snapshots>
  108. <enabled>true</enabled>
  109. </snapshots>
  110. <releases>
  111. <enabled>false</enabled>
  112. </releases>
  113. </repository>
  114. <repository>
  115. <id>java.net.m2</id>
  116. <name>java.net Maven 2 Repo</name>
  117. <url>http://download.java.net/maven/2</url>
  118. </repository>
  119. <repository>
  120. <id>glassfish-repo-archive</id>
  121. <name>Nexus repository collection for Glassfish</name>
  122. <url>http://maven.glassfish.org/content/groups/glassfish</url>
  123. <snapshots>
  124. <updatePolicy>never</updatePolicy>
  125. </snapshots>
  126. </repository>
  127. <repository>
  128. <id>scala</id>
  129. <name>Scala Tools</name>
  130. <url>http://scala-tools.org/repo-releases</url>
  131. <releases>
  132. <enabled>true</enabled>
  133. </releases>
  134. <snapshots>
  135. <enabled>false</enabled>
  136. </snapshots>
  137. </repository>
  138. <repository>
  139. <id>snapshots.scala-tools.org</id>
  140. <name>Scala-Tools Maven2 Snapshot Repository</name>
  141. <url>http://scala-tools.org/repo-snapshots</url>
  142. <snapshots>
  143. <enabled>true</enabled>
  144. <!--updatePolicy>never</updatePolicy-->
  145. <checksumPolicy>fail</checksumPolicy>
  146. </snapshots>
  147. <releases>
  148. <enabled>true</enabled>
  149. <!--updatePolicy>never</updatePolicy-->
  150. <checksumPolicy>fail</checksumPolicy>
  151. </releases>
  152. </repository>
  153. <repository>
  154. <id>apache.snapshots</id>
  155. <name>Apache Development Snapshot Repository</name>
  156. <url>https://repository.apache.org/content/repositories/snapshots</url>
  157. <releases>
  158. <enabled>false</enabled>
  159. </releases>
  160. <snapshots>
  161. <enabled>true</enabled>
  162. </snapshots>
  163. </repository>
  164. </repositories>
  165. <build>
  166. <plugins>
  167. <plugin>
  168. <groupId>net.alchim31.maven</groupId>
  169. <artifactId>scala-maven-plugin</artifactId>
  170. <version>\${scala-plugin-version}</version>
  171. <executions>
  172. <execution>
  173. <goals>
  174. <goal>compile</goal>
  175. <goal>testCompile</goal>
  176. </goals>
  177. </execution>
  178. </executions>
  179. <configuration>
  180. <jvmArgs>
  181. <jvmArg>-Xmx1024m</jvmArg>
  182. </jvmArgs>
  183. <args>
  184. <!-- arg>-unchecked</arg -->
  185. <arg>-deprecation</arg>
  186. </args>
  187. <scala-version>\${scala-version}</scala-version>
  188. <recompileMode>incremental</recompileMode>
  189. </configuration>
  190. </plugin>
  191. <plugin>
  192. <artifactId>maven-surefire-plugin</artifactId>
  193. <version>\${surefire-plugin-version}</version>
  194. <configuration>
  195. <systemPropertyVariables>
  196. <scalate.package.resources>\${scalate.package.resources}</scalate.package.resources>
  197. <scalate.generate.src>\${scalate.generate.src}</scalate.generate.src>
  198. </systemPropertyVariables>
  199. <forkMode>once</forkMode>
  200. <!-- these settings are mandatory to avoid SureFire giving a bogus system property to the web container -->
  201. <useSystemClassLoader>false</useSystemClassLoader>
  202. <useManifestOnlyJar>false</useManifestOnlyJar>
  203. <includes>
  204. <include>**/*Test.*</include>
  205. </includes>
  206. </configuration>
  207. </plugin>
  208. <plugin>
  209. <artifactId>maven-war-plugin</artifactId>
  210. <version>\${war-plugin-version}</version>
  211. <configuration>
  212. <attachClasses>true</attachClasses>
  213. </configuration>
  214. </plugin>
  215. <plugin>
  216. <groupId>org.mortbay.jetty</groupId>
  217. <artifactId>jetty-maven-plugin</artifactId>
  218. <version>\${jetty-plugin-version}</version>
  219. <configuration>
  220. <!--
  221. <connectors>
  222. <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
  223. <port>\${jetty.port}</port>
  224. <maxIdleTime>60000</maxIdleTime>
  225. </connector>
  226. </connectors>
  227. -->
  228. <webAppConfig>
  229. <contextPath>/</contextPath>
  230. </webAppConfig>
  231. <systemProperties>
  232. <!-- enable easy JMX connection to JConsole -->
  233. <systemProperty>
  234. <name>com.sun.management.jmxremote</name>
  235. <value/>
  236. </systemProperty>
  237. <systemProperty>
  238. <name>scalate.editor</name>
  239. <value>\${scalate.editor}</value>
  240. </systemProperty>
  241. <systemProperty>
  242. <name>scalate.workdir</name>
  243. <value>\${scalate.workdir}</value>
  244. </systemProperty>
  245. <systemProperty>
  246. <name>scalate.package.resources</name>
  247. <value>\${scalate.package.resources}</value>
  248. </systemProperty>
  249. <systemProperty>
  250. <name>scalate.mode</name>
  251. <value>\${scalate.mode}</value>
  252. </systemProperty>
  253. </systemProperties>
  254. <scanIntervalSeconds>0</scanIntervalSeconds>
  255. </configuration>
  256. </plugin>
  257. <plugin>
  258. <groupId>org.codehaus.mojo</groupId>
  259. <artifactId>tomcat-maven-plugin</artifactId>
  260. <version>\${tomcat-plugin-version}</version>
  261. <configuration>
  262. <path>/</path>
  263. <systemProperties>
  264. <!-- enable easy JMX connection to JConsole -->
  265. <com.sun.management.jmxremote></com.sun.management.jmxremote>
  266. <!-- Scalate console configuration -->
  267. <scalate.mode>\${scalate.mode}</scalate.mode>
  268. <scalate.editor>\${scalateEditor}</scalate.editor>
  269. <scalate.workdir>\${scalate.workdir}</scalate.workdir>
  270. <scalate.package.resources>\${scalate.package.resources}</scalate.package.resources>
  271. </systemProperties>
  272. </configuration>
  273. </plugin>
  274. <plugin>
  275. <groupId>org.scalatra.scalate</groupId>
  276. <artifactId>maven-scalate-plugin_2.10</artifactId>
  277. <version>\${scalate-version}</version>
  278. <executions>
  279. <execution>
  280. <goals>
  281. <goal>precompile</goal>
  282. </goals>
  283. </execution>
  284. </executions>
  285. </plugin>
  286. </plugins>
  287. </build>
  288. </project>