archetype-resources.pom.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <name>£${artifactId}</name> <groupId>£${groupId}</groupId> <artifactId>£${artifactId}</artifactId> <version>£${version}</version> <packaging>pom</packaging> <properties> <resthub.spring.stack.version>${project.version}</resthub.spring.stack.version> <jetty.version>8.1.13.v20130916</jetty.version> <jetty.port>8080</jetty.port> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>org.resthub</groupId> <artifactId>resthub-mongodb</artifactId> <version>${resthub.spring.stack.version}</version> </dependency> <dependency> <groupId>org.resthub</groupId> <artifactId>resthub-web-server</artifactId> <version>${resthub.spring.stack.version}</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.0.1</version> <scope>provided</scope> </dependency> </dependencies> </dependencyManagement> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <configuration> <encoding>UTF-8</encoding> <source>1.7</source> <target>1.7</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.3</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> </configuration> </plugin> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>${jetty.version}</version> <configuration> <!-- We use non NIO connector in order to avoid read only static files under windows --> <connectors> <connector implementation="org.eclipse.jetty.server.bio.SocketConnector"> <port>${jetty.port}</port> <maxIdleTime>60000</maxIdleTime> </connector> </connectors> <!-- To run the optimized version of the webapp --> <!-- do a 'mvn package -Poptimize' and uncomment the following line --> <!--<webAppSourceDirectory>£${basedir}/target/£${project.build.finalName}</webAppSourceDirectory>--> </configuration> </plugin> </plugins> </build> <repositories> <repository> <id>snapshot</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> </project>