|
@@ -0,0 +1,163 @@
|
|
|
+<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>
|
|
|
+ <groupId>helo.world</groupId>
|
|
|
+ <artifactId>hello-ninja-standalone</artifactId>
|
|
|
+ <version>0.0.1-SNAPSHOT</version>
|
|
|
+ <name>Ninja Framework Test Project</name>
|
|
|
+ <description>Nnja test for the TechEmpower/FrameworkBenchmarks project</description>
|
|
|
+
|
|
|
+ <properties>
|
|
|
+ <java-version>1.7</java-version>
|
|
|
+ <ninja.version>2.0.1</ninja.version>
|
|
|
+ <mysql.version>5.1.26</mysql.version>
|
|
|
+ <jetty.version>9.0.5.v20130815</jetty.version>
|
|
|
+ </properties>
|
|
|
+
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.ninjaframework</groupId>
|
|
|
+ <artifactId>ninja-servlet</artifactId>
|
|
|
+ <version>${ninja.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.ninjaframework</groupId>
|
|
|
+ <artifactId>ninja-standalone</artifactId>
|
|
|
+ <version>${ninja.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>javax.servlet</groupId>
|
|
|
+ <artifactId>javax.servlet-api</artifactId>
|
|
|
+ <version>3.0.1</version>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.ninjaframework</groupId>
|
|
|
+ <artifactId>ninja-test-utilities</artifactId>
|
|
|
+ <version>${ninja.version}</version>
|
|
|
+ <scope>test</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>mysql</groupId>
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
+ <version>${mysql.version}</version>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.1</version>
|
|
|
+ <configuration>
|
|
|
+ <source>${java-version}</source>
|
|
|
+ <target>${java-version}</target>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-war-plugin</artifactId>
|
|
|
+ <configuration>
|
|
|
+ <warName>ninja</warName>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-enforcer-plugin</artifactId>
|
|
|
+ <version>1.0</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>enforce-banned-dependencies</id>
|
|
|
+ <goals>
|
|
|
+ <goal>enforce</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <rules>
|
|
|
+ <bannedDependencies>
|
|
|
+ <excludes>
|
|
|
+ <exclude>commons-logging</exclude>
|
|
|
+ </excludes>
|
|
|
+ </bannedDependencies>
|
|
|
+ </rules>
|
|
|
+ <fail>true</fail>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.eclipse.jetty</groupId>
|
|
|
+ <artifactId>jetty-maven-plugin</artifactId>
|
|
|
+ <version>${jetty.version}</version>
|
|
|
+ <configuration>
|
|
|
+ <contextPath>/</contextPath>
|
|
|
+ <stopKey>stop</stopKey>
|
|
|
+ <stopPort>8889</stopPort>
|
|
|
+ <scanIntervalSeconds>1</scanIntervalSeconds>
|
|
|
+ <reload>automatic</reload>
|
|
|
+ <scanTargetPatterns>
|
|
|
+ <scanTargetPattern>
|
|
|
+ <directory>target/classes</directory>
|
|
|
+ <includes>
|
|
|
+ <include>**/*</include>
|
|
|
+ </includes>
|
|
|
+ <excludes>
|
|
|
+ <exclude>**/*.ftl.html</exclude>
|
|
|
+ <exclude>assets/**</exclude>
|
|
|
+ </excludes>
|
|
|
+ </scanTargetPattern>
|
|
|
+ </scanTargetPatterns>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-deploy-plugin</artifactId>
|
|
|
+ <version>2.7</version>
|
|
|
+ <configuration>
|
|
|
+ <skip>true</skip>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <plugin>
|
|
|
+ <artifactId>maven-assembly-plugin</artifactId>
|
|
|
+ <version>2.4</version>
|
|
|
+ <configuration>
|
|
|
+ <descriptorRefs>
|
|
|
+ <descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
+ </descriptorRefs>
|
|
|
+ <archive>
|
|
|
+ <manifest>
|
|
|
+ <mainClass>ninja.standalone.NinjaJetty</mainClass>
|
|
|
+ </manifest>
|
|
|
+ </archive>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/java</directory>
|
|
|
+ <includes>
|
|
|
+ <include>**/*</include>
|
|
|
+ </includes>
|
|
|
+ <excludes>
|
|
|
+ <exclude>**/*.java</exclude>
|
|
|
+ </excludes>
|
|
|
+ </resource>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <includes>
|
|
|
+ <include>**/*</include>
|
|
|
+ </includes>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ </build>
|
|
|
+</project>
|