pom.xml 8.4 KB

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