pom.xml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  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.8</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. <!-- slf4j 日志,配置方法:me.setLogFactory(new Slf4jLogFactory()) -->
  62. <dependency>
  63. <groupId>org.slf4j</groupId>
  64. <artifactId>slf4j-api</artifactId>
  65. <version>1.7.29</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. <!-- c3p0 数据源连接池 -->
  89. <dependency>
  90. <groupId>com.mchange</groupId>
  91. <artifactId>c3p0</artifactId>
  92. <version>0.9.5.3</version>
  93. <scope>provided</scope>
  94. </dependency>
  95. <!-- druid 数据源连接池 -->
  96. <dependency>
  97. <groupId>com.alibaba</groupId>
  98. <artifactId>druid</artifactId>
  99. <version>1.0.29</version>
  100. <scope>provided</scope>
  101. </dependency>
  102. <!-- fastjson json 转换 -->
  103. <dependency>
  104. <groupId>com.alibaba</groupId>
  105. <artifactId>fastjson</artifactId>
  106. <version>1.2.58</version>
  107. <scope>provided</scope>
  108. </dependency>
  109. <!-- HikariCP 数据源连接池 -->
  110. <dependency>
  111. <groupId>com.zaxxer</groupId>
  112. <artifactId>HikariCP</artifactId>
  113. <version>2.3.13</version>
  114. <scope>provided</scope>
  115. </dependency>
  116. <!-- ehcache 缓存 -->
  117. <dependency>
  118. <groupId>net.sf.ehcache</groupId>
  119. <artifactId>ehcache-core</artifactId>
  120. <version>2.6.11</version>
  121. <scope>provided</scope>
  122. </dependency>
  123. <!-- freemarkder 模板引擎 -->
  124. <dependency>
  125. <groupId>org.freemarker</groupId>
  126. <artifactId>freemarker</artifactId>
  127. <version>2.3.20</version>
  128. <scope>provided</scope>
  129. </dependency>
  130. <!-- log4j 日志 -->
  131. <dependency>
  132. <groupId>log4j</groupId>
  133. <artifactId>log4j</artifactId>
  134. <version>1.2.17</version>
  135. <scope>provided</scope>
  136. </dependency>
  137. <!-- velocity 模板引擎 -->
  138. <dependency>
  139. <groupId>org.apache.velocity</groupId>
  140. <artifactId>velocity</artifactId>
  141. <version>1.7</version>
  142. <scope>provided</scope>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.apache.velocity</groupId>
  146. <artifactId>velocity-tools</artifactId>
  147. <version>2.0</version>
  148. <scope>provided</scope>
  149. </dependency>
  150. <!-- cos 文件上传 -->
  151. <dependency>
  152. <groupId>com.jfinal</groupId>
  153. <artifactId>cos</artifactId>
  154. <version>2019.8</version>
  155. <scope>provided</scope>
  156. </dependency>
  157. <!-- redis 客户端 -->
  158. <dependency>
  159. <groupId>redis.clients</groupId>
  160. <artifactId>jedis</artifactId>
  161. <version>2.7.2</version>
  162. <scope>provided</scope>
  163. </dependency>
  164. <dependency>
  165. <groupId>de.ruedigermoeller</groupId>
  166. <artifactId>fst</artifactId>
  167. <version>2.29</version>
  168. <scope>provided</scope>
  169. </dependency>
  170. <!--
  171. <dependency>
  172. <groupId>mysql</groupId>
  173. <artifactId>mysql-connector-java</artifactId>
  174. <version>5.1.44</version>
  175. <scope>provided</scope>
  176. </dependency>
  177. -->
  178. <!-- jackson json 转换 -->
  179. <dependency>
  180. <groupId>com.fasterxml.jackson.core</groupId>
  181. <artifactId>jackson-databind</artifactId>
  182. <version>2.8.11.1</version>
  183. <scope>provided</scope>
  184. </dependency>
  185. <!-- cron4j 任务调度 -->
  186. <dependency>
  187. <groupId>it.sauronsoftware.cron4j</groupId>
  188. <artifactId>cron4j</artifactId>
  189. <version>2.2.5</version>
  190. <scope>provided</scope>
  191. </dependency>
  192. <!-- zxing 二维码生成 -->
  193. <dependency>
  194. <groupId>com.google.zxing</groupId>
  195. <artifactId>javase</artifactId>
  196. <version>3.2.1</version>
  197. <scope>provided</scope>
  198. </dependency>
  199. <!-- cglib 扩展 CglibProxyFactory extends ProxyFactory -->
  200. <dependency>
  201. <groupId>cglib</groupId>
  202. <artifactId>cglib-nodep</artifactId>
  203. <version>3.2.5</version>
  204. <scope>provided</scope>
  205. </dependency>
  206. <!-- 支持在 spring 之中整合使用 jfinal -->
  207. <dependency>
  208. <groupId>org.springframework</groupId>
  209. <artifactId>spring-webmvc</artifactId>
  210. <version>4.3.8.RELEASE</version>
  211. <scope>provided</scope>
  212. </dependency>
  213. </dependencies>
  214. <build>
  215. <resources>
  216. <resource>
  217. <directory>src/main/java</directory>
  218. <includes>
  219. <!-- **/* 前缀用法,可以匹配所有路径 -->
  220. <include>**/*.jf</include>
  221. </includes>
  222. <filtering>false</filtering>
  223. </resource>
  224. </resources>
  225. <plugins>
  226. <plugin>
  227. <groupId>org.apache.maven.plugins</groupId>
  228. <artifactId>maven-compiler-plugin</artifactId>
  229. <version>3.6.1</version>
  230. <configuration>
  231. <!-- <compilerArgument>-parameters</compilerArgument> -->
  232. <source>1.8</source>
  233. <target>1.8</target>
  234. <encoding>UTF-8</encoding>
  235. </configuration>
  236. </plugin>
  237. <plugin>
  238. <groupId>org.apache.maven.plugins</groupId>
  239. <artifactId>maven-javadoc-plugin</artifactId>
  240. <version>2.10.4</version>
  241. <configuration>
  242. <!-- 解决 java8 发布到 maven 异常 -->
  243. <additionalparam>-Xdoclint:none</additionalparam>
  244. <encoding>UTF-8</encoding>
  245. </configuration>
  246. <executions>
  247. <execution>
  248. <id>attach-javadocs</id>
  249. <goals>
  250. <goal>jar</goal>
  251. </goals>
  252. </execution>
  253. </executions>
  254. </plugin>
  255. <!-- 安装源码到本地仓库 -->
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-source-plugin</artifactId>
  259. <version>2.1.2</version>
  260. <executions>
  261. <execution>
  262. <id>attach-sources</id>
  263. <phase>verify</phase>
  264. <goals>
  265. <goal>jar-no-fork</goal>
  266. </goals>
  267. </execution>
  268. </executions>
  269. </plugin>
  270. <plugin>
  271. <groupId>org.apache.maven.plugins</groupId>
  272. <artifactId>maven-gpg-plugin</artifactId>
  273. <version>1.6</version>
  274. <executions>
  275. <execution>
  276. <id>sign-artifacts</id>
  277. <phase>verify</phase>
  278. <goals>
  279. <goal>sign</goal>
  280. </goals>
  281. </execution>
  282. </executions>
  283. </plugin>
  284. </plugins>
  285. </build>
  286. </project>