|
@@ -1,163 +1,177 @@
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
<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>
|
|
|
|
|
|
+ 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>org.ninjaframework.techempower</groupId>
|
|
|
|
+ <artifactId>ninja-standalone</artifactId>
|
|
|
|
+ <version>0.0.1-SNAPSHOT</version>
|
|
|
|
+ <name>ninja-standalone</name>
|
|
|
|
+ <description>Ninja test for the TechEmpower/FrameworkBenchmarks project</description>
|
|
|
|
|
|
- <properties>
|
|
|
|
- <java-version>1.7</java-version>
|
|
|
|
- <ninja.version>2.1.0</ninja.version>
|
|
|
|
- <mysql.version>5.1.26</mysql.version>
|
|
|
|
- <jetty.version>9.0.5.v20130815</jetty.version>
|
|
|
|
- </properties>
|
|
|
|
|
|
+ <properties>
|
|
|
|
+ <java-version>1.7</java-version>
|
|
|
|
+ <ninja.version>2.5.1</ninja.version>
|
|
|
|
+ <mysql.version>5.1.26</mysql.version>
|
|
|
|
+ <jetty.version>9.0.5.v20130815</jetty.version>
|
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
+ </properties>
|
|
|
|
|
|
- <dependencies>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.ninjaframework</groupId>
|
|
|
|
- <artifactId>ninja-servlet</artifactId>
|
|
|
|
- <version>${ninja.version}</version>
|
|
|
|
- </dependency>
|
|
|
|
|
|
+ <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>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>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>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>
|
|
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>mysql</groupId>
|
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
|
+ <version>${mysql.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.h2database</groupId>
|
|
|
|
+ <artifactId>h2</artifactId>
|
|
|
|
+ <version>1.3.174</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>
|
|
|
|
|
|
+ <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>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
+ <version>2.4</version>
|
|
<configuration>
|
|
<configuration>
|
|
<warName>ninja</warName>
|
|
<warName>ninja</warName>
|
|
</configuration>
|
|
</configuration>
|
|
</plugin>
|
|
</plugin>
|
|
|
|
+
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.ninjaframework</groupId>
|
|
|
|
+ <artifactId>ninja-maven-plugin</artifactId>
|
|
|
|
+ <version>${ninja.version}</version>
|
|
|
|
+ </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.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.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>
|
|
|
|
+ <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>
|
|
|
|
|
|
+ <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>
|
|
|
|
|
|
+ <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>
|
|
</project>
|