PageRenderTime 40ms CodeModel.GetById 28ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/scalate/scalate
XML | 309 lines | 255 code | 24 blank | 30 comment | 0 complexity | c94d77a3fce357ed33d48af8b45aeddf 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    <scalateEditor>\${env.SCALATE_EDITOR}</scalateEditor>
 40    <scalate.workdir>\${basedir}/target/_scalate</scalate.workdir>
 41    <scalate.package.resources>${package}.resources</scalate.package.resources>
 42    <scalate.mode>development</scalate.mode>
 43
 44    <!-- version info -->
 45    <jersey-version>${jersey-version}</jersey-version>
 46    <jetty-version>${jetty-version}</jetty-version>
 47    <logback-version>${logback-version}</logback-version>
 48    <scala-version>${scala-version}</scala-version>
 49    <scalate-version>${project.version}</scalate-version>
 50    <servlet-api-version>${servlet-api-version}</servlet-api-version>
 51
 52    <!-- plugins -->
 53    <jetty-plugin-version>${jetty-plugin-version}</jetty-plugin-version>
 54    <scala-plugin-version>${scala-plugin-version}</scala-plugin-version>
 55    <surefire-plugin-version>${surefire-plugin-version}</surefire-plugin-version>
 56    <tomcat-plugin-version>${tomcat-plugin-version}</tomcat-plugin-version>
 57    <war-plugin-version>${war-plugin-version}</war-plugin-version>
 58  </properties>
 59   
 60  <dependencies>
 61    <dependency>
 62      <groupId>org.scala-lang</groupId>
 63      <artifactId>scala-library</artifactId>
 64      <version>\${scala-version}</version>
 65    </dependency>
 66    <dependency>
 67      <groupId>org.scala-lang</groupId>
 68      <artifactId>scala-compiler</artifactId>
 69      <version>\${scala-version}</version>
 70    </dependency>
 71    <dependency>
 72      <groupId>javax.servlet</groupId>
 73      <artifactId>servlet-api</artifactId>
 74      <version>\${servlet-api-version}</version>
 75      <scope>provided</scope>
 76    </dependency>
 77    <dependency>
 78      <groupId>org.scalatra.scalate</groupId>
 79      <artifactId>scalate-page_2.10</artifactId>
 80      <version>\${scalate-version}</version>
 81    </dependency>
 82    <dependency>
 83      <groupId>com.sun.jersey</groupId>
 84      <artifactId>jersey-server</artifactId>
 85      <version>\${jersey-version}</version>
 86    </dependency>
 87    <dependency>
 88      <groupId>ch.qos.logback</groupId>
 89      <artifactId>logback-classic</artifactId>
 90      <version>\${logback-version}</version>
 91      <scope>runtime</scope>
 92      <optional>true</optional>
 93    </dependency>
 94
 95    <!-- testing -->
 96    <dependency>
 97      <groupId>org.scalatra.scalate</groupId>
 98      <artifactId>scalate-test_2.10</artifactId>
 99      <version>\${scalate-version}</version>
100      <scope>test</scope>
101    </dependency>
102  </dependencies>
103
104
105  <repositories>
106    <repository>
107      <id>repo1.maven</id>
108      <name>Maven Central Repo</name>
109      <url>http://repo1.maven.org/maven2/</url>
110    </repository>
111    <repository>
112      <id>fusesource.m2</id>
113      <name>FuseSource Community Release Repository</name>
114      <url>http://repo.fusesource.com/nexus/content/repositories/public</url>
115      <snapshots>
116        <enabled>false</enabled>
117      </snapshots>
118      <releases>
119        <enabled>true</enabled>
120      </releases>
121    </repository>
122    <repository>
123      <id>fusesource.m2-snapshot</id>
124      <name>FuseSource Community Snapshot Repository</name>
125      <url>http://repo.fusesource.com/nexus/content/repositories/snapshots</url>
126      <snapshots>
127        <enabled>true</enabled>
128      </snapshots>
129      <releases>
130        <enabled>false</enabled>
131      </releases>
132    </repository>
133
134    <repository>
135      <id>java.net.m2</id>
136      <name>java.net Maven 2 Repo</name>
137      <url>http://download.java.net/maven/2</url>
138    </repository>
139
140    <repository>
141      <id>glassfish-repo-archive</id>
142      <name>Nexus repository collection for Glassfish</name>
143      <url>http://maven.glassfish.org/content/groups/glassfish</url>
144      <snapshots>
145        <updatePolicy>never</updatePolicy>
146      </snapshots>
147    </repository>
148
149    <repository>
150      <id>scala</id>
151      <name>Scala Tools</name>
152      <url>http://scala-tools.org/repo-releases</url>
153      <releases>
154        <enabled>true</enabled>
155      </releases>
156      <snapshots>
157        <enabled>false</enabled>
158      </snapshots>
159    </repository>
160    <repository>
161      <id>snapshots.scala-tools.org</id>
162      <name>Scala-Tools Maven2 Snapshot Repository</name>
163      <url>http://scala-tools.org/repo-snapshots</url>
164      <snapshots>
165        <enabled>true</enabled>
166        <!--updatePolicy>never</updatePolicy-->
167        <checksumPolicy>fail</checksumPolicy>
168      </snapshots>
169      <releases>
170        <enabled>true</enabled>
171        <!--updatePolicy>never</updatePolicy-->
172        <checksumPolicy>fail</checksumPolicy>
173      </releases>
174    </repository>
175    <repository>
176      <id>apache.snapshots</id>
177      <name>Apache Development Snapshot Repository</name>
178      <url>https://repository.apache.org/content/repositories/snapshots</url>
179      <releases>
180        <enabled>false</enabled>
181      </releases>
182      <snapshots>
183        <enabled>true</enabled>
184      </snapshots>
185    </repository>
186  </repositories>
187
188  <build>
189    <plugins>
190      <plugin>
191        <groupId>net.alchim31.maven</groupId>
192        <artifactId>scala-maven-plugin</artifactId>
193        <version>\${scala-plugin-version}</version>
194        <executions>
195          <execution>
196            <goals>
197              <goal>compile</goal>
198              <goal>testCompile</goal>
199            </goals>
200          </execution>
201        </executions>
202        <configuration>
203          <jvmArgs>
204            <jvmArg>-Xmx1024m</jvmArg>
205          </jvmArgs>
206          <args>
207            <!-- arg>-unchecked</arg -->
208            <arg>-deprecation</arg>
209          </args>
210          <scala-version>\${scala-version}</scala-version>
211          <recompileMode>incremental</recompileMode>
212        </configuration>
213      </plugin>
214
215      <plugin>
216        <artifactId>maven-surefire-plugin</artifactId>
217        <version>\${surefire-plugin-version}</version>
218        <configuration>
219          <forkMode>once</forkMode>
220          <!-- these settings are mandatory to avoid SureFire giving a bogus system property to the web container -->
221          <useSystemClassLoader>false</useSystemClassLoader>
222          <useManifestOnlyJar>false</useManifestOnlyJar>
223          <includes>
224            <include>**/*Test.*</include>
225          </includes>
226        </configuration>
227      </plugin>
228
229      <plugin>
230        <artifactId>maven-war-plugin</artifactId>
231        <version>\${war-plugin-version}</version>
232        <configuration>
233          <attachClasses>true</attachClasses>
234        </configuration>
235      </plugin>
236
237      <plugin>
238        <groupId>org.mortbay.jetty</groupId>
239        <artifactId>jetty-maven-plugin</artifactId>
240        <version>\${jetty-plugin-version}</version>
241        <configuration>
242          <webAppConfig>
243            <contextPath>/</contextPath>
244          </webAppConfig>
245
246          <systemProperties>
247            <!-- enable easy JMX connection to JConsole -->
248            <systemProperty>
249              <name>com.sun.management.jmxremote</name>
250              <value/>
251            </systemProperty>
252            <systemProperty>
253              <name>scalate.editor</name>
254              <value>\${scalateEditor}</value>
255            </systemProperty>
256            <systemProperty>
257              <name>scalate.workdir</name>
258              <value>\${scalate.workdir}</value>
259            </systemProperty>
260            <systemProperty>
261              <name>scalate.package.resources</name>
262              <value>\${scalate.package.resources}</value>
263            </systemProperty>
264            <systemProperty>
265              <name>scalate.mode</name>
266              <value>\${scalate.mode}</value>
267            </systemProperty>
268          </systemProperties>
269          <scanIntervalSeconds>0</scanIntervalSeconds>
270        </configuration>
271      </plugin>
272
273      <plugin>
274        <groupId>org.codehaus.mojo</groupId>
275        <artifactId>tomcat-maven-plugin</artifactId>
276        <version>\${tomcat-plugin-version}</version>
277        <configuration>
278          <path>/</path>
279
280          <systemProperties>
281            <!-- enable easy JMX connection to JConsole -->
282            <com.sun.management.jmxremote></com.sun.management.jmxremote>
283
284            <!-- Scalate console configuration -->
285            <scalate.mode>\${scalate.mode}</scalate.mode>
286            <scalate.editor>\${scalateEditor}</scalate.editor>
287            <scalate.workdir>\${scalate.workdir}</scalate.workdir>
288            <scalate.package.resources>\${scalate.package.resources}</scalate.package.resources>
289          </systemProperties>
290        </configuration>
291      </plugin>
292
293      <plugin>
294        <groupId>org.scalatra.scalate</groupId>
295        <artifactId>maven-scalate-plugin_2.10</artifactId>
296        <version>\${scalate-version}</version>
297        <executions>
298          <execution>
299            <goals>
300              <goal>precompile</goal>
301            </goals>
302          </execution>
303        </executions>
304      </plugin>
305      
306    </plugins>
307  </build>
308
309</project>