Guest User

Untitled

a guest
Dec 13th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.93 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5.  
  6. <artifactId>artifactId</artifactId>
  7. <!-- If you want to deploy to a war please -->
  8. <!-- replace "jar" with "war" and -->
  9. <!-- comment ninja-standalone dependency and -->
  10. <!-- uncomment the dependency for ninja-servlet -->
  11. <packaging>jar</packaging>
  12. <groupId>groupId</groupId>
  13. <version>1.0-SNAPSHOT</version>
  14.  
  15. <url>http://www.ninjaframework.org</url>
  16.  
  17. <properties>
  18. <ninja.version>5.8.0</ninja.version>
  19. <jetty.version>9.2.10.v20150310</jetty.version>
  20. </properties>
  21.  
  22. <build>
  23. <plugins>
  24. <plugin>
  25. <groupId>org.apache.maven.plugins</groupId>
  26. <artifactId>maven-compiler-plugin</artifactId>
  27. <version>3.2</version>
  28. <configuration>
  29. <source>1.7</source>
  30. <target>1.7</target>
  31. </configuration>
  32. </plugin>
  33. <plugin>
  34. <groupId>org.apache.maven.plugins</groupId>
  35. <artifactId>maven-enforcer-plugin</artifactId>
  36. <version>1.3.1</version>
  37. <executions>
  38. <execution>
  39. <id>enforce-banned-dependencies</id>
  40. <goals>
  41. <goal>enforce</goal>
  42. </goals>
  43. <configuration>
  44. <rules>
  45. <bannedDependencies>
  46. <excludes>
  47. <exclude>commons-logging</exclude>
  48. </excludes>
  49. </bannedDependencies>
  50. </rules>
  51. <fail>true</fail>
  52. </configuration>
  53. </execution>
  54. </executions>
  55. </plugin>
  56. <plugin>
  57. <groupId>org.eclipse.jetty</groupId>
  58. <artifactId>jetty-maven-plugin</artifactId>
  59. <version>${jetty.version}</version>
  60. <configuration>
  61. <contextPath>/</contextPath>
  62. <stopKey>stop</stopKey>
  63. <stopPort>8889</stopPort>
  64. <scanIntervalSeconds>1</scanIntervalSeconds>
  65. <reload>automatic</reload>
  66. <scanTargetPatterns>
  67. <scanTargetPattern>
  68. <directory>target/classes</directory>
  69. <includes>
  70. <include>**/*</include>
  71. </includes>
  72. <excludes>
  73. <exclude>**/*.ftl.html</exclude>
  74. <exclude>assets/**</exclude>
  75. </excludes>
  76. </scanTargetPattern>
  77. </scanTargetPatterns>
  78. <systemProperties>
  79. <systemProperty>
  80. <name>ninja.mode</name>
  81. <value>dev</value>
  82. </systemProperty>
  83. </systemProperties>
  84. </configuration>
  85. </plugin>
  86. <!-- Allows you to run Ninja via the SuperDevMode. -->
  87. <!-- run "mvn ninja:run" on the command line for the best -->
  88. <!-- development experience. -->
  89. <plugin>
  90. <groupId>org.ninjaframework</groupId>
  91. <artifactId>ninja-maven-plugin</artifactId>
  92. <version>${ninja.version}</version>
  93. </plugin>
  94. <plugin>
  95. <groupId>org.apache.maven.plugins</groupId>
  96. <artifactId>maven-deploy-plugin</artifactId>
  97. <version>2.8.2</version>
  98. <configuration>
  99. <skip>true</skip>
  100. </configuration>
  101. </plugin>
  102. <plugin>
  103. <groupId>org.apache.maven.plugins</groupId>
  104. <artifactId>maven-shade-plugin</artifactId>
  105. <version>2.2</version>
  106. <configuration>
  107. <createDependencyReducedPom>true</createDependencyReducedPom>
  108. <filters>
  109. <filter>
  110. <artifact>*:*</artifact>
  111. <excludes>
  112. <exclude>META-INF/*.SF</exclude>
  113. <exclude>META-INF/*.DSA</exclude>
  114. <exclude>META-INF/*.RSA</exclude>
  115. </excludes>
  116. </filter>
  117. </filters>
  118. </configuration>
  119. <executions>
  120. <execution>
  121. <phase>package</phase>
  122. <goals>
  123. <goal>shade</goal>
  124. </goals>
  125. <configuration>
  126. <transformers>
  127. <transformer
  128. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  129. <transformer
  130. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  131. <mainClass>ninja.standalone.NinjaJetty</mainClass>
  132. </transformer>
  133. </transformers>
  134. </configuration>
  135. </execution>
  136. </executions>
  137. </plugin>
  138. </plugins>
  139. <resources>
  140. <resource>
  141. <directory>src/main/java</directory>
  142. <includes>
  143. <include>**/*</include>
  144. </includes>
  145. <excludes>
  146. <exclude>**/*.java</exclude>
  147. </excludes>
  148. </resource>
  149. <resource>
  150. <directory>src/main/resources</directory>
  151. <includes>
  152. <include>**/*</include>
  153. </includes>
  154. </resource>
  155. </resources>
  156. </build>
  157. <dependencies>
  158. <dependency>
  159. <groupId>org.webjars</groupId>
  160. <artifactId>bootstrap</artifactId>
  161. <version>3.3.4</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.webjars</groupId>
  165. <artifactId>jquery</artifactId>
  166. <version>2.1.3</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>com.h2database</groupId>
  170. <artifactId>h2</artifactId>
  171. <version>1.4.186</version>
  172. </dependency>
  173. <!-- If you want to deploy to a war please -->
  174. <!-- comment ninja-standalone dependency and -->
  175. <!-- uncomment the dependency for ninja-servlet -->
  176. <!--
  177. <dependency>
  178. <groupId>org.ninjaframework</groupId>
  179. <artifactId>ninja-servlet</artifactId>
  180. <version>${ninja.version}</version>
  181. </dependency>
  182. -->
  183. <dependency>
  184. <groupId>org.ninjaframework</groupId>
  185. <artifactId>ninja-standalone</artifactId>
  186. <version>${ninja.version}</version>
  187. </dependency>
  188. <dependency>
  189. <groupId>org.ninjaframework</groupId>
  190. <artifactId>ninja-test-utilities</artifactId>
  191. <version>${ninja.version}</version>
  192. <scope>test</scope>
  193. </dependency>
  194. </dependencies>
  195. </project>
Advertisement
Add Comment
Please, Sign In to add comment