pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  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>dcuc-coder</artifactId>
  6. <groupId>com.dragoninfo</groupId>
  7. <version>2.0.0-tjdsj-SNAPSHOT</version>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <artifactId>dcuc-coder-service</artifactId>
  11. <dependencies>
  12. <!--配置 duceap 开始-->
  13. <!-- 引入duceap-cloud核心包-->
  14. <dependency>
  15. <groupId>com.dragonsoft</groupId>
  16. <artifactId>duceap-cloud-starter</artifactId>
  17. </dependency>
  18. <dependency>
  19. <groupId>com.dragonsoft</groupId>
  20. <artifactId>duceap-boot-starter</artifactId>
  21. </dependency>
  22. <!--配置中心-->
  23. <dependency>
  24. <groupId>com.dragonsoft</groupId>
  25. <artifactId>duceap-cloud-starter-config-apollo</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>com.dragonsoft</groupId>
  29. <artifactId>duceap-boot-starter-search-rest</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.dragonsoft</groupId>
  33. <artifactId>duceap-extension-metadata</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.dragonsoft</groupId>
  37. <artifactId>duceap-boot-starter-auditlog</artifactId>
  38. </dependency>
  39. <!--flyway模块-->
  40. <dependency>
  41. <groupId>com.dragonsoft</groupId>
  42. <artifactId>duceap-boot-starter-flyway</artifactId>
  43. </dependency>
  44. <!--配置 duceap 结束-->
  45. <!--配置 spring boot 开始-->
  46. <!--配置处理-->
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-configuration-processor</artifactId>
  50. <optional>true</optional>
  51. </dependency>
  52. <!--监控配置-->
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-actuator</artifactId>
  56. </dependency>
  57. <!--配置 spring boot 结束-->
  58. <!--配置 dcuc 开始-->
  59. <dependency>
  60. <groupId>com.dragoninfo</groupId>
  61. <artifactId>dcuc-coder-api</artifactId>
  62. <version>${project.version}</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.dragoninfo</groupId>
  66. <artifactId>dcuc-duceap-api</artifactId>
  67. <version>${project.version}</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.dragoninfo</groupId>
  71. <artifactId>dcuc-common</artifactId>
  72. <version>2.0.0-SNAPSHOT</version>
  73. </dependency>
  74. <!--配置 dcuc 结束-->
  75. <!--配置第三方组件开始-->
  76. <!--oracle 引入-->
  77. <dependency>
  78. <groupId>com.oracle</groupId>
  79. <artifactId>ojdbc6</artifactId>
  80. </dependency>
  81. <!--mysql 引入-->
  82. <dependency>
  83. <groupId>mysql</groupId>
  84. <artifactId>mysql-connector-java</artifactId>
  85. </dependency>
  86. <!--配置第三方组件结束-->
  87. <!--许可-->
  88. <dependency>
  89. <groupId>com.dragonsoft</groupId>
  90. <artifactId>duceap-support-license</artifactId>
  91. </dependency>
  92. <!--许可依赖包 结束-->
  93. </dependencies>
  94. <!--指定仓库地址-->
  95. <packaging>${project.packaging}</packaging>
  96. <profiles>
  97. <!--war打包配置-->
  98. <!--使用方式 mvn clean package -Pwar-->
  99. <profile>
  100. <id>war</id>
  101. <properties>
  102. <project.packaging>war</project.packaging>
  103. </properties>
  104. <dependencies>
  105. <dependency>
  106. <groupId>com.dragonsoft</groupId>
  107. <artifactId>duceap-boot-starter-web</artifactId>
  108. <!-- 移除嵌入式tomcat插件 -->
  109. <exclusions>
  110. <exclusion>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-starter-tomcat</artifactId>
  113. </exclusion>
  114. </exclusions>
  115. </dependency>
  116. </dependencies>
  117. <build>
  118. <plugins>
  119. <plugin>
  120. <groupId>org.apache.maven.plugins</groupId>
  121. <artifactId>maven-war-plugin</artifactId>
  122. <version>2.1.1</version>
  123. <configuration>
  124. <failOnMissingWebXml>false</failOnMissingWebXml>
  125. <!--排除licenseignore包,用来禁用许可开关,防止生产环境通过关闭开关,绕过许可-->
  126. <packagingExcludes>WEB-INF/lib/duceap-support-licenseignore*.jar</packagingExcludes>
  127. </configuration>
  128. </plugin>
  129. </plugins>
  130. </build>
  131. </profile>
  132. <profile>
  133. <id>jar</id>
  134. <activation>
  135. <activeByDefault>true</activeByDefault>
  136. </activation>
  137. <properties>
  138. <project.packaging>jar</project.packaging>
  139. </properties>
  140. <build>
  141. <plugins>
  142. <plugin>
  143. <artifactId>maven-dependency-plugin</artifactId>
  144. <version>2.6</version>
  145. <executions>
  146. <execution>
  147. <id>copy-libs</id>
  148. <phase>package</phase>
  149. <goals>
  150. <goal>copy-dependencies</goal>
  151. </goals>
  152. <configuration>
  153. <!--排除licenseignore包,用来禁用许可开关,防止生产环境通过关闭开关,绕过许可-->
  154. <excludeArtifactIds>duceap-support-licenseignore</excludeArtifactIds>
  155. <excludeScope>provided</excludeScope>
  156. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  157. <!--取消依赖包的时间戳-->
  158. <useBaseVersion>true</useBaseVersion>
  159. </configuration>
  160. </execution>
  161. <execution>
  162. <id>unpack</id>
  163. <phase>package</phase>
  164. <goals>
  165. <goal>unpack</goal>
  166. </goals>
  167. <configuration>
  168. <artifactItems>
  169. <artifactItem>
  170. <groupId>com.dragonsoft</groupId>
  171. <artifactId>duceap-base</artifactId>
  172. <!--根据框架版本修改-->
  173. <version>2.1.0-SNAPSHOT</version>
  174. <!--<version>2.1.0-SNAPSHOT</version>-->
  175. <outputDirectory>${project.build.directory}/temp</outputDirectory>
  176. <!--加入平台的启动脚本-->
  177. <includes>META-INF/scripts/**</includes>
  178. </artifactItem>
  179. </artifactItems>
  180. </configuration>
  181. </execution>
  182. </executions>
  183. </plugin>
  184. <plugin>
  185. <artifactId>maven-assembly-plugin</artifactId>
  186. <version>2.5.5</version>
  187. <executions>
  188. <execution>
  189. <id>make-assembly</id>
  190. <phase>package</phase>
  191. <goals>
  192. <goal>single</goal>
  193. </goals>
  194. <configuration>
  195. <finalName>${project.name}-${project.version}</finalName>
  196. <appendAssemblyId>false</appendAssemblyId>
  197. <!--配置描述文件路径-->
  198. <descriptor>src/main/assembly/assembly.xml</descriptor>
  199. </configuration>
  200. </execution>
  201. </executions>
  202. </plugin>
  203. <plugin>
  204. <groupId>org.apache.maven.plugins</groupId>
  205. <artifactId>maven-jar-plugin</artifactId>
  206. <version>2.4</version>
  207. <configuration>
  208. <archive>
  209. <manifest>
  210. <!--运行jar包时运行的主类,要求类全名-->
  211. <mainClass>com.dragoninfo.dcuc.coder.DcucCoderApplication</mainClass>
  212. <addClasspath>true</addClasspath>
  213. <!--取消MANIFEST.MF中classpath下的时间戳-->
  214. <useUniqueVersions>false</useUniqueVersions>
  215. </manifest>
  216. </archive>
  217. </configuration>
  218. </plugin>
  219. <plugin>
  220. <groupId>org.apache.maven.plugins</groupId>
  221. <artifactId>maven-compiler-plugin</artifactId>
  222. <version>3.6.0</version>
  223. <configuration>
  224. <source>8</source>
  225. <target>8</target>
  226. </configuration>
  227. </plugin>
  228. </plugins>
  229. </build>
  230. </profile>
  231. </profiles>
  232. </project>