pom.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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.0.3</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>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.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>1.7.36</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. <!-- druid 数据源连接池
  96. 注意:从 druid 1.2.5 版本开始,DruidStatViewHandler 中无法使用父类中的 username
  97. 与 password,所以升级到比 1.2.4 更高版本时,druid 监控将无法无法通过 jfinal
  98. 扩展的 DruidStatViewHandler 使用。可以通过 druid 内置配置方式使用
  99. -->
  100. <dependency>
  101. <groupId>com.alibaba</groupId>
  102. <artifactId>druid</artifactId>
  103. <version>1.2.4</version>
  104. <scope>provided</scope>
  105. </dependency>
  106. <!-- HikariCP 数据源连接池 -->
  107. <dependency>
  108. <groupId>com.zaxxer</groupId>
  109. <artifactId>HikariCP</artifactId>
  110. <version>4.0.3</version><!-- 5.0.0 版本不支持 JDK 8 -->
  111. <scope>provided</scope>
  112. </dependency>
  113. <!-- c3p0 数据源连接池 -->
  114. <dependency>
  115. <groupId>com.mchange</groupId>
  116. <artifactId>c3p0</artifactId>
  117. <version>0.9.5.5</version>
  118. <scope>provided</scope>
  119. </dependency>
  120. <!-- fastjson json 转换 -->
  121. <dependency>
  122. <groupId>com.alibaba</groupId>
  123. <artifactId>fastjson</artifactId>
  124. <version>1.2.83</version>
  125. <scope>provided</scope>
  126. </dependency>
  127. <!-- ehcache 缓存 -->
  128. <dependency>
  129. <groupId>net.sf.ehcache</groupId>
  130. <artifactId>ehcache-core</artifactId>
  131. <version>2.6.11</version>
  132. <scope>provided</scope>
  133. </dependency>
  134. <!-- freemarkder 模板引擎 -->
  135. <dependency>
  136. <groupId>org.freemarker</groupId>
  137. <artifactId>freemarker</artifactId>
  138. <version>2.3.20</version>
  139. <scope>provided</scope>
  140. </dependency>
  141. <!-- log4j 日志 -->
  142. <dependency>
  143. <groupId>log4j</groupId>
  144. <artifactId>log4j</artifactId>
  145. <version>1.2.17</version>
  146. <scope>provided</scope>
  147. </dependency>
  148. <!-- redis 客户端 -->
  149. <dependency>
  150. <groupId>redis.clients</groupId>
  151. <artifactId>jedis</artifactId>
  152. <version>3.6.3</version>
  153. <scope>provided</scope>
  154. </dependency>
  155. <dependency>
  156. <groupId>de.ruedigermoeller</groupId>
  157. <artifactId>fst</artifactId>
  158. <version>2.57</version><!-- 注意:更高版本不支持 jdk 8 -->
  159. <scope>provided</scope>
  160. <exclusions>
  161. <exclusion>
  162. <groupId>com.fasterxml.jackson.core</groupId>
  163. <artifactId>jackson-core</artifactId>
  164. </exclusion>
  165. </exclusions>
  166. </dependency>
  167. <!--
  168. <dependency>
  169. <groupId>mysql</groupId>
  170. <artifactId>mysql-connector-java</artifactId>
  171. <version>5.1.49</version>
  172. <scope>provided</scope>
  173. </dependency>
  174. -->
  175. <!-- jackson json 转换 -->
  176. <dependency>
  177. <groupId>com.fasterxml.jackson.core</groupId>
  178. <artifactId>jackson-databind</artifactId>
  179. <version>2.11.0</version>
  180. <scope>provided</scope>
  181. </dependency>
  182. <!-- cron4j 任务调度 -->
  183. <dependency>
  184. <groupId>it.sauronsoftware.cron4j</groupId>
  185. <artifactId>cron4j</artifactId>
  186. <version>2.2.5</version>
  187. <scope>provided</scope>
  188. </dependency>
  189. <!-- zxing 二维码生成 -->
  190. <dependency>
  191. <groupId>com.google.zxing</groupId>
  192. <artifactId>javase</artifactId>
  193. <version>3.4.1</version>
  194. <scope>provided</scope>
  195. </dependency>
  196. <!-- cglib 扩展 CglibProxyFactory extends ProxyFactory -->
  197. <dependency>
  198. <groupId>cglib</groupId>
  199. <artifactId>cglib-nodep</artifactId>
  200. <version>3.3.0</version>
  201. <scope>provided</scope>
  202. </dependency>
  203. <!-- 支持在 spring 之中整合使用 jfinal -->
  204. <dependency>
  205. <groupId>org.springframework</groupId>
  206. <artifactId>spring-webmvc</artifactId>
  207. <version>5.3.18</version>
  208. <scope>provided</scope>
  209. </dependency>
  210. </dependencies>
  211. <build>
  212. <resources>
  213. <resource>
  214. <directory>src/main/java</directory>
  215. <includes>
  216. <!-- **/* 前缀用法,可以匹配所有路径 -->
  217. <include>**/*.jf</include>
  218. </includes>
  219. <filtering>false</filtering>
  220. </resource>
  221. </resources>
  222. <plugins>
  223. <plugin>
  224. <groupId>org.apache.maven.plugins</groupId>
  225. <artifactId>maven-compiler-plugin</artifactId>
  226. <version>3.8.1</version>
  227. <configuration>
  228. <source>1.8</source>
  229. <target>1.8</target>
  230. <encoding>UTF-8</encoding>
  231. <!-- <compilerArgs><arg>-parameters</arg></compilerArgs> -->
  232. </configuration>
  233. </plugin>
  234. <plugin>
  235. <groupId>org.apache.maven.plugins</groupId>
  236. <artifactId>maven-javadoc-plugin</artifactId>
  237. <version>2.10.4</version>
  238. <configuration>
  239. <!-- 解决 java8 发布到 maven 异常 -->
  240. <additionalparam>-Xdoclint:none</additionalparam>
  241. <encoding>UTF-8</encoding>
  242. </configuration>
  243. <executions>
  244. <execution>
  245. <id>attach-javadocs</id>
  246. <goals>
  247. <goal>jar</goal>
  248. </goals>
  249. </execution>
  250. </executions>
  251. </plugin>
  252. <!-- 安装源码到本地仓库 -->
  253. <plugin>
  254. <groupId>org.apache.maven.plugins</groupId>
  255. <artifactId>maven-source-plugin</artifactId>
  256. <version>2.1.2</version>
  257. <executions>
  258. <execution>
  259. <id>attach-sources</id>
  260. <phase>verify</phase>
  261. <goals>
  262. <goal>jar-no-fork</goal>
  263. </goals>
  264. </execution>
  265. </executions>
  266. </plugin>
  267. <plugin>
  268. <groupId>org.apache.maven.plugins</groupId>
  269. <artifactId>maven-gpg-plugin</artifactId>
  270. <version>1.6</version>
  271. <executions>
  272. <execution>
  273. <id>sign-artifacts</id>
  274. <phase>verify</phase>
  275. <goals>
  276. <goal>sign</goal>
  277. </goals>
  278. </execution>
  279. </executions>
  280. </plugin>
  281. <plugin>
  282. <groupId>org.sonatype.plugins</groupId>
  283. <artifactId>nexus-staging-maven-plugin</artifactId>
  284. <version>1.6.8</version>
  285. <extensions>true</extensions>
  286. <configuration>
  287. <!-- 对应 maven settings.xml 中的 server 配置 -->
  288. <serverId>ossrh</serverId>
  289. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  290. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  291. </configuration>
  292. </plugin>
  293. </plugins>
  294. </build>
  295. </project>