pom.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>org.ninjaframework.techempower</groupId>
  5. <artifactId>ninja-standalone</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <name>ninja-standalone</name>
  8. <description>Ninja test for the TechEmpower/FrameworkBenchmarks project</description>
  9. <properties>
  10. <java-version>1.7</java-version>
  11. <ninja.version>4.0.5</ninja.version>
  12. <mysql.version>5.1.26</mysql.version>
  13. <jetty.version>9.2.1.v20140609</jetty.version>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.ninjaframework</groupId>
  19. <artifactId>ninja-servlet</artifactId>
  20. <version>${ninja.version}</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.ninjaframework</groupId>
  24. <artifactId>ninja-standalone</artifactId>
  25. <version>${ninja.version}</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.ninjaframework</groupId>
  29. <artifactId>ninja-test-utilities</artifactId>
  30. <version>${ninja.version}</version>
  31. <scope>test</scope>
  32. </dependency>
  33. <dependency>
  34. <groupId>mysql</groupId>
  35. <artifactId>mysql-connector-java</artifactId>
  36. <version>${mysql.version}</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.h2database</groupId>
  40. <artifactId>h2</artifactId>
  41. <version>1.3.174</version>
  42. </dependency>
  43. </dependencies>
  44. <build>
  45. <plugins>
  46. <plugin>
  47. <groupId>org.apache.maven.plugins</groupId>
  48. <artifactId>maven-compiler-plugin</artifactId>
  49. <version>3.1</version>
  50. <configuration>
  51. <source>${java-version}</source>
  52. <target>${java-version}</target>
  53. </configuration>
  54. </plugin>
  55. <plugin>
  56. <groupId>org.apache.maven.plugins</groupId>
  57. <artifactId>maven-war-plugin</artifactId>
  58. <version>2.4</version>
  59. <configuration>
  60. <warName>ninja</warName>
  61. </configuration>
  62. </plugin>
  63. <plugin>
  64. <groupId>org.ninjaframework</groupId>
  65. <artifactId>ninja-maven-plugin</artifactId>
  66. <version>${ninja.version}</version>
  67. </plugin>
  68. <plugin>
  69. <groupId>org.apache.maven.plugins</groupId>
  70. <artifactId>maven-enforcer-plugin</artifactId>
  71. <version>1.0</version>
  72. <executions>
  73. <execution>
  74. <id>enforce-banned-dependencies</id>
  75. <goals>
  76. <goal>enforce</goal>
  77. </goals>
  78. <configuration>
  79. <rules>
  80. <bannedDependencies>
  81. <excludes>
  82. <exclude>commons-logging</exclude>
  83. </excludes>
  84. </bannedDependencies>
  85. </rules>
  86. <fail>true</fail>
  87. </configuration>
  88. </execution>
  89. </executions>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.eclipse.jetty</groupId>
  93. <artifactId>jetty-maven-plugin</artifactId>
  94. <version>${jetty.version}</version>
  95. <configuration>
  96. <contextPath>/</contextPath>
  97. <stopKey>stop</stopKey>
  98. <stopPort>8889</stopPort>
  99. <scanIntervalSeconds>1</scanIntervalSeconds>
  100. <reload>automatic</reload>
  101. <scanTargetPatterns>
  102. <scanTargetPattern>
  103. <directory>target/classes</directory>
  104. <includes>
  105. <include>**/*</include>
  106. </includes>
  107. <excludes>
  108. <exclude>**/*.ftl.html</exclude>
  109. <exclude>assets/**</exclude>
  110. </excludes>
  111. </scanTargetPattern>
  112. </scanTargetPatterns>
  113. </configuration>
  114. </plugin>
  115. <plugin>
  116. <groupId>org.apache.maven.plugins</groupId>
  117. <artifactId>maven-deploy-plugin</artifactId>
  118. <version>2.7</version>
  119. <configuration>
  120. <skip>true</skip>
  121. </configuration>
  122. </plugin>
  123. <plugin>
  124. <artifactId>maven-assembly-plugin</artifactId>
  125. <version>2.4</version>
  126. <configuration>
  127. <descriptorRefs>
  128. <descriptorRef>jar-with-dependencies</descriptorRef>
  129. </descriptorRefs>
  130. <archive>
  131. <manifest>
  132. <mainClass>ninja.standalone.NinjaJetty</mainClass>
  133. </manifest>
  134. </archive>
  135. </configuration>
  136. </plugin>
  137. </plugins>
  138. <resources>
  139. <resource>
  140. <directory>src/main/java</directory>
  141. <includes>
  142. <include>**/*</include>
  143. </includes>
  144. <excludes>
  145. <exclude>**/*.java</exclude>
  146. </excludes>
  147. </resource>
  148. <resource>
  149. <directory>src/main/resources</directory>
  150. <includes>
  151. <include>**/*</include>
  152. </includes>
  153. </resource>
  154. </resources>
  155. </build>
  156. </project>