/archetypes/scalate-archetype-guice/src/main/resources/archetype-resources/pom.xml
XML | 318 lines | 255 code | 25 blank | 38 comment | 0 complexity | 8a39cdc6917566fa9faf55fd12b97471 MD5 | raw file
- <!--
- Copyright (C) 2009-2011 the original author or authors.
- See the notice.md file distributed with this work for additional
- information regarding copyright ownership.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
- <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">
- <modelVersion>4.0.0</modelVersion>
- <groupId>\${groupId}</groupId>
- <artifactId>\${artifactId}</artifactId>
- <version>\${version}</version>
- <packaging>war</packaging>
- <name>My Web App</name>
- <description>Web Application Using Scalate, Scala and JAXRS/Jersey</description>
- <prerequisites>
- <maven>2.0.9</maven>
- </prerequisites>
- <properties>
- <!-- environment settings -->
- <jetty-port>8080</jetty-port>
- <scalate.editor>${env.SCALATE_EDITOR}</scalate.editor>
- <scalate.workdir>\${basedir}/target/_scalate</scalate.workdir>
- <scalate.package.resources>${package}.resources</scalate.package.resources>
- <scalate.generate.src>\${basedir}/src</scalate.generate.src>
- <scalate.mode>development</scalate.mode>
- <!-- version info -->
- <jersey-version>${jersey-version}</jersey-version>
- <jetty-version>${jetty-version}</jetty-version>
- <logback-version>${logback-version}</logback-version>
- <scala-version>${scala-version}</scala-version>
- <scalate-version>${project.version}</scalate-version>
- <servlet-api-version>${servlet-api-version}</servlet-api-version>
- <!-- plugins -->
- <jetty-plugin-version>${jetty-plugin-version}</jetty-plugin-version>
- <scala-plugin-version>${scala-plugin-version}</scala-plugin-version>
- <surefire-plugin-version>${surefire-plugin-version}</surefire-plugin-version>
- <tomcat-plugin-version>${tomcat-plugin-version}</tomcat-plugin-version>
- <war-plugin-version>${war-plugin-version}</war-plugin-version>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.scala-lang</groupId>
- <artifactId>scala-library</artifactId>
- <version>\${scala-version}</version>
- </dependency>
- <dependency>
- <groupId>org.scala-lang</groupId>
- <artifactId>scala-compiler</artifactId>
- <version>\${scala-version}</version>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>\${servlet-api-version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.scalatra.scalate</groupId>
- <artifactId>scalate-guice_2.10</artifactId>
- <version>\${scalate-version}</version>
- </dependency>
- <dependency>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-classic</artifactId>
- <version>\${logback-version}</version>
- <scope>runtime</scope>
- <optional>true</optional>
- </dependency>
- <!-- testing -->
- <dependency>
- <groupId>org.scalatra.scalate</groupId>
- <artifactId>scalate-test_2.10</artifactId>
- <version>\${scalate-version}</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <repositories>
- <repository>
- <id>repo1.maven</id>
- <name>Maven Central Repo</name>
- <url>http://repo1.maven.org/maven2/</url>
- </repository>
- <repository>
- <id>fusesource.m2</id>
- <name>FuseSource Community Release Repository</name>
- <url>http://repo.fusesource.com/nexus/content/repositories/public</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <repository>
- <id>fusesource.m2-snapshot</id>
- <name>FuseSource Community Snapshot Repository</name>
- <url>http://repo.fusesource.com/nexus/content/repositories/snapshots</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </repository>
- <repository>
- <id>java.net.m2</id>
- <name>java.net Maven 2 Repo</name>
- <url>http://download.java.net/maven/2</url>
- </repository>
- <repository>
- <id>glassfish-repo-archive</id>
- <name>Nexus repository collection for Glassfish</name>
- <url>http://maven.glassfish.org/content/groups/glassfish</url>
- <snapshots>
- <updatePolicy>never</updatePolicy>
- </snapshots>
- </repository>
- <repository>
- <id>scala</id>
- <name>Scala Tools</name>
- <url>http://scala-tools.org/repo-releases</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- <repository>
- <id>snapshots.scala-tools.org</id>
- <name>Scala-Tools Maven2 Snapshot Repository</name>
- <url>http://scala-tools.org/repo-snapshots</url>
- <snapshots>
- <enabled>true</enabled>
- <!--updatePolicy>never</updatePolicy-->
- <checksumPolicy>fail</checksumPolicy>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- <!--updatePolicy>never</updatePolicy-->
- <checksumPolicy>fail</checksumPolicy>
- </releases>
- </repository>
- <repository>
- <id>apache.snapshots</id>
- <name>Apache Development Snapshot Repository</name>
- <url>https://repository.apache.org/content/repositories/snapshots</url>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
- <build>
- <plugins>
- <plugin>
- <groupId>net.alchim31.maven</groupId>
- <artifactId>scala-maven-plugin</artifactId>
- <version>\${scala-plugin-version}</version>
- <executions>
- <execution>
- <goals>
- <goal>compile</goal>
- <goal>testCompile</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <jvmArgs>
- <jvmArg>-Xmx1024m</jvmArg>
- </jvmArgs>
- <args>
- <!-- arg>-unchecked</arg -->
- <arg>-deprecation</arg>
- </args>
- <scala-version>\${scala-version}</scala-version>
- <recompileMode>incremental</recompileMode>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>\${surefire-plugin-version}</version>
- <configuration>
- <systemPropertyVariables>
- <scalate.package.resources>\${scalate.package.resources}</scalate.package.resources>
- <scalate.generate.src>\${scalate.generate.src}</scalate.generate.src>
- </systemPropertyVariables>
- <forkMode>once</forkMode>
- <!-- these settings are mandatory to avoid SureFire giving a bogus system property to the web container -->
- <useSystemClassLoader>false</useSystemClassLoader>
- <useManifestOnlyJar>false</useManifestOnlyJar>
- <includes>
- <include>**/*Test.*</include>
- </includes>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-war-plugin</artifactId>
- <version>\${war-plugin-version}</version>
- <configuration>
- <attachClasses>true</attachClasses>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>jetty-maven-plugin</artifactId>
- <version>\${jetty-plugin-version}</version>
- <configuration>
- <!--
- <connectors>
- <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
- <port>\${jetty.port}</port>
- <maxIdleTime>60000</maxIdleTime>
- </connector>
- </connectors>
- -->
- <webAppConfig>
- <contextPath>/</contextPath>
- </webAppConfig>
- <systemProperties>
- <!-- enable easy JMX connection to JConsole -->
- <systemProperty>
- <name>com.sun.management.jmxremote</name>
- <value/>
- </systemProperty>
- <systemProperty>
- <name>scalate.editor</name>
- <value>\${scalate.editor}</value>
- </systemProperty>
- <systemProperty>
- <name>scalate.workdir</name>
- <value>\${scalate.workdir}</value>
- </systemProperty>
- <systemProperty>
- <name>scalate.package.resources</name>
- <value>\${scalate.package.resources}</value>
- </systemProperty>
- <systemProperty>
- <name>scalate.mode</name>
- <value>\${scalate.mode}</value>
- </systemProperty>
- </systemProperties>
- <scanIntervalSeconds>0</scanIntervalSeconds>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>tomcat-maven-plugin</artifactId>
- <version>\${tomcat-plugin-version}</version>
- <configuration>
- <path>/</path>
- <systemProperties>
- <!-- enable easy JMX connection to JConsole -->
- <com.sun.management.jmxremote></com.sun.management.jmxremote>
- <!-- Scalate console configuration -->
- <scalate.mode>\${scalate.mode}</scalate.mode>
- <scalate.editor>\${scalateEditor}</scalate.editor>
- <scalate.workdir>\${scalate.workdir}</scalate.workdir>
- <scalate.package.resources>\${scalate.package.resources}</scalate.package.resources>
- </systemProperties>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.scalatra.scalate</groupId>
- <artifactId>maven-scalate-plugin_2.10</artifactId>
- <version>\${scalate-version}</version>
- <executions>
- <execution>
- <goals>
- <goal>precompile</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>