|
@@ -1,196 +0,0 @@
|
|
-<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>org.ninjaframework.techempower</groupId>
|
|
|
|
- <artifactId>ninja-resin</artifactId>
|
|
|
|
- <version>0.0.1-SNAPSHOT</version>
|
|
|
|
- <name>ninja-resin</name>
|
|
|
|
- <description>Ninja test for the TechEmpower/FrameworkBenchmarks project</description>
|
|
|
|
-
|
|
|
|
- <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>
|
|
|
|
-
|
|
|
|
- <!-- Ninja uses Guava 15.0 and Guava 15.0 by default has problems
|
|
|
|
- with Resin (and other EE6 containers). Therefore we
|
|
|
|
- force the usage of the following dependency which overwrites
|
|
|
|
- the original one.
|
|
|
|
- More here: https://code.google.com/p/guava-libraries/issues/detail?id=1527
|
|
|
|
- -->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>com.google.guava</groupId>
|
|
|
|
- <artifactId>guava</artifactId>
|
|
|
|
- <version>15.0</version>
|
|
|
|
- <classifier>cdi1.0</classifier>
|
|
|
|
- </dependency>
|
|
|
|
-
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.ninjaframework</groupId>
|
|
|
|
- <artifactId>ninja-standalone</artifactId>
|
|
|
|
- <version>${ninja.version}</version>
|
|
|
|
- <exclusions>
|
|
|
|
- <!-- See the comment above why we exclude guava -->
|
|
|
|
- <exclusion>
|
|
|
|
- <groupId>com.google.guava </groupId>
|
|
|
|
- <artifactId>guava</artifactId>
|
|
|
|
- </exclusion>
|
|
|
|
- </exclusions>
|
|
|
|
- </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>
|
|
|
|
-
|
|
|
|
- <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>
|
|
|
|
-
|
|
|
|
- <plugin>
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
- <artifactId>maven-war-plugin</artifactId>
|
|
|
|
- <version>2.4</version>
|
|
|
|
- <configuration>
|
|
|
|
- <warName>ninja</warName>
|
|
|
|
- <!-- Because seomhow in Techempower's platform the nasty
|
|
|
|
- guava default version still gets included we exlude
|
|
|
|
- it by force in the war file -->
|
|
|
|
- <packagingExcludes>WEB-INF/lib/guava-15.0.jar</packagingExcludes>
|
|
|
|
- </configuration>
|
|
|
|
- </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.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>
|
|
|