pom.xml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. <build>
  88. <plugins>
  89. <!--安装加密打包插件-->
  90. <plugin>
  91. <groupId>org.apache.maven.plugins</groupId>
  92. <artifactId>maven-install-plugin</artifactId>
  93. <executions>
  94. <execution>
  95. <id>install-core</id>
  96. <phase>clean</phase>
  97. <configuration>
  98. <file>${project.basedir}/../allatori/class-winter-core-${class-winter-maven-plugin.version}.jar</file>
  99. <repositoryLayout>default</repositoryLayout>
  100. <groupId>com.idea-aedi</groupId>
  101. <artifactId>class-winter-core</artifactId>
  102. <version>${class-winter-maven-plugin.version}</version>
  103. <packaging>jar</packaging>
  104. <generatePom>true</generatePom>
  105. </configuration>
  106. <goals>
  107. <goal>install-file</goal>
  108. </goals>
  109. </execution>
  110. <execution>
  111. <id>install-maven</id>
  112. <phase>clean</phase>
  113. <configuration>
  114. <file>${project.basedir}/../allatori/class-winter-maven-plugin-${class-winter-maven-plugin.version}.jar</file>
  115. <repositoryLayout>default</repositoryLayout>
  116. <groupId>com.idea-aedi</groupId>
  117. <artifactId>class-winter-maven-plugin</artifactId>
  118. <version>${class-winter-maven-plugin.version}</version>
  119. <packaging>jar</packaging>
  120. <generatePom>false</generatePom>
  121. <pomFile>${project.basedir}/../allatori/class-winter-maven-plugin-pom.xml</pomFile>
  122. </configuration>
  123. <goals>
  124. <goal>install-file</goal>
  125. </goals>
  126. </execution>
  127. </executions>
  128. </plugin>
  129. <!--复制驱动包-->
  130. <plugin>
  131. <groupId>org.apache.maven.plugins</groupId>
  132. <artifactId>maven-dependency-plugin</artifactId>
  133. <executions>
  134. <execution>
  135. <id>copy-dependencies</id>
  136. <phase>clean</phase>
  137. <goals>
  138. <goal>copy-dependencies</goal>
  139. </goals>
  140. <configuration>
  141. <includeGroupIds>com.jnpf</includeGroupIds>
  142. <includeArtifactIds>jnpf-workflow-common${jnpf.workflow.core.jdk.version}</includeArtifactIds>
  143. <outputDirectory>${project.build.directory}/copylib</outputDirectory>
  144. </configuration>
  145. </execution>
  146. </executions>
  147. </plugin>
  148. <plugin>
  149. <groupId>com.idea-aedi</groupId>
  150. <artifactId>class-winter-maven-plugin</artifactId>
  151. <!-- 相关配置 -->
  152. <configuration>
  153. <!--设置不存在的包表示此项目不加密-->
  154. <includePrefix>jnpf.noexists</includePrefix>
  155. <!--直接覆盖原文件-->
  156. <finalName>${build.finalName}</finalName>
  157. <!--项目中包含的已经加密的包-->
  158. <alreadyProtectedLibs>jnpf-workflow-common${jnpf.workflow.core.jdk.version}-${project.version}.jar,jnpf-workflow-flowable${jnpf.workflow.core.jdk.version}-${project.version}.jar</alreadyProtectedLibs>
  159. <!--检查启动参数-->
  160. <jvmArgCheck>-XX:+DisableAttachMechanism</jvmArgCheck>
  161. </configuration>
  162. <executions>
  163. <execution>
  164. <phase>package</phase>
  165. <goals>
  166. <goal>class-winter</goal>
  167. </goals>
  168. </execution>
  169. </executions>
  170. </plugin>
  171. </plugins>
  172. </build>
  173. </profile>
  174. </profiles>
  175. <build>
  176. <plugins>
  177. <plugin>
  178. <groupId>org.springframework.boot</groupId>
  179. <artifactId>spring-boot-maven-plugin</artifactId>
  180. <configuration>
  181. <mainClass>jnpf.JnpfFlowableApplication</mainClass>
  182. <layout>ZIP</layout>
  183. </configuration>
  184. <executions>
  185. <execution>
  186. <goals>
  187. <goal>repackage</goal>
  188. </goals>
  189. </execution>
  190. </executions>
  191. </plugin>
  192. </plugins>
  193. </build>
  194. </project>