pom.xml 7.8 KB

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