pom.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. 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>org.durcframework</groupId>
  5. <artifactId>autoCode</artifactId>
  6. <version>1.0.0</version>
  7. <packaging>war</packaging>
  8. <dependencies>
  9. <dependency>
  10. <groupId>net.oschina.durcframework</groupId>
  11. <artifactId>durcframework-core</artifactId>
  12. <version>1.0.16</version>
  13. </dependency>
  14. <dependency>
  15. <groupId>com.alibaba</groupId>
  16. <artifactId>druid</artifactId>
  17. <version>1.0.4</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>com.alibaba</groupId>
  21. <artifactId>fastjson</artifactId>
  22. <version>1.1.41</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>mysql</groupId>
  26. <artifactId>mysql-connector-java</artifactId>
  27. <version>5.1.31</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.apache.velocity</groupId>
  31. <artifactId>velocity</artifactId>
  32. <version>1.7</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.sitemesh</groupId>
  36. <artifactId>sitemesh</artifactId>
  37. <version>3.0.0</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>junit</groupId>
  41. <artifactId>junit</artifactId>
  42. <version>4.8</version>
  43. <scope>test</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.apache.tomcat</groupId>
  47. <artifactId>servlet-api</artifactId>
  48. <version>6.0.29</version>
  49. <scope>provided</scope>
  50. </dependency>
  51. <!-- 支持的数据源,默认已经支持mysql -->
  52. <dependency>
  53. <groupId>net.sourceforge.jtds</groupId>
  54. <artifactId>jtds</artifactId>
  55. <version>1.2.2</version>
  56. </dependency>
  57. <!-- https://mvnrepository.com/artifact/com.oracle/ojdbc6 -->
  58. <dependency>
  59. <groupId>com.oracle</groupId>
  60. <artifactId>ojdbc6</artifactId>
  61. <version>12.1.0.1-atlassian-hosted</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.apache.ant</groupId>
  65. <artifactId>ant</artifactId>
  66. <version>1.8.2</version>
  67. <exclusions>
  68. <exclusion>
  69. <groupId>org.apache.ant</groupId>
  70. <artifactId>ant-launcher</artifactId>
  71. </exclusion>
  72. </exclusions>
  73. </dependency>
  74. </dependencies>
  75. <build>
  76. <finalName>autoCode</finalName>
  77. <plugins>
  78. <!-- 打包时跳过测试 -->
  79. <plugin>
  80. <groupId>org.apache.maven.plugins</groupId>
  81. <artifactId>maven-surefire-plugin</artifactId>
  82. <version>2.18.1</version>
  83. <configuration>
  84. <skipTests>true</skipTests>
  85. </configuration>
  86. </plugin>
  87. <!-- mvn jetty:run -->
  88. <plugin>
  89. <groupId>org.mortbay.jetty</groupId>
  90. <artifactId>maven-jetty-plugin</artifactId>
  91. <version>6.1.26</version>
  92. <configuration>
  93. <contextPath>/autoCode</contextPath>
  94. <connectors>
  95. <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
  96. <port>8088</port>
  97. </connector>
  98. </connectors>
  99. <reload>automatic</reload>
  100. <scanIntervalSeconds>3</scanIntervalSeconds>
  101. <systemProperties>
  102. <systemProperty>
  103. <name>org.mortbay.util.URI.charset</name>
  104. <value>UTF-8</value>
  105. </systemProperty>
  106. </systemProperties>
  107. </configuration>
  108. </plugin>
  109. <plugin>
  110. <groupId>org.apache.maven.plugins</groupId>
  111. <artifactId>maven-compiler-plugin</artifactId>
  112. <configuration>
  113. <source>1.6</source>
  114. <target>1.6</target>
  115. <encoding>UTF-8</encoding>
  116. </configuration>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-war-plugin</artifactId>
  121. <configuration>
  122. <warSourceDirectory>src/main/webapp</warSourceDirectory>
  123. </configuration>
  124. </plugin>
  125. <plugin>
  126. <!-- YUI Compressor Maven压缩插件 -->
  127. <groupId>net.alchim31.maven</groupId>
  128. <artifactId>yuicompressor-maven-plugin</artifactId>
  129. <version>1.3.0</version>
  130. <configuration>
  131. <!-- 读取js,css文件采用UTF-8编码 -->
  132. <encoding>UTF-8</encoding>
  133. <!-- 不显示js可能的错误 -->
  134. <jswarn>false</jswarn>
  135. <!-- 若存在已压缩的文件,会先对比源文件是否有改动。有改动便压缩,无改动就不压缩 -->
  136. <force>false</force>
  137. <!-- 在指定的列号后插入新行 -->
  138. <linebreakpos>-1</linebreakpos>
  139. <!-- 压缩之前先执行聚合文件操作 -->
  140. <preProcessAggregates>true</preProcessAggregates>
  141. <!-- 压缩后保存文件后缀 -->
  142. <suffix>.min</suffix>
  143. <!-- 源目录,即需压缩的根目录 -->
  144. <sourceDirectory>src/main/webapp/easyui/res/js</sourceDirectory>
  145. <!-- 压缩js和css文件 -->
  146. <includes>
  147. <!-- 只压缩src/main/webapp/easyui/res/js/common.js -->
  148. <include>common.js</include>
  149. </includes>
  150. <!-- 以下目录和文件不会被压缩 -->
  151. <excludes>
  152. <exclude>easyui/locale/*.js</exclude>
  153. <exclude>easyui/themes/*.css</exclude>
  154. </excludes>
  155. <!-- 压缩后输出文件目录 -->
  156. <outputDirectory>src/main/webapp/easyui/res/js</outputDirectory>
  157. <!-- 聚合文件 -->
  158. <aggregations>
  159. <aggregation>
  160. <!-- 合并每一个文件后插入一新行 -->
  161. <insertNewLine>true</insertNewLine>
  162. <!-- 需合并文件的根文件夹 -->
  163. <inputDir>src/main/webapp/easyui/res/js</inputDir>
  164. <!-- 最终合并的输出文件 -->
  165. <output>src/main/webapp/easyui/res/js/common.js</output>
  166. <!-- 把以下js文件合并成一个js文件,是按顺序合并的 -->
  167. <!--
  168. 运行命令mvn yuicompressor:compress
  169. 会把下面几个js文件压缩到src/main/webapp/js/common.js中
  170. 并生成一个common.min.js
  171. 不会影响到其它js,css
  172. -->
  173. <includes>
  174. <include>Action.js</include>
  175. <include>Crud.js</include>
  176. <include>EventUtil.js</include>
  177. <include>FunUtil.js</include>
  178. <include>HtmlUtil.js</include>
  179. <include>MaskUtil.js</include>
  180. <include>MsgUtil.js</include>
  181. <include>VelocityContext.js</include>
  182. </includes>
  183. </aggregation>
  184. </aggregations>
  185. </configuration>
  186. </plugin>
  187. </plugins>
  188. </build>
  189. </project>