pom.xml 8.9 KB

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