pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.dragoninfo</groupId>
  7. <artifactId>dcuc-auth-back</artifactId>
  8. <version>2.4.2-tjdsj-SNAPSHOT</version>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <maven.compiler.source>1.8</maven.compiler.source>
  12. <maven.compiler.target>1.8</maven.compiler.target>
  13. <!--revisions需写死,用于标识打包的版本号,不可删除-->
  14. <revision>2.4.2-tjdsj-SNAPSHOT</revision>
  15. <duceap.version>2.1.0-SNAPSHOT</duceap.version>
  16. <lombok.version>1.18.2</lombok.version>
  17. <jwt.version>3.10.3</jwt.version>
  18. </properties>
  19. <dependencyManagement>
  20. <dependencies>
  21. <!-- 导入duceap-cloud 2.0 POM定义-->
  22. <dependency>
  23. <groupId>com.dragonsoft</groupId>
  24. <artifactId>duceap-cloud-parent</artifactId>
  25. <version>${duceap.version}</version>
  26. <type>pom</type>
  27. <scope>import</scope>
  28. </dependency>
  29. </dependencies>
  30. </dependencyManagement>
  31. <dependencies>
  32. <!--配置 spring boot 开始-->
  33. <!--配置处理-->
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-configuration-processor</artifactId>
  37. <optional>true</optional>
  38. </dependency>
  39. <!--监控配置-->
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-actuator</artifactId>
  43. <exclusions>
  44. <exclusion>
  45. <artifactId>HdrHistogram</artifactId>
  46. <groupId>org.hdrhistogram</groupId>
  47. </exclusion>
  48. </exclusions>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-websocket</artifactId>
  53. </dependency>
  54. <!--配置 spring boot 结束-->
  55. <!--配置 duceap 开始-->
  56. <dependency>
  57. <groupId>com.dragonsoft</groupId>
  58. <artifactId>duceap-boot-starter</artifactId>
  59. <exclusions>
  60. <exclusion>
  61. <artifactId>duceap-core-repository-jpa</artifactId>
  62. <groupId>com.dragonsoft</groupId>
  63. </exclusion>
  64. </exclusions>
  65. </dependency>
  66. <!-- 引入duceap-cloud核心包-->
  67. <dependency>
  68. <groupId>com.dragonsoft</groupId>
  69. <artifactId>duceap-cloud-starter</artifactId>
  70. </dependency>
  71. <!--配置中心-->
  72. <dependency>
  73. <groupId>com.dragonsoft</groupId>
  74. <artifactId>duceap-cloud-starter-config-apollo</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>com.dragonsoft</groupId>
  78. <artifactId>duceap-security-dcuc</artifactId>
  79. </dependency>
  80. <!--配置 duceap 结束-->
  81. <!--许可-->
  82. <dependency>
  83. <groupId>com.dragonsoft</groupId>
  84. <artifactId>duceap-support-license</artifactId>
  85. </dependency>
  86. <!--许可依赖包 结束-->
  87. <!--redis缓存-->
  88. <dependency>
  89. <groupId>com.dragonsoft</groupId>
  90. <artifactId>duceap-boot-starter-cache-redis</artifactId>
  91. <exclusions>
  92. <exclusion>
  93. <artifactId>spring-jdbc</artifactId>
  94. <groupId>org.springframework</groupId>
  95. </exclusion>
  96. </exclusions>
  97. </dependency>
  98. <!--配置 dcuc 开始-->
  99. <dependency>
  100. <groupId>com.dragoninfo</groupId>
  101. <artifactId>dcuc-common</artifactId>
  102. <version>2.0.1-SNAPSHOT</version>
  103. <exclusions>
  104. <exclusion>
  105. <artifactId>spring-jdbc</artifactId>
  106. <groupId>org.springframework</groupId>
  107. </exclusion>
  108. </exclusions>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.dragoninfo</groupId>
  112. <artifactId>dcuc-auth-api</artifactId>
  113. <version>2.4.2-tjdsj-SNAPSHOT</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.dragoninfo</groupId>
  117. <artifactId>dcuc-app-api</artifactId>
  118. <version>2.2.4-tjdsj-SNAPSHOT</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>com.dragoninfo</groupId>
  122. <artifactId>dcuc-coder-api</artifactId>
  123. <version>2.0.1-SNAPSHOT</version>
  124. <exclusions>
  125. <exclusion>
  126. <artifactId>dcuc-duceap-model</artifactId>
  127. <groupId>com.dragoninfo</groupId>
  128. </exclusion>
  129. </exclusions>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.dragoninfo</groupId>
  133. <artifactId>dcuc-duceap-api</artifactId>
  134. <version>2.1.2-SNAPSHOT</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.springframework.boot</groupId>
  138. <artifactId>spring-boot-starter-validation</artifactId>
  139. <version>2.4.2</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.auth0</groupId>
  143. <artifactId>java-jwt</artifactId>
  144. <version>${jwt.version}</version>
  145. </dependency>
  146. <!--配置 dcuc 结束-->
  147. <!-- <dependency>-->
  148. <!-- <groupId>net.unicon.cas</groupId>-->
  149. <!-- <artifactId>cas-client-autoconfig-support</artifactId>-->
  150. <!-- <version>2.1.0-GA</version>-->
  151. <!-- <exclusions>-->
  152. <!-- <exclusion>-->
  153. <!-- <artifactId>joda-time</artifactId>-->
  154. <!-- <groupId>joda-time</groupId>-->
  155. <!-- </exclusion>-->
  156. <!-- </exclusions>-->
  157. <!-- </dependency>-->
  158. <!-- https://mvnrepository.com/artifact/log4j/log4j -->
  159. <dependency>
  160. <groupId>com.squareup.okhttp</groupId>
  161. <artifactId>okhttp</artifactId>
  162. <version>2.7.5</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>com.google.code.gson</groupId>
  166. <artifactId>gson</artifactId>
  167. <version>2.8.6</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.projectlombok</groupId>
  171. <artifactId>lombok</artifactId>
  172. <version>${lombok.version}</version>
  173. <scope>provided</scope>
  174. </dependency>
  175. <dependency>
  176. <groupId>net.sf.ezmorph</groupId>
  177. <artifactId>ezmorph</artifactId>
  178. <version>1.0.6</version>
  179. <scope>compile</scope>
  180. </dependency>
  181. <!--dids-->
  182. <dependency>
  183. <groupId>com.dragonsoft</groupId>
  184. <artifactId>duceap-security-dids</artifactId>
  185. </dependency>
  186. <!--测试-->
  187. <dependency>
  188. <groupId>org.springframework.boot</groupId>
  189. <artifactId>spring-boot-starter-test</artifactId>
  190. <scope>test</scope>
  191. </dependency>
  192. <dependency>
  193. <groupId>com.dragonsoft</groupId>
  194. <artifactId>duceap-security-jwt</artifactId>
  195. </dependency>
  196. </dependencies>
  197. <!--指定仓库地址-->
  198. <repositories>
  199. <repository>
  200. <id>public-repository</id>
  201. <name>Team Nexus Release Repository</name>
  202. <url>http://192.168.6.13:8081/nexus/content/groups/public</url>
  203. </repository>
  204. <repository>
  205. <id>duceap-releases</id>
  206. <name>Team Nexus Release Repository</name>
  207. <url>http://192.168.6.13:8081/nexus/content/groups/Dragon</url>
  208. <releases>
  209. <enabled>true</enabled>
  210. <updatePolicy>always</updatePolicy>
  211. </releases>
  212. <snapshots>
  213. <enabled>true</enabled>
  214. <updatePolicy>always</updatePolicy>
  215. </snapshots>
  216. </repository>
  217. </repositories>
  218. <!-- 设定插件仓库 如有Nexus私服, 取消注释并指向正确的服务器地址.-->
  219. <pluginRepositories>
  220. <pluginRepository>
  221. <id>nexus</id>
  222. <name>Team Nexus Repository</name>
  223. <url>http://192.168.6.13:8081/nexus/content/groups/public</url>
  224. <releases>
  225. <enabled>true</enabled>
  226. <updatePolicy>always</updatePolicy>
  227. </releases>
  228. <snapshots>
  229. <enabled>true</enabled>
  230. <updatePolicy>always</updatePolicy>
  231. </snapshots>
  232. </pluginRepository>
  233. </pluginRepositories>
  234. <distributionManagement>
  235. <repository>
  236. <id>duceap-releases</id>
  237. <name>Team Nexus Release Repository</name>
  238. <url>http://192.168.6.13:8081/nexus/content/repositories/duceap-releases/</url>
  239. </repository>
  240. <snapshotRepository>
  241. <id>duceap-snapshots</id>
  242. <name>Team Nexus Snapshot Repository</name>
  243. <url>http://192.168.6.13:8081/nexus/content/repositories/duceap-snapshots</url>
  244. <uniqueVersion>false</uniqueVersion>
  245. </snapshotRepository>
  246. </distributionManagement>
  247. <packaging>${project.packaging}</packaging>
  248. <profiles>
  249. <!--war打包配置-->
  250. <!--使用方式 mvn clean package -Pwar-->
  251. <profile>
  252. <id>war</id>
  253. <properties>
  254. <project.packaging>war</project.packaging>
  255. </properties>
  256. <dependencies>
  257. <dependency>
  258. <groupId>com.dragonsoft</groupId>
  259. <artifactId>duceap-boot-starter-web</artifactId>
  260. <!-- 移除嵌入式tomcat插件 -->
  261. <exclusions>
  262. <exclusion>
  263. <groupId>org.springframework.boot</groupId>
  264. <artifactId>spring-boot-starter-tomcat</artifactId>
  265. </exclusion>
  266. </exclusions>
  267. </dependency>
  268. </dependencies>
  269. <build>
  270. <plugins>
  271. <plugin>
  272. <groupId>org.apache.maven.plugins</groupId>
  273. <artifactId>maven-war-plugin</artifactId>
  274. <version>2.1.1</version>
  275. <configuration>
  276. <failOnMissingWebXml>false</failOnMissingWebXml>
  277. <!--排除licenseignore包,用来禁用许可开关,防止生产环境通过关闭开关,绕过许可-->
  278. <!-- <packagingExcludes>WEB-INF/lib/duceap-support-licenseignore*.jar</packagingExcludes>-->
  279. </configuration>
  280. </plugin>
  281. </plugins>
  282. </build>
  283. </profile>
  284. <profile>
  285. <id>jar</id>
  286. <activation>
  287. <activeByDefault>true</activeByDefault>
  288. </activation>
  289. <properties>
  290. <project.packaging>jar</project.packaging>
  291. </properties>
  292. <build>
  293. <plugins>
  294. <plugin>
  295. <artifactId>maven-dependency-plugin</artifactId>
  296. <version>2.6</version>
  297. <executions>
  298. <execution>
  299. <id>copy-libs</id>
  300. <phase>package</phase>
  301. <goals>
  302. <goal>copy-dependencies</goal>
  303. </goals>
  304. <configuration>
  305. <!--排除licenseignore包,用来禁用许可开关,防止生产环境通过关闭开关,绕过许可-->
  306. <!--<excludeArtifactIds>duceap-support-licenseignore</excludeArtifactIds>-->
  307. <excludeScope>provided</excludeScope>
  308. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  309. <!--取消依赖包的时间戳-->
  310. <useBaseVersion>true</useBaseVersion>
  311. </configuration>
  312. </execution>
  313. <execution>
  314. <id>unpack</id>
  315. <phase>package</phase>
  316. <goals>
  317. <goal>unpack</goal>
  318. </goals>
  319. <configuration>
  320. <artifactItems>
  321. <artifactItem>
  322. <groupId>com.dragonsoft</groupId>
  323. <artifactId>duceap-base</artifactId>
  324. <!--根据框架版本修改-->
  325. <version>2.1.0-SNAPSHOT</version>
  326. <!--<version>2.1.0-SNAPSHOT</version>-->
  327. <outputDirectory>${project.build.directory}/temp</outputDirectory>
  328. <!--加入平台的启动脚本-->
  329. <includes>META-INF/scripts/**</includes>
  330. </artifactItem>
  331. </artifactItems>
  332. </configuration>
  333. </execution>
  334. </executions>
  335. </plugin>
  336. <plugin>
  337. <artifactId>maven-assembly-plugin</artifactId>
  338. <version>2.5.5</version>
  339. <executions>
  340. <execution>
  341. <id>make-assembly</id>
  342. <phase>package</phase>
  343. <goals>
  344. <goal>single</goal>
  345. </goals>
  346. <configuration>
  347. <finalName>${project.name}-${project.version}</finalName>
  348. <appendAssemblyId>false</appendAssemblyId>
  349. <!--配置描述文件路径-->
  350. <descriptor>src/main/assembly/assembly.xml</descriptor>
  351. </configuration>
  352. </execution>
  353. </executions>
  354. </plugin>
  355. <plugin>
  356. <groupId>org.apache.maven.plugins</groupId>
  357. <artifactId>maven-jar-plugin</artifactId>
  358. <version>2.4</version>
  359. <configuration>
  360. <archive>
  361. <manifest>
  362. <!--运行jar包时运行的主类,要求类全名-->
  363. <mainClass>com.dragoninfo.dcuc.authweb.DcucAuthWebApplication</mainClass>
  364. <addClasspath>true</addClasspath>
  365. <!--取消MANIFEST.MF中classpath下的时间戳-->
  366. <useUniqueVersions>false</useUniqueVersions>
  367. </manifest>
  368. </archive>
  369. </configuration>
  370. </plugin>
  371. <plugin>
  372. <groupId>org.apache.maven.plugins</groupId>
  373. <artifactId>maven-compiler-plugin</artifactId>
  374. <version>3.6.0</version>
  375. <configuration>
  376. <source>8</source>
  377. <target>8</target>
  378. </configuration>
  379. </plugin>
  380. </plugins>
  381. </build>
  382. </profile>
  383. </profiles>
  384. </project>