pom.xml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.jfinal</groupId>
  5. <artifactId>jfinal</artifactId>
  6. <version>4.4-SNAPSHOT</version>
  7. <packaging>jar</packaging>
  8. <name>JFinal</name>
  9. <description>JFinal is a simple, light, rapid,independent, extensible Java WEB + ORM framework. The feature of JFinal looks like ruby on rails especially ActiveRecord.</description>
  10. <url>http://www.jfinal.com</url>
  11. <properties>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  14. </properties>
  15. <issueManagement>
  16. <system>Github Issue</system>
  17. <url>https://gitee.com/jfinal/jfinal/issues</url>
  18. </issueManagement>
  19. <licenses>
  20. <license>
  21. <name>The Apache Software License, Version 2.0</name>
  22. <url>http://apache.org/licenses/LICENSE-2.0.txt</url>
  23. </license>
  24. </licenses>
  25. <developers>
  26. <developer>
  27. <id>jfinal</id>
  28. <name>James</name>
  29. <email>jfinal@126.com</email>
  30. <url>http://jfinal.com/user/1</url>
  31. </developer>
  32. </developers>
  33. <scm>
  34. <connection>scm:git:git@gitee.com:jfinal/jfinal.git</connection>
  35. <developerConnection>scm:git:git@gitee.com:jfinal/jfinal.git</developerConnection>
  36. <url>git@gitee.com:jfinal/jfinal.git</url>
  37. </scm>
  38. <distributionManagement>
  39. <snapshotRepository>
  40. <id>ossrh</id>
  41. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  42. </snapshotRepository>
  43. <repository>
  44. <id>ossrh</id>
  45. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  46. </repository>
  47. </distributionManagement>
  48. <repositories>
  49. </repositories>
  50. <!--
  51. 所有 dependency 都仅仅是可选项,仅当实际用到第三方时才需要引入
  52. 注意在 copy 引入下面的依赖时,要去掉 <scope>provided</scope> 才能生效
  53. -->
  54. <dependencies>
  55. <dependency>
  56. <groupId>junit</groupId>
  57. <artifactId>junit</artifactId>
  58. <version>4.8.2</version>
  59. <scope>test</scope>
  60. </dependency>
  61. <!-- jetty-server 仅用于开发,现已被 jfinal-undertow 项目所取代 -->
  62. <dependency>
  63. <groupId>com.jfinal</groupId>
  64. <artifactId>jetty-server</artifactId>
  65. <version>2019.3</version>
  66. <scope>provided</scope>
  67. </dependency>
  68. <!-- dependency>
  69. <groupId>javax.servlet</groupId>
  70. <artifactId>javax.servlet-api</artifactId>
  71. <version>3.1.0</version>
  72. <scope>provided</scope>
  73. </dependency -->
  74. <!-- jetty-server 开发时支持 JSP -->
  75. <dependency>
  76. <groupId>org.eclipse.jetty</groupId>
  77. <artifactId>jetty-jsp</artifactId>
  78. <version>9.2.26.v20180806</version>
  79. <scope>provided</scope>
  80. </dependency>
  81. <!-- c3p0 数据源连接池 -->
  82. <dependency>
  83. <groupId>com.mchange</groupId>
  84. <artifactId>c3p0</artifactId>
  85. <version>0.9.5.3</version>
  86. <scope>provided</scope>
  87. </dependency>
  88. <!-- druid 数据源连接池 -->
  89. <dependency>
  90. <groupId>com.alibaba</groupId>
  91. <artifactId>druid</artifactId>
  92. <version>1.0.29</version>
  93. <scope>provided</scope>
  94. </dependency>
  95. <!-- fastjson json 转换 -->
  96. <dependency>
  97. <groupId>com.alibaba</groupId>
  98. <artifactId>fastjson</artifactId>
  99. <version>1.2.58</version>
  100. <scope>provided</scope>
  101. </dependency>
  102. <!-- HikariCP 数据源连接池 -->
  103. <dependency>
  104. <groupId>com.zaxxer</groupId>
  105. <artifactId>HikariCP</artifactId>
  106. <version>2.3.13</version>
  107. <scope>provided</scope>
  108. </dependency>
  109. <!-- ehcache 缓存 -->
  110. <dependency>
  111. <groupId>net.sf.ehcache</groupId>
  112. <artifactId>ehcache-core</artifactId>
  113. <version>2.6.11</version>
  114. <scope>provided</scope>
  115. </dependency>
  116. <!-- freemarkder 模板引擎 -->
  117. <dependency>
  118. <groupId>org.freemarker</groupId>
  119. <artifactId>freemarker</artifactId>
  120. <version>2.3.20</version>
  121. <scope>provided</scope>
  122. </dependency>
  123. <!-- log4j 日志 -->
  124. <dependency>
  125. <groupId>log4j</groupId>
  126. <artifactId>log4j</artifactId>
  127. <version>1.2.16</version>
  128. <scope>provided</scope>
  129. </dependency>
  130. <!-- velocity 模板引擎 -->
  131. <dependency>
  132. <groupId>org.apache.velocity</groupId>
  133. <artifactId>velocity</artifactId>
  134. <version>1.7</version>
  135. <scope>provided</scope>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.apache.velocity</groupId>
  139. <artifactId>velocity-tools</artifactId>
  140. <version>2.0</version>
  141. <scope>provided</scope>
  142. </dependency>
  143. <!-- cos 文件上传 -->
  144. <dependency>
  145. <groupId>com.jfinal</groupId>
  146. <artifactId>cos</artifactId>
  147. <version>2019.8</version>
  148. <scope>provided</scope>
  149. </dependency>
  150. <!-- redis 客户端 -->
  151. <dependency>
  152. <groupId>redis.clients</groupId>
  153. <artifactId>jedis</artifactId>
  154. <version>2.7.2</version>
  155. <scope>provided</scope>
  156. </dependency>
  157. <dependency>
  158. <groupId>de.ruedigermoeller</groupId>
  159. <artifactId>fst</artifactId>
  160. <version>2.29</version>
  161. <scope>provided</scope>
  162. </dependency>
  163. <!--
  164. <dependency>
  165. <groupId>mysql</groupId>
  166. <artifactId>mysql-connector-java</artifactId>
  167. <version>5.1.44</version>
  168. <scope>provided</scope>
  169. </dependency>
  170. -->
  171. <!-- jackson json 转换 -->
  172. <dependency>
  173. <groupId>com.fasterxml.jackson.core</groupId>
  174. <artifactId>jackson-databind</artifactId>
  175. <version>2.8.11.1</version>
  176. <scope>provided</scope>
  177. </dependency>
  178. <!-- cron4j 任务调度 -->
  179. <dependency>
  180. <groupId>it.sauronsoftware.cron4j</groupId>
  181. <artifactId>cron4j</artifactId>
  182. <version>2.2.5</version>
  183. <scope>provided</scope>
  184. </dependency>
  185. <!-- zxing 二维码生成 -->
  186. <dependency>
  187. <groupId>com.google.zxing</groupId>
  188. <artifactId>javase</artifactId>
  189. <version>3.2.1</version>
  190. <scope>provided</scope>
  191. </dependency>
  192. <!-- cglib 扩展 CglibProxyFactory extends ProxyFactory -->
  193. <dependency>
  194. <groupId>cglib</groupId>
  195. <artifactId>cglib-nodep</artifactId>
  196. <version>3.2.5</version>
  197. <scope>provided</scope>
  198. </dependency>
  199. <!-- 支持在 spring 之中整合使用 jfinal -->
  200. <dependency>
  201. <groupId>org.springframework</groupId>
  202. <artifactId>spring-webmvc</artifactId>
  203. <version>4.3.8.RELEASE</version>
  204. <scope>provided</scope>
  205. </dependency>
  206. </dependencies>
  207. <build>
  208. <resources>
  209. <resource>
  210. <directory>src/main/java</directory>
  211. <includes>
  212. <!-- **/* 写法,可以将各级子目录下的资源文件被打包 -->
  213. <include>**/*.jf</include>
  214. </includes>
  215. <filtering>false</filtering>
  216. </resource>
  217. </resources>
  218. <plugins>
  219. <plugin>
  220. <groupId>org.apache.maven.plugins</groupId>
  221. <artifactId>maven-compiler-plugin</artifactId>
  222. <version>3.6.1</version>
  223. <configuration>
  224. <!-- <compilerArgument>-parameters</compilerArgument> -->
  225. <source>1.8</source>
  226. <target>1.8</target>
  227. <encoding>UTF-8</encoding>
  228. </configuration>
  229. </plugin>
  230. <plugin>
  231. <groupId>org.apache.maven.plugins</groupId>
  232. <artifactId>maven-javadoc-plugin</artifactId>
  233. <version>2.10.4</version>
  234. <configuration>
  235. <!-- 解决 java8 发布到 maven 异常 -->
  236. <additionalparam>-Xdoclint:none</additionalparam>
  237. <encoding>UTF-8</encoding>
  238. </configuration>
  239. <executions>
  240. <execution>
  241. <id>attach-javadocs</id>
  242. <goals>
  243. <goal>jar</goal>
  244. </goals>
  245. </execution>
  246. </executions>
  247. </plugin>
  248. <!-- 安装源码到本地仓库 -->
  249. <plugin>
  250. <groupId>org.apache.maven.plugins</groupId>
  251. <artifactId>maven-source-plugin</artifactId>
  252. <version>2.1.2</version>
  253. <executions>
  254. <execution>
  255. <id>attach-sources</id>
  256. <phase>verify</phase>
  257. <goals>
  258. <goal>jar-no-fork</goal>
  259. </goals>
  260. </execution>
  261. </executions>
  262. </plugin>
  263. <plugin>
  264. <groupId>org.apache.maven.plugins</groupId>
  265. <artifactId>maven-gpg-plugin</artifactId>
  266. <version>1.6</version>
  267. <executions>
  268. <execution>
  269. <id>sign-artifacts</id>
  270. <phase>verify</phase>
  271. <goals>
  272. <goal>sign</goal>
  273. </goals>
  274. </execution>
  275. </executions>
  276. </plugin>
  277. </plugins>
  278. </build>
  279. </project>