pom.xml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <parent>
  5. <groupId>com.lc.ibps.provider</groupId>
  6. <artifactId>ibps-provider-root</artifactId>
  7. <version>3.3.7-LC.RELEASE</version>
  8. <relativePath>../../pom.xml</relativePath>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>ibps-provider-form-boot</artifactId>
  12. <properties>
  13. <java.version>1.8</java.version>
  14. <maven.compiler.source>1.8</maven.compiler.source>
  15. <maven.compiler.target>1.8</maven.compiler.target>
  16. <jboss-logging.version>3.3.0.Final</jboss-logging.version>
  17. <maven.build.timestamp.format>yyyyMMdd-HHmmss</maven.build.timestamp.format>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>com.lc.ibps.cloud</groupId>
  22. <artifactId>ibps-basic-discovery</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.lc.ibps.cloud</groupId>
  26. <artifactId>ibps-basic-config</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.jboss.logging</groupId>
  30. <artifactId>jboss-logging</artifactId>
  31. <version>${jboss-logging.version}</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-log4j2</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.lc.ibps.cloud</groupId>
  39. <artifactId>ibps-basic-provider</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.lc.ibps.cloud</groupId>
  43. <artifactId>ibps-basic-monitor</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.lc.ibps.cloud</groupId>
  47. <artifactId>ibps-basic-validator</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>com.lc.ibps.cloud</groupId>
  51. <artifactId>ibps-basic-swagger</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.lc.ibps.cloud</groupId>
  55. <artifactId>ibps-oauth-client-feignclient</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.lc.ibps.provider.base</groupId>
  59. <artifactId>ibps-provider-platform-client</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.lc.ibps.cloud.base</groupId>
  63. <artifactId>ibps-comp-file-server-client</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.lc.ibps.base</groupId>
  67. <artifactId>ibps-base-db</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.lc.ibps.base</groupId>
  71. <artifactId>ibps-base-service</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.lc.ibps.form</groupId>
  75. <artifactId>ibps-form-biz</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.lc.ibps.components</groupId>
  79. <artifactId>ibps-component-poi</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.lc.ibps.components</groupId>
  83. <artifactId>ibps-component-poi-web</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>com.lc.ibps.components</groupId>
  87. <artifactId>ibps-component-cache</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>com.lc.ibps.message</groupId>
  91. <artifactId>ibps-message-producer</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.lc.ibps.provider.base</groupId>
  95. <artifactId>ibps-provider-platform-client</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.lc.ibps.provider.base</groupId>
  99. <artifactId>ibps-provider-bpmn-client</artifactId>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.lc.ibps.cloud.base</groupId>
  103. <artifactId>ibps-comp-file-server-client</artifactId>
  104. </dependency>
  105. <dependency>
  106. <groupId>com.lc.ibps.excessive</groupId>
  107. <artifactId>ibps-excessive-platform</artifactId>
  108. </dependency>
  109. <!-- https://mvnrepository.com/artifact/net.sf.ezmorph/ezmorph -->
  110. <dependency>
  111. <groupId>net.sf.ezmorph</groupId>
  112. <artifactId>ezmorph</artifactId>
  113. </dependency>
  114. <!-- https://mvnrepository.com/artifact/net.sf.morph/morph -->
  115. <dependency>
  116. <groupId>net.sf.morph</groupId>
  117. <artifactId>morph</artifactId>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.alibaba</groupId>
  121. <artifactId>druid</artifactId>
  122. </dependency>
  123. <dependency>
  124. <groupId>mysql</groupId>
  125. <artifactId>mysql-connector-java</artifactId>
  126. </dependency>
  127. <dependency>
  128. <groupId>com.microsoft.sqlserver</groupId>
  129. <artifactId>mssql-jdbc</artifactId>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.oracle</groupId>
  133. <artifactId>oracledriver</artifactId>
  134. </dependency>
  135. <dependency>
  136. <groupId>fakepath</groupId>
  137. <artifactId>postgresql</artifactId>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.springframework.boot</groupId>
  141. <artifactId>spring-boot-starter-test</artifactId>
  142. <scope>test</scope>
  143. </dependency>
  144. </dependencies>
  145. <build>
  146. <plugins>
  147. <plugin>
  148. <artifactId>maven-clean-plugin</artifactId>
  149. <version>3.0.0</version>
  150. <configuration>
  151. <source>1.8</source>
  152. <target>1.8</target>
  153. <encoding>UTF-8</encoding>
  154. </configuration>
  155. </plugin>
  156. <plugin>
  157. <artifactId>maven-compiler-plugin</artifactId>
  158. <version>3.0</version>
  159. <configuration>
  160. <source>1.8</source>
  161. <target>1.8</target>
  162. <fork>true</fork>
  163. <encoding>UTF-8</encoding>
  164. </configuration>
  165. </plugin>
  166. <plugin>
  167. <groupId>org.apache.maven.plugins</groupId>
  168. <artifactId>maven-dependency-plugin</artifactId>
  169. <configuration>
  170. <source>1.8</source>
  171. <target>1.8</target>
  172. <encoding>UTF-8</encoding>
  173. </configuration>
  174. <executions>
  175. <execution>
  176. <id>copy-dependencies</id>
  177. <phase>prepare-package</phase>
  178. <goals>
  179. <goal>copy-dependencies</goal>
  180. </goals>
  181. <configuration>
  182. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  183. <overWriteReleases>false</overWriteReleases>
  184. <overWriteSnapshots>false</overWriteSnapshots>
  185. <overWriteIfNewer>true</overWriteIfNewer>
  186. </configuration>
  187. </execution>
  188. </executions>
  189. </plugin>
  190. <plugin>
  191. <artifactId>maven-antrun-plugin</artifactId>
  192. <executions>
  193. <execution>
  194. <phase>package</phase>
  195. <goals>
  196. <goal>run</goal>
  197. </goals>
  198. <configuration>
  199. <tasks>
  200. <property name="classes.dir" value="${project.build.directory}/classes-exclude"/>
  201. <property name="lib.dir" value="${project.build.directory}/lib-exclude"/>
  202. <copy todir="${classes.dir}" includeEmptyDirs="false">
  203. <fileset dir="${project.build.directory}/classes">
  204. </fileset>
  205. </copy>
  206. <copy todir="${lib.dir}">
  207. <fileset dir="${project.build.directory}/lib"/>
  208. </copy>
  209. <unjar dest="${classes.dir}" overwrite="false">
  210. <patternset>
  211. <include name="**/appd"/>
  212. <include name="**/*.sh"/>
  213. <include name="**/*.bat"/>
  214. <include name="**/readMe"/>
  215. <include name="**/*.xsd"/>
  216. <include name="**/*.xml"/>
  217. <include name="**/*.sql"/>
  218. <include name="**/*.ftl"/>
  219. <include name="**/*.yml"/>
  220. <include name="**/*.txt"/>
  221. <include name="**/*.conf"/>
  222. <include name="**/*.properties"/>
  223. <include name="**/*.setting"/>
  224. <include name="**/*.env"/>
  225. <exclude name="**/*.map.xml"/>
  226. <exclude name="org/activiti/engine/mapping/**/*.xml"/>
  227. </patternset>
  228. <fileset dir="${lib.dir}">
  229. <include name="lc-*.jar"/>
  230. <include name="ibps-*.jar"/>
  231. </fileset>
  232. </unjar>
  233. <!--
  234. <delete includeEmptyDirs="true">
  235. <fileset dir="${lib.dir}">
  236. <include name="lc-*.jar"/>
  237. <include name="ibps-*.jar"/>
  238. </fileset>
  239. </delete>
  240. -->
  241. <property name="jarname" value="form.jar"/>
  242. <property name="jarfile.exclude.basedir" value="${project.build.directory}/${project.artifactId}-exclude"/>
  243. <property name="jarfile.exclude.name" value="${jarfile.exclude.basedir}/${jarname}"/>
  244. <copy todir="${jarfile.exclude.basedir}" includeEmptyDirs="false">
  245. <fileset dir="${classes.dir}">
  246. <exclude name="**/*.class" />
  247. </fileset>
  248. </copy>
  249. <copy todir="${jarfile.exclude.basedir}/lib">
  250. <fileset dir="${lib.dir}"/>
  251. </copy>
  252. <pathconvert property="exclude.lib" pathsep=" ">
  253. <mapper>
  254. <chainedmapper>
  255. <flattenmapper />
  256. <globmapper from="*" to="lib/*" />
  257. </chainedmapper>
  258. </mapper>
  259. <fileset dir="${jarfile.exclude.basedir}/lib">
  260. <include name="*.jar" />
  261. </fileset>
  262. </pathconvert>
  263. <jar destfile="${jarfile.exclude.name}">
  264. <manifest>
  265. <attribute name="Class-Path" value=". ${exclude.lib}"/>
  266. <attribute name="Main-Class" value="com.lc.ibps.FormApplication"/>
  267. </manifest>
  268. <fileset dir="${classes.dir}">
  269. <include name="**/*.class" />
  270. </fileset>
  271. </jar>
  272. <delete includeEmptyDirs="true">
  273. <fileset dir="${classes.dir}"/>
  274. <fileset dir="${lib.dir}"/>
  275. <fileset dir="${project.build.directory}/lib"/>
  276. </delete>
  277. </tasks>
  278. </configuration>
  279. </execution>
  280. </executions>
  281. </plugin>
  282. </plugins>
  283. </build>
  284. </project>