pom.xml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.dragonsoft.dcuc</groupId>
  6. <artifactId>approve-gateway</artifactId>
  7. <version>1.3.0-tjdsj-SNAPSHOT</version>
  8. <name>approve-gateway</name>
  9. <description>approve-gateway</description>
  10. <properties>
  11. <!--revisions需写死,用于标识打包的版本号,不可删除-->
  12. <revision>1.3.0-tjdsj-SNAPSHOT</revision>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <maven.compiler.source>1.8</maven.compiler.source>
  15. <maven.compiler.target>1.8</maven.compiler.target>
  16. </properties>
  17. <dependencyManagement>
  18. <dependencies>
  19. <!-- 导入duceap-cloud 2.1 POM定义-->
  20. <dependency>
  21. <groupId>com.dragonsoft</groupId>
  22. <artifactId>duceap-cloud-parent</artifactId>
  23. <version>2.1.0-SNAPSHOT</version>
  24. <type>pom</type>
  25. <scope>import</scope>
  26. </dependency>
  27. </dependencies>
  28. </dependencyManagement>
  29. <dependencies>
  30. <dependency>
  31. <artifactId>approve-common</artifactId>
  32. <groupId>com.dragonsoft.dcuc</groupId>
  33. <version>1.0.0-SNAPSHOT</version>
  34. <exclusions>
  35. <exclusion>
  36. <groupId>com.dragonsoft</groupId>
  37. <artifactId>duceap-boot-starter-web</artifactId>
  38. </exclusion>
  39. </exclusions>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.dragonsoft</groupId>
  43. <artifactId>duceap-cloud-starter</artifactId>
  44. <exclusions>
  45. <exclusion>
  46. <artifactId>HdrHistogram</artifactId>
  47. <groupId>org.hdrhistogram</groupId>
  48. </exclusion>
  49. </exclusions>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.cloud</groupId>
  53. <artifactId>spring-cloud-starter-zuul</artifactId>
  54. <version>2.0.0.M2</version>
  55. </dependency>
  56. <!--配置处理-->
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-configuration-processor</artifactId>
  60. <optional>true</optional>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-test</artifactId>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.junit.platform</groupId>
  69. <artifactId>junit-platform-launcher</artifactId>
  70. <scope>test</scope>
  71. </dependency>
  72. <!-- dcuc登陆 -->
  73. <dependency>
  74. <groupId>com.dragonsoft</groupId>
  75. <artifactId>duceap-security-dcuc</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.dragonsoft</groupId>
  79. <artifactId>duceap-security-dids</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.projectlombok</groupId>
  83. <artifactId>lombok</artifactId>
  84. <version>1.18.12</version>
  85. <scope>provided</scope>
  86. </dependency>
  87. </dependencies>
  88. <repositories>
  89. <repository>
  90. <id>duceap-releases</id>
  91. <name>Team Nexus Release Repository</name>
  92. <url>http://192.168.6.13:8081/nexus/content/groups/public</url>
  93. <releases>
  94. <enabled>true</enabled>
  95. <updatePolicy>always</updatePolicy>
  96. </releases>
  97. <snapshots>
  98. <enabled>true</enabled>
  99. <updatePolicy>always</updatePolicy>
  100. </snapshots>
  101. </repository>
  102. </repositories>
  103. <distributionManagement>
  104. <snapshotRepository>
  105. <id>duceap-snapshots</id>
  106. <name>Team Nexus Snapshot Repository</name>
  107. <url>http://192.168.6.13:8081/nexus/content/repositories/duceap-snapshots</url>
  108. <uniqueVersion>false</uniqueVersion>
  109. </snapshotRepository>
  110. </distributionManagement>
  111. <profiles>
  112. <profile>
  113. <id>jar</id>
  114. <activation>
  115. <activeByDefault>true</activeByDefault>
  116. </activation>
  117. <properties>
  118. <project.packaging>jar</project.packaging>
  119. </properties>
  120. <build>
  121. <plugins>
  122. <plugin>
  123. <artifactId>maven-dependency-plugin</artifactId>
  124. <version>2.6</version>
  125. <executions>
  126. <execution>
  127. <id>copy-libs</id>
  128. <phase>package</phase>
  129. <goals>
  130. <goal>copy-dependencies</goal>
  131. </goals>
  132. <configuration>
  133. <!--<excludeScope>provided</excludeScope>-->
  134. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  135. <!--取消依赖包的时间戳-->
  136. <useBaseVersion>true</useBaseVersion>
  137. <!--排除licenseignore包,用来禁用许可开关,防止生产环境通过关闭开关,绕过许可-->
  138. <!-- <excludeArtifactIds>duceap-support-licenseignore</excludeArtifactIds>-->
  139. </configuration>
  140. </execution>
  141. <execution>
  142. <id>unpack</id>
  143. <phase>package</phase>
  144. <goals>
  145. <goal>unpack</goal>
  146. </goals>
  147. <configuration>
  148. <artifactItems>
  149. <artifactItem>
  150. <groupId>com.dragonsoft</groupId>
  151. <artifactId>duceap-base</artifactId>
  152. <!--根据框架版本修改-->
  153. <version>2.1.0-SNAPSHOT</version>
  154. <!--<version>2.1.0-SNAPSHOT</version>-->
  155. <outputDirectory>${project.build.directory}/temp</outputDirectory>
  156. <!--加入平台的启动脚本-->
  157. <includes>META-INF/scripts/**</includes>
  158. </artifactItem>
  159. </artifactItems>
  160. </configuration>
  161. </execution>
  162. </executions>
  163. </plugin>
  164. <plugin>
  165. <artifactId>maven-assembly-plugin</artifactId>
  166. <version>2.5.5</version>
  167. <executions>
  168. <execution>
  169. <id>make-assembly</id>
  170. <phase>package</phase>
  171. <goals>
  172. <goal>single</goal>
  173. </goals>
  174. <configuration>
  175. <finalName>${project.name}-${project.version}</finalName>
  176. <appendAssemblyId>false</appendAssemblyId>
  177. <!--配置描述文件路径-->
  178. <descriptor>src/main/assembly/assembly.xml</descriptor>
  179. </configuration>
  180. </execution>
  181. </executions>
  182. </plugin>
  183. <plugin>
  184. <groupId>org.apache.maven.plugins</groupId>
  185. <artifactId>maven-jar-plugin</artifactId>
  186. <version>2.4</version>
  187. <configuration>
  188. <archive>
  189. <manifest>
  190. <!--运行jar包时运行的主类,要求类全名-->
  191. <mainClass>com.dragonsoft.dcuc.approvegateway.ApproveGatewayApplication</mainClass>
  192. <addClasspath>true</addClasspath>
  193. <!--取消MANIFEST.MF中classpath下的时间戳-->
  194. <useUniqueVersions>false</useUniqueVersions>
  195. </manifest>
  196. </archive>
  197. </configuration>
  198. </plugin>
  199. <plugin>
  200. <groupId>org.apache.maven.plugins</groupId>
  201. <artifactId>maven-compiler-plugin</artifactId>
  202. <version>3.6.0</version>
  203. <configuration>
  204. <source>8</source>
  205. <target>8</target>
  206. </configuration>
  207. </plugin>
  208. </plugins>
  209. </build>
  210. </profile>
  211. </profiles>
  212. </project>