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