pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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>edp.davinci</groupId>
  7. <artifactId>davinci-parent_0.3.1</artifactId>
  8. <version>0.3.1-SNAPSHOT</version>
  9. <packaging>pom</packaging>
  10. <parent>
  11. <groupId>org.springframework.boot</groupId>
  12. <artifactId>spring-boot-starter-parent</artifactId>
  13. <version>2.0.4.RELEASE</version>
  14. </parent>
  15. <licenses>
  16. <license>
  17. <name>Apache License, Version 2.0</name>
  18. <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
  19. <distribution>repo</distribution>
  20. </license>
  21. </licenses>
  22. <modules>
  23. <module>assembly</module>
  24. <module>server</module>
  25. </modules>
  26. <properties>
  27. <main.basedir>${project.basedir}</main.basedir>
  28. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  29. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  30. <java.version>1.8</java.version>
  31. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  32. </properties>
  33. <repositories>
  34. <!--
  35. <repository>
  36. <id>alimaven</id>
  37. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  38. </repository>
  39. -->
  40. <repository>
  41. <id>central</id>
  42. <name>Maven Repository</name>
  43. <url>https://repo1.maven.org/maven2</url>
  44. <releases>
  45. <enabled>true</enabled>
  46. </releases>
  47. <snapshots>
  48. <enabled>false</enabled>
  49. </snapshots>
  50. </repository>
  51. </repositories>
  52. <pluginRepositories>
  53. <pluginRepository>
  54. <id>central</id>
  55. <url>https://repo1.maven.org/maven2</url>
  56. <releases>
  57. <enabled>true</enabled>
  58. </releases>
  59. <snapshots>
  60. <enabled>false</enabled>
  61. </snapshots>
  62. </pluginRepository>
  63. </pluginRepositories>
  64. <build>
  65. <plugins>
  66. <!-- ========================================================== -->
  67. <!-- compile -->
  68. <!-- ========================================================== -->
  69. <plugin>
  70. <groupId>org.apache.maven.plugins</groupId>
  71. <artifactId>maven-compiler-plugin</artifactId>
  72. <version>3.6.1</version>
  73. <configuration>
  74. <encoding>${project.build.sourceEncoding}</encoding>
  75. <source>${java.version}</source>
  76. <target>${java.version}</target>
  77. <compilerVersion>${java.version}</compilerVersion>
  78. <optimize>true</optimize>
  79. <maxmem>1024m</maxmem>
  80. <fork>true</fork>
  81. <compilerArguments>
  82. <bootclasspath>
  83. ${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jce.jar${path.separator}${java.home}/../lib/tools.jar
  84. </bootclasspath>
  85. </compilerArguments>
  86. <compilerArgs>
  87. <arg>-Xlint:all,-serial,-path</arg>
  88. <arg>-XDignore.symbol.file</arg>
  89. </compilerArgs>
  90. </configuration>
  91. <executions>
  92. <execution>
  93. <phase>compile</phase>
  94. <goals>
  95. <goal>compile</goal>
  96. </goals>
  97. </execution>
  98. </executions>
  99. </plugin>
  100. <!-- ========================================================== -->
  101. <!-- license -->
  102. <!-- ========================================================== -->
  103. <plugin>
  104. <groupId>org.codehaus.mojo</groupId>
  105. <artifactId>license-maven-plugin</artifactId>
  106. <version>1.13</version>
  107. <configuration>
  108. <!-- config for license:aggregate-add-third-party -->
  109. <outputDirectory>${main.basedir}</outputDirectory>
  110. <thirdPartyFilename>LICENSE-3RD-PARTY</thirdPartyFilename>
  111. <fileTemplate>/org/codehaus/mojo/license/third-party-file-groupByLicense.ftl</fileTemplate>
  112. <useMissingFile>true</useMissingFile>
  113. <missingFile>${main.basedir}/LICENSE-3RD-PARTY.properties</missingFile>
  114. <aggregateMissingLicensesFile>${main.basedir}/LICENSE-3RD-PARTY.properties
  115. </aggregateMissingLicensesFile>
  116. <licenseMerges>
  117. <licenseMerge>Apache 2.0|ASL, version
  118. 2|http://www.apache.org/licenses/LICENSE-2.0.txt|http://asm.ow2.org/license.html|The Apache
  119. License, Version 2.0|Apache License|Apache License Version 2|Apache License Version
  120. 2.0|Apache Software License - Version 2.0|Apache 2.0 License|Apache License 2.0|ASL|Apache
  121. 2|Apache-2.0|the Apache License, ASL Version 2.0|The Apache Software License, Version
  122. 2.0|Apache License, Version 2.0|Apache Public License 2.0
  123. </licenseMerge>
  124. <licenseMerge>BSD|The BSD 3-Clause License|The BSD License|Modified BSD License|New BSD
  125. License|New BSD license|Two-clause BSD-style license|BSD licence|BSD New|The New BSD
  126. License|BSD 3-Clause|BSD 3-clause
  127. </licenseMerge>
  128. <licenseMerge>MIT|MIT License|The MIT License</licenseMerge>
  129. <licenseMerge>LGPL|LGPL, version 2.1|GNU Library or Lesser General Public License (LGPL)
  130. V2.1|GNU Lesser General Public License (LGPL), Version 2.1|GNU Lesser General Public
  131. License, Version 2.1|LGPL 2.1
  132. </licenseMerge>
  133. <licenseMerge>CDDL|CDDL+GPL|CDDL+GPL License|CDDL + GPLv2 with classpath exception|CDDL
  134. License|CDDL 1.0|CDDL 1.1|COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version
  135. 1.0|Common Development and Distribution License (CDDL) v1.0
  136. </licenseMerge>
  137. <licenseMerge>EPL|Eclipse Public License - Version 1.0</licenseMerge>
  138. <licenseMerge>GPL|GPL2 w/ CPE|GPLv2+CE|GNU General Public Library</licenseMerge>
  139. <licenseMerge>MPL|MPL 1.1</licenseMerge>
  140. <licenseMerge>Public Domain</licenseMerge>
  141. <licenseMerge>Common Public License|Common Public License Version 1.0</licenseMerge>
  142. <licenseMerge>CC0|CC0 1.0 Universal|Public Domain, per Creative Commons CC0</licenseMerge>
  143. <licenseMerge>Unknown License|Unknown license</licenseMerge>
  144. </licenseMerges>
  145. <!-- config for license:aggregate-download-licenses -->
  146. <aggregateDownloadLicenses.executeOnlyOnRootModule>true
  147. </aggregateDownloadLicenses.executeOnlyOnRootModule>
  148. <!--<licensesConfigFile>${main.basedir}/lic/config/licenses.xml</licensesConfigFile>-->
  149. <licensesOutputFile>dev/lic/licenses.xml</licensesOutputFile>
  150. <licensesOutputDirectory>dev/lic/licenses/</licensesOutputDirectory>
  151. <!-- config for license:update-file-header -->
  152. <licenseName>apache_v2</licenseName>
  153. <inceptionYear>2016</inceptionYear>
  154. <organizationName>EDP</organizationName>
  155. <projectName>Davinci</projectName>
  156. <roots>
  157. <root>src/main/java</root>
  158. <root>src/test/java</root>
  159. </roots>
  160. <includes>
  161. <include>**/*.java</include>
  162. <include>**/*.xml</include>
  163. <include>**/*.sh</include>
  164. <include>**/*.py</include>
  165. <include>**/*.properties</include>
  166. <include>**/*.sql</include>
  167. <include>**/*.yml</include>
  168. <!--<include>**/*.html</include>-->
  169. <!--<include>**/*.less</include>-->
  170. <!--<include>**/*.css</include>-->
  171. <!--<include>**/*.js</include>-->
  172. </includes>
  173. <extraExtensions>
  174. <scala>java</scala>
  175. </extraExtensions>
  176. <canUpdateCopyright>true</canUpdateCopyright>
  177. <canUpdateDescription>true</canUpdateDescription>
  178. <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
  179. <emptyLineAfterHeader>true</emptyLineAfterHeader>
  180. <processStartTag>&lt;&lt;</processStartTag>
  181. <processEndTag>&gt;&gt;</processEndTag>
  182. <sectionDelimiter>==</sectionDelimiter>
  183. <encoding>UTF-8</encoding>
  184. <!-- config for mvn license:update-project-license -->
  185. <licenseFile>${main.basedir}/LICENSE</licenseFile>
  186. </configuration>
  187. </plugin>
  188. <plugin>
  189. <groupId>org.jasig.maven</groupId>
  190. <artifactId>maven-notice-plugin</artifactId>
  191. <version>1.0.6.1</version>
  192. <configuration>
  193. <noticeTemplate>https://source.jasig.org/licenses/NOTICE.template</noticeTemplate>
  194. <licenseMapping>
  195. <param>https://source.jasig.org/licenses/license-mappings.xml</param>
  196. </licenseMapping>
  197. </configuration>
  198. </plugin>
  199. <plugin>
  200. <groupId>org.springframework.boot</groupId>
  201. <artifactId>spring-boot-maven-plugin</artifactId>
  202. </plugin>
  203. <!--使用jib插件-->
  204. <plugin>
  205. <groupId>com.google.cloud.tools</groupId>
  206. <artifactId>jib-maven-plugin</artifactId>
  207. <version>1.7.0</version>
  208. <configuration>
  209. <!--from节点用来设置镜像的基础镜像,相当于Docerkfile中的FROM关键字-->
  210. <from>
  211. <image>docker.xt.wenhq.top:8083/docker_r/centos:1.0</image>
  212. </from>
  213. <to>
  214. <!--镜像名称和tag,使用了mvn内置变量${project.version},表示当前工程的version-->
  215. <image>docker.xt.wenhq.top:8083/taihu_jh/taihu_analysis:${project.version}</image>
  216. <auth>
  217. <username>admin</username>
  218. <password>xtwenhongquan</password>
  219. </auth>
  220. </to>
  221. <!--容器相关的属性-->
  222. <container>
  223. <useCurrentTimestamp>true</useCurrentTimestamp>
  224. </container>
  225. <allowInsecureRegistries>true</allowInsecureRegistries>
  226. </configuration>
  227. </plugin>
  228. </plugins>
  229. </build>
  230. </project>