pom.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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. <artifactId>jnpf-workflow</artifactId>
  6. <groupId>com.jnpf</groupId>
  7. <version>1.0.0-RELEASE</version>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <packaging>jar</packaging>
  11. <artifactId>jnpf-workflow-admin</artifactId>
  12. <dependencies>
  13. <dependency>
  14. <groupId>org.springframework.boot</groupId>
  15. <artifactId>spring-boot-starter-web</artifactId>
  16. </dependency>
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-validation</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>com.mysql</groupId>
  23. <artifactId>mysql-connector-j</artifactId>
  24. </dependency>
  25. <!-- Oracle-->
  26. <dependency>
  27. <groupId>com.oracle.database.jdbc</groupId>
  28. <artifactId>ojdbc8</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.oracle.database.nls</groupId>
  32. <artifactId>orai18n</artifactId>
  33. </dependency>
  34. <!-- dm -->
  35. <dependency>
  36. <groupId>com.dameng</groupId>
  37. <artifactId>DmJdbcDriver18</artifactId>
  38. </dependency>
  39. <!-- sqlserver -->
  40. <dependency>
  41. <groupId>com.microsoft.sqlserver</groupId>
  42. <artifactId>mssql-jdbc</artifactId>
  43. </dependency>
  44. <!--PostGre-->
  45. <dependency>
  46. <groupId>org.postgresql</groupId>
  47. <artifactId>postgresql</artifactId>
  48. </dependency>
  49. <!--GaussDB-->
  50. <!--<dependency>
  51. <groupId>org.opengauss</groupId>
  52. <artifactId>opengauss-jdbc</artifactId>
  53. </dependency>-->
  54. <!--HighgoDB-->
  55. <!--<dependency>
  56. <groupId>com.highgo</groupId>
  57. <artifactId>hgdb-pgjdbc</artifactId>
  58. </dependency>-->
  59. </dependencies>
  60. <profiles>
  61. <profile>
  62. <id>flowable</id>
  63. <activation>
  64. <jdk>[,]</jdk>
  65. </activation>
  66. <dependencies>
  67. <dependency>
  68. <groupId>com.jnpf</groupId>
  69. <artifactId>jnpf-workflow-flowable${jnpf.workflow.core.jdk.version}</artifactId>
  70. <version>${project.version}</version>
  71. </dependency>
  72. </dependencies>
  73. </profile>
  74. <!--<profile>
  75. <id>activiti</id>
  76. <dependencies>
  77. <dependency>
  78. <groupId>com.jnpf</groupId>
  79. <artifactId>jnpf-workflow-activiti</artifactId>
  80. <version>1.0.0-RELEASE</version>
  81. </dependency>
  82. </dependencies>
  83. </profile>-->
  84. <profile>
  85. <!--JAR包加密-->
  86. <id>encrypted</id>
  87. <activation>
  88. <jdk>[,]</jdk>
  89. </activation>
  90. <build>
  91. <plugins>
  92. <!--安装加密打包插件-->
  93. <plugin>
  94. <groupId>org.apache.maven.plugins</groupId>
  95. <artifactId>maven-install-plugin</artifactId>
  96. <executions>
  97. <execution>
  98. <id>install-core</id>
  99. <phase>clean</phase>
  100. <configuration>
  101. <file>${project.basedir}/../allatori/class-winter-core-${class-winter-maven-plugin.version}.jar</file>
  102. <repositoryLayout>default</repositoryLayout>
  103. <groupId>com.idea-aedi</groupId>
  104. <artifactId>class-winter-core</artifactId>
  105. <version>${class-winter-maven-plugin.version}</version>
  106. <packaging>jar</packaging>
  107. <generatePom>true</generatePom>
  108. </configuration>
  109. <goals>
  110. <goal>install-file</goal>
  111. </goals>
  112. </execution>
  113. <execution>
  114. <id>install-maven</id>
  115. <phase>clean</phase>
  116. <configuration>
  117. <file>${project.basedir}/../allatori/class-winter-maven-plugin-${class-winter-maven-plugin.version}.jar</file>
  118. <repositoryLayout>default</repositoryLayout>
  119. <groupId>com.idea-aedi</groupId>
  120. <artifactId>class-winter-maven-plugin</artifactId>
  121. <version>${class-winter-maven-plugin.version}</version>
  122. <packaging>jar</packaging>
  123. <generatePom>false</generatePom>
  124. <pomFile>${project.basedir}/../allatori/class-winter-maven-plugin-pom.xml</pomFile>
  125. </configuration>
  126. <goals>
  127. <goal>install-file</goal>
  128. </goals>
  129. </execution>
  130. </executions>
  131. </plugin>
  132. <!--复制驱动包-->
  133. <plugin>
  134. <groupId>org.apache.maven.plugins</groupId>
  135. <artifactId>maven-dependency-plugin</artifactId>
  136. <executions>
  137. <execution>
  138. <id>copy-dependencies</id>
  139. <phase>clean</phase>
  140. <goals>
  141. <goal>copy-dependencies</goal>
  142. </goals>
  143. <configuration>
  144. <includeGroupIds>com.jnpf</includeGroupIds>
  145. <includeArtifactIds>jnpf-workflow-common${jnpf.workflow.core.jdk.version}</includeArtifactIds>
  146. <outputDirectory>${project.build.directory}/copylib</outputDirectory>
  147. </configuration>
  148. </execution>
  149. </executions>
  150. </plugin>
  151. <plugin>
  152. <groupId>com.idea-aedi</groupId>
  153. <artifactId>class-winter-maven-plugin</artifactId>
  154. <!-- 相关配置 -->
  155. <configuration>
  156. <!--设置不存在的包表示此项目不加密-->
  157. <includePrefix>jnpf.noexists</includePrefix>
  158. <!--直接覆盖原文件-->
  159. <finalName>${project.build.finalName}</finalName>
  160. <!--项目中包含的已经加密的包-->
  161. <alreadyProtectedLibs>jnpf-workflow-common${jnpf.workflow.core.jdk.version}-${project.version}.jar,jnpf-workflow-flowable${jnpf.workflow.core.jdk.version}-${project.version}.jar</alreadyProtectedLibs>
  162. <!--检查启动参数-->
  163. <jvmArgCheck>-XX:+DisableAttachMechanism</jvmArgCheck>
  164. </configuration>
  165. <executions>
  166. <execution>
  167. <phase>package</phase>
  168. <goals>
  169. <goal>class-winter</goal>
  170. </goals>
  171. </execution>
  172. </executions>
  173. </plugin>
  174. </plugins>
  175. </build>
  176. </profile>
  177. </profiles>
  178. <build>
  179. <plugins>
  180. <plugin>
  181. <groupId>org.springframework.boot</groupId>
  182. <artifactId>spring-boot-maven-plugin</artifactId>
  183. <configuration>
  184. <mainClass>jnpf.JnpfFlowableApplication</mainClass>
  185. <layout>ZIP</layout>
  186. </configuration>
  187. <executions>
  188. <execution>
  189. <goals>
  190. <goal>repackage</goal>
  191. </goals>
  192. </execution>
  193. </executions>
  194. </plugin>
  195. </plugins>
  196. </build>
  197. </project>