pom.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  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>5.2.0</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>https://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>https://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>jfinal</id>
  41. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  42. </snapshotRepository>
  43. <repository>
  44. <id>jfinal</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.13.2</version>
  59. <scope>test</scope>
  60. </dependency>
  61. <!-- slf4j 日志,配置方法:me.setLogFactory(new Slf4jLogFactory()) -->
  62. <dependency>
  63. <groupId>org.slf4j</groupId>
  64. <artifactId>slf4j-api</artifactId>
  65. <version>2.0.7</version>
  66. <scope>provided</scope>
  67. </dependency>
  68. <!-- jetty-server 仅用于开发,现已被 jfinal-undertow 项目所取代 -->
  69. <dependency>
  70. <groupId>com.jfinal</groupId>
  71. <artifactId>jetty-server</artifactId>
  72. <version>2019.3</version>
  73. <scope>provided</scope>
  74. </dependency>
  75. <!-- dependency>
  76. <groupId>javax.servlet</groupId>
  77. <artifactId>javax.servlet-api</artifactId>
  78. <version>3.1.0</version>
  79. <scope>provided</scope>
  80. </dependency -->
  81. <!-- jetty-server 开发时支持 JSP -->
  82. <dependency>
  83. <groupId>org.eclipse.jetty</groupId>
  84. <artifactId>jetty-jsp</artifactId>
  85. <version>9.2.26.v20180806</version>
  86. <scope>provided</scope>
  87. </dependency>
  88. <!-- cos 文件上传 -->
  89. <dependency>
  90. <groupId>com.jfinal</groupId>
  91. <artifactId>cos</artifactId>
  92. <version>2022.2</version>
  93. <scope>provided</scope>
  94. </dependency>
  95. <!-- common fileupload 文件上传 -->
  96. <dependency>
  97. <groupId>commons-fileupload</groupId>
  98. <artifactId>commons-fileupload</artifactId>
  99. <version>1.5</version>
  100. <scope>provided</scope>
  101. </dependency>
  102. <!-- druid 数据源连接池
  103. 注意:从 druid 1.2.5 版本开始,DruidStatViewHandler 中无法使用父类中的 username
  104. 与 password,所以升级到比 1.2.4 更高版本时,druid 监控将无法无法通过 jfinal
  105. 扩展的 DruidStatViewHandler 使用。可以通过 druid 内置配置方式使用
  106. -->
  107. <dependency>
  108. <groupId>com.alibaba</groupId>
  109. <artifactId>druid</artifactId>
  110. <version>1.2.4</version>
  111. <scope>provided</scope>
  112. </dependency>
  113. <!-- HikariCP 数据源连接池 -->
  114. <dependency>
  115. <groupId>com.zaxxer</groupId>
  116. <artifactId>HikariCP</artifactId>
  117. <version>4.0.3</version><!-- 5.0.0 版本不支持 JDK 8 -->
  118. <scope>provided</scope>
  119. </dependency>
  120. <!-- c3p0 数据源连接池 -->
  121. <dependency>
  122. <groupId>com.mchange</groupId>
  123. <artifactId>c3p0</artifactId>
  124. <version>0.9.5.5</version>
  125. <scope>provided</scope>
  126. </dependency>
  127. <!-- fastjson json 转换 -->
  128. <dependency>
  129. <groupId>com.alibaba</groupId>
  130. <artifactId>fastjson</artifactId>
  131. <version>1.2.83</version>
  132. <scope>provided</scope>
  133. </dependency>
  134. <!-- ehcache 缓存 -->
  135. <dependency>
  136. <groupId>net.sf.ehcache</groupId>
  137. <artifactId>ehcache-core</artifactId>
  138. <version>2.6.11</version>
  139. <scope>provided</scope>
  140. </dependency>
  141. <!-- freemarkder 模板引擎 -->
  142. <dependency>
  143. <groupId>org.freemarker</groupId>
  144. <artifactId>freemarker</artifactId>
  145. <version>2.3.20</version>
  146. <scope>provided</scope>
  147. </dependency>
  148. <!-- log4j 日志 -->
  149. <dependency>
  150. <groupId>log4j</groupId>
  151. <artifactId>log4j</artifactId>
  152. <version>1.2.17</version>
  153. <scope>provided</scope>
  154. </dependency>
  155. <!-- redis 客户端 -->
  156. <dependency>
  157. <groupId>redis.clients</groupId>
  158. <artifactId>jedis</artifactId>
  159. <version>3.6.3</version>
  160. <scope>provided</scope>
  161. </dependency>
  162. <dependency>
  163. <groupId>de.ruedigermoeller</groupId>
  164. <artifactId>fst</artifactId>
  165. <version>2.57</version><!-- 注意:更高版本不支持 jdk 8 -->
  166. <scope>provided</scope>
  167. <exclusions>
  168. <exclusion>
  169. <groupId>com.fasterxml.jackson.core</groupId>
  170. <artifactId>jackson-core</artifactId>
  171. </exclusion>
  172. </exclusions>
  173. </dependency>
  174. <dependency>
  175. <groupId>org.apache.fury</groupId>
  176. <artifactId>fury-core</artifactId>
  177. <version>0.5.1</version>
  178. <scope>provided</scope>
  179. </dependency>
  180. <!--
  181. <dependency>
  182. <groupId>mysql</groupId>
  183. <artifactId>mysql-connector-java</artifactId>
  184. <version>5.1.49</version>
  185. <scope>provided</scope>
  186. </dependency>
  187. -->
  188. <!-- jackson json 转换 -->
  189. <dependency>
  190. <groupId>com.fasterxml.jackson.core</groupId>
  191. <artifactId>jackson-databind</artifactId>
  192. <version>2.11.0</version>
  193. <scope>provided</scope>
  194. </dependency>
  195. <!-- cron4j 任务调度 -->
  196. <dependency>
  197. <groupId>it.sauronsoftware.cron4j</groupId>
  198. <artifactId>cron4j</artifactId>
  199. <version>2.2.5</version>
  200. <scope>provided</scope>
  201. </dependency>
  202. <!-- zxing 二维码生成 -->
  203. <dependency>
  204. <groupId>com.google.zxing</groupId>
  205. <artifactId>javase</artifactId>
  206. <version>3.4.1</version>
  207. <scope>provided</scope>
  208. </dependency>
  209. <!-- javassist 扩展 JavassistProxyFactory extends ProxyFactory -->
  210. <dependency>
  211. <groupId>org.javassist</groupId>
  212. <artifactId>javassist</artifactId>
  213. <version>3.30.2-GA</version>
  214. <scope>provided</scope>
  215. </dependency>
  216. <!-- cglib 扩展 CglibProxyFactory extends ProxyFactory -->
  217. <dependency>
  218. <groupId>cglib</groupId>
  219. <artifactId>cglib-nodep</artifactId>
  220. <version>3.3.0</version>
  221. <scope>provided</scope>
  222. </dependency>
  223. <!-- 支持在 spring 之中整合使用 jfinal -->
  224. <dependency>
  225. <groupId>org.springframework</groupId>
  226. <artifactId>spring-webmvc</artifactId>
  227. <version>5.3.18</version>
  228. <scope>provided</scope>
  229. </dependency>
  230. </dependencies>
  231. <build>
  232. <resources>
  233. <resource>
  234. <directory>src/main/java</directory>
  235. <includes>
  236. <!-- **/* 前缀用法,可以匹配所有路径 -->
  237. <include>**/*.jf</include>
  238. </includes>
  239. <filtering>false</filtering>
  240. </resource>
  241. </resources>
  242. <plugins>
  243. <plugin>
  244. <groupId>org.apache.maven.plugins</groupId>
  245. <artifactId>maven-compiler-plugin</artifactId>
  246. <version>3.8.1</version>
  247. <configuration>
  248. <source>1.8</source>
  249. <target>1.8</target>
  250. <encoding>UTF-8</encoding>
  251. <!-- <compilerArgs><arg>-parameters</arg></compilerArgs> -->
  252. </configuration>
  253. </plugin>
  254. <plugin>
  255. <groupId>org.apache.maven.plugins</groupId>
  256. <artifactId>maven-javadoc-plugin</artifactId>
  257. <version>2.10.4</version>
  258. <configuration>
  259. <!-- 解决 java8 发布到 maven 异常 -->
  260. <additionalparam>-Xdoclint:none</additionalparam>
  261. <encoding>UTF-8</encoding>
  262. </configuration>
  263. <executions>
  264. <execution>
  265. <id>attach-javadocs</id>
  266. <goals>
  267. <goal>jar</goal>
  268. </goals>
  269. </execution>
  270. </executions>
  271. </plugin>
  272. <!-- 安装源码到本地仓库 -->
  273. <plugin>
  274. <groupId>org.apache.maven.plugins</groupId>
  275. <artifactId>maven-source-plugin</artifactId>
  276. <version>2.1.2</version>
  277. <executions>
  278. <execution>
  279. <id>attach-sources</id>
  280. <phase>verify</phase>
  281. <goals>
  282. <goal>jar-no-fork</goal>
  283. </goals>
  284. </execution>
  285. </executions>
  286. </plugin>
  287. <plugin>
  288. <groupId>org.apache.maven.plugins</groupId>
  289. <artifactId>maven-gpg-plugin</artifactId>
  290. <version>1.6</version>
  291. <executions>
  292. <execution>
  293. <id>sign-artifacts</id>
  294. <phase>verify</phase>
  295. <goals>
  296. <goal>sign</goal>
  297. </goals>
  298. </execution>
  299. </executions>
  300. </plugin>
  301. <plugin>
  302. <groupId>org.sonatype.plugins</groupId>
  303. <artifactId>nexus-staging-maven-plugin</artifactId>
  304. <version>1.6.8</version>
  305. <extensions>true</extensions>
  306. <configuration>
  307. <!-- 对应 maven settings.xml 中的 server 配置 -->
  308. <serverId>jfinal</serverId>
  309. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  310. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  311. </configuration>
  312. </plugin>
  313. </plugins>
  314. </build>
  315. </project>