pom.xml 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one or more
  4. ~ contributor license agreements. See the NOTICE file distributed with
  5. ~ this work for additional information regarding copyright ownership.
  6. ~ The ASF licenses this file to You under the Apache License, Version 2.0
  7. ~ (the "License"); you may not use this file except in compliance with
  8. ~ the License. You may obtain a copy of the License at
  9. ~
  10. ~ http://www.apache.org/licenses/LICENSE-2.0
  11. ~
  12. ~ Unless required by applicable law or agreed to in writing, software
  13. ~ distributed under the License is distributed on an "AS IS" BASIS,
  14. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. ~ See the License for the specific language governing permissions and
  16. ~ limitations under the License.
  17. -->
  18. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  20. <modelVersion>4.0.0</modelVersion>
  21. <parent>
  22. <groupId>org.apache</groupId>
  23. <artifactId>apache</artifactId>
  24. <version>25</version>
  25. </parent>
  26. <groupId>org.apache.dolphinscheduler</groupId>
  27. <artifactId>dolphinscheduler</artifactId>
  28. <version>3.2.2-SNAPSHOT</version>
  29. <packaging>pom</packaging>
  30. <name>${project.artifactId}</name>
  31. <description>Dolphin Scheduler is a distributed and easy-to-expand visual DAG workflow scheduling system, dedicated
  32. to solving the complex dependencies in data processing, making the scheduling system out of the box for data
  33. processing.</description>
  34. <modules>
  35. <module>dolphinscheduler-bom</module>
  36. <module>dolphinscheduler-alert</module>
  37. <module>dolphinscheduler-spi</module>
  38. <module>dolphinscheduler-registry</module>
  39. <module>dolphinscheduler-task-plugin</module>
  40. <module>dolphinscheduler-common</module>
  41. <module>dolphinscheduler-api</module>
  42. <module>dolphinscheduler-aop</module>
  43. <module>dolphinscheduler-dao</module>
  44. <module>dolphinscheduler-dist</module>
  45. <module>dolphinscheduler-service</module>
  46. <module>dolphinscheduler-microbench</module>
  47. <module>dolphinscheduler-data-quality</module>
  48. <module>dolphinscheduler-standalone-server</module>
  49. <module>dolphinscheduler-datasource-plugin</module>
  50. <module>dolphinscheduler-meter</module>
  51. <module>dolphinscheduler-master</module>
  52. <module>dolphinscheduler-worker</module>
  53. <module>dolphinscheduler-tools</module>
  54. <module>dolphinscheduler-scheduler-plugin</module>
  55. <module>dolphinscheduler-storage-plugin</module>
  56. <module>dolphinscheduler-extract</module>
  57. <module>dolphinscheduler-dao-plugin</module>
  58. </modules>
  59. <properties>
  60. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  61. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  62. <spring.boot.version>2.6.1</spring.boot.version>
  63. <java.version>1.8</java.version>
  64. <junit.version>5.9.0</junit.version>
  65. <mockito.version>3.12.4</mockito.version>
  66. <spotbugs.version>3.1.12</spotbugs.version>
  67. <maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
  68. <maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
  69. <maven-release-plugin.version>2.5.3</maven-release-plugin.version>
  70. <maven-javadoc-plugin.version>2.10.3</maven-javadoc-plugin.version>
  71. <maven-source-plugin.version>2.4</maven-source-plugin.version>
  72. <maven-surefire-plugin.version>3.0.0-M6</maven-surefire-plugin.version>
  73. <maven-failsafe-plugin.version>3.0.0-M6</maven-failsafe-plugin.version>
  74. <maven-dependency-plugin.version>3.1.1</maven-dependency-plugin.version>
  75. <maven-shade-plugin.version>3.2.1</maven-shade-plugin.version>
  76. <rpm-maven-plugion.version>2.2.0</rpm-maven-plugion.version>
  77. <aspectj-maven-plugin.version>1.14.0</aspectj-maven-plugin.version>
  78. <spotless.version>2.27.2</spotless.version>
  79. <jacoco.version>0.8.8</jacoco.version>
  80. <maven.deploy.skip>false</maven.deploy.skip>
  81. <cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version>
  82. <auto-service.version>1.0.1</auto-service.version>
  83. <jacoco.skip>false</jacoco.skip>
  84. <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
  85. <exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
  86. <owasp-dependency-check-maven.version>7.1.2</owasp-dependency-check-maven.version>
  87. <lombok.version>1.18.20</lombok.version>
  88. <docker.hub>apache</docker.hub>
  89. <docker.repo>${project.name}</docker.repo>
  90. <docker.tag>${project.version}</docker.tag>
  91. <docker.build.skip>true</docker.build.skip>
  92. <docker.push.skip>true</docker.push.skip>
  93. <skipDepCheck>true</skipDepCheck>
  94. <build.ui.skip>false</build.ui.skip>
  95. <spotless.skip>false</spotless.skip>
  96. <skipUT>false</skipUT>
  97. <skipIT>true</skipIT>
  98. </properties>
  99. <dependencyManagement>
  100. <dependencies>
  101. <dependency>
  102. <groupId>org.apache.dolphinscheduler</groupId>
  103. <artifactId>dolphinscheduler-master</artifactId>
  104. <version>${project.version}</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.apache.dolphinscheduler</groupId>
  108. <artifactId>dolphinscheduler-worker</artifactId>
  109. <version>${project.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.apache.dolphinscheduler</groupId>
  113. <artifactId>dolphinscheduler-api</artifactId>
  114. <version>${project.version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.apache.dolphinscheduler</groupId>
  118. <artifactId>dolphinscheduler-alert-server</artifactId>
  119. <version>${project.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.apache.dolphinscheduler</groupId>
  123. <artifactId>dolphinscheduler-standalone-server</artifactId>
  124. <version>${project.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.apache.dolphinscheduler</groupId>
  128. <artifactId>dolphinscheduler-ui</artifactId>
  129. <version>${project.version}</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.apache.dolphinscheduler</groupId>
  133. <artifactId>dolphinscheduler-aop</artifactId>
  134. <version>${project.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.apache.dolphinscheduler</groupId>
  138. <artifactId>dolphinscheduler-common</artifactId>
  139. <version>${project.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.apache.dolphinscheduler</groupId>
  143. <artifactId>dolphinscheduler-dao</artifactId>
  144. <version>${project.version}</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.apache.dolphinscheduler</groupId>
  148. <artifactId>dolphinscheduler-service</artifactId>
  149. <version>${project.version}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.apache.dolphinscheduler</groupId>
  153. <artifactId>dolphinscheduler-meter</artifactId>
  154. <version>${project.version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.apache.dolphinscheduler</groupId>
  158. <artifactId>dolphinscheduler-spi</artifactId>
  159. <version>${project.version}</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.apache.dolphinscheduler</groupId>
  163. <artifactId>dolphinscheduler-data-quality</artifactId>
  164. <version>${project.version}</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.apache.dolphinscheduler</groupId>
  168. <artifactId>dolphinscheduler-tools</artifactId>
  169. <version>${project.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.apache.dolphinscheduler</groupId>
  173. <artifactId>dolphinscheduler-alert-api</artifactId>
  174. <version>${project.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.apache.dolphinscheduler</groupId>
  178. <artifactId>dolphinscheduler-alert-all</artifactId>
  179. <version>${project.version}</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.apache.dolphinscheduler</groupId>
  183. <artifactId>dolphinscheduler-registry-api</artifactId>
  184. <version>${project.version}</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.apache.dolphinscheduler</groupId>
  188. <artifactId>dolphinscheduler-registry-all</artifactId>
  189. <version>${project.version}</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.apache.dolphinscheduler</groupId>
  193. <artifactId>dolphinscheduler-scheduler-api</artifactId>
  194. <version>${project.version}</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.apache.dolphinscheduler</groupId>
  198. <artifactId>dolphinscheduler-scheduler-all</artifactId>
  199. <version>${project.version}</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>org.apache.dolphinscheduler</groupId>
  203. <artifactId>dolphinscheduler-datasource-api</artifactId>
  204. <version>${project.version}</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.apache.dolphinscheduler</groupId>
  208. <artifactId>dolphinscheduler-datasource-all</artifactId>
  209. <version>${project.version}</version>
  210. </dependency>
  211. <dependency>
  212. <groupId>org.apache.dolphinscheduler</groupId>
  213. <artifactId>dolphinscheduler-task-api</artifactId>
  214. <version>${project.version}</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.apache.dolphinscheduler</groupId>
  218. <artifactId>dolphinscheduler-task-all</artifactId>
  219. <version>${project.version}</version>
  220. </dependency>
  221. <dependency>
  222. <groupId>org.apache.dolphinscheduler</groupId>
  223. <artifactId>dolphinscheduler-task-all-prune</artifactId>
  224. <version>${project.version}</version>
  225. </dependency>
  226. <dependency>
  227. <groupId>org.apache.dolphinscheduler</groupId>
  228. <artifactId>dolphinscheduler-storage-api</artifactId>
  229. <version>${project.version}</version>
  230. </dependency>
  231. <dependency>
  232. <groupId>org.apache.dolphinscheduler</groupId>
  233. <artifactId>dolphinscheduler-storage-all</artifactId>
  234. <version>${project.version}</version>
  235. </dependency>
  236. <dependency>
  237. <groupId>org.apache.dolphinscheduler</groupId>
  238. <artifactId>dolphinscheduler-extract-base</artifactId>
  239. <version>${project.version}</version>
  240. </dependency>
  241. <dependency>
  242. <groupId>org.apache.dolphinscheduler</groupId>
  243. <artifactId>dolphinscheduler-extract-master</artifactId>
  244. <version>${project.version}</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.apache.dolphinscheduler</groupId>
  248. <artifactId>dolphinscheduler-extract-worker</artifactId>
  249. <version>${project.version}</version>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.apache.dolphinscheduler</groupId>
  253. <artifactId>dolphinscheduler-extract-alert</artifactId>
  254. <version>${project.version}</version>
  255. </dependency>
  256. <dependency>
  257. <groupId>org.apache.dolphinscheduler</groupId>
  258. <artifactId>dolphinscheduler-dao-plugin-all</artifactId>
  259. <version>${project.version}</version>
  260. </dependency>
  261. <dependency>
  262. <groupId>org.apache.dolphinscheduler</groupId>
  263. <artifactId>dolphinscheduler-dao-api</artifactId>
  264. <version>${project.version}</version>
  265. </dependency>
  266. <dependency>
  267. <groupId>org.apache.dolphinscheduler</groupId>
  268. <artifactId>dolphinscheduler-dao-h2</artifactId>
  269. <version>${project.version}</version>
  270. </dependency>
  271. <dependency>
  272. <groupId>org.apache.dolphinscheduler</groupId>
  273. <artifactId>dolphinscheduler-dao-mysql</artifactId>
  274. <version>${project.version}</version>
  275. </dependency>
  276. <dependency>
  277. <groupId>org.apache.dolphinscheduler</groupId>
  278. <artifactId>dolphinscheduler-dao-postgresql</artifactId>
  279. <version>${project.version}</version>
  280. </dependency>
  281. <dependency>
  282. <groupId>org.junit</groupId>
  283. <artifactId>junit-bom</artifactId>
  284. <version>${junit.version}</version>
  285. <type>pom</type>
  286. <scope>import</scope>
  287. </dependency>
  288. </dependencies>
  289. </dependencyManagement>
  290. <dependencies>
  291. <!--
  292. NOTE: only development / test phase dependencies (scope = test / provided)
  293. that won't be packaged into final jar can be declared here.
  294. For example: annotation processors, test dependencies that are used by most
  295. of the submodules.
  296. -->
  297. <dependency>
  298. <groupId>org.junit.jupiter</groupId>
  299. <artifactId>junit-jupiter-api</artifactId>
  300. <scope>test</scope>
  301. </dependency>
  302. <dependency>
  303. <groupId>org.junit.vintage</groupId>
  304. <artifactId>junit-vintage-engine</artifactId>
  305. <scope>test</scope>
  306. </dependency>
  307. <dependency>
  308. <groupId>org.mockito</groupId>
  309. <artifactId>mockito-core</artifactId>
  310. <version>${mockito.version}</version>
  311. <scope>test</scope>
  312. </dependency>
  313. <dependency>
  314. <groupId>org.mockito</groupId>
  315. <artifactId>mockito-inline</artifactId>
  316. <version>${mockito.version}</version>
  317. <scope>test</scope>
  318. </dependency>
  319. <dependency>
  320. <groupId>org.mockito</groupId>
  321. <artifactId>mockito-junit-jupiter</artifactId>
  322. <version>${mockito.version}</version>
  323. <scope>test</scope>
  324. </dependency>
  325. <dependency>
  326. <groupId>org.jacoco</groupId>
  327. <artifactId>org.jacoco.agent</artifactId>
  328. <version>${jacoco.version}</version>
  329. <classifier>runtime</classifier>
  330. <scope>test</scope>
  331. </dependency>
  332. <dependency>
  333. <groupId>org.springframework.boot</groupId>
  334. <artifactId>spring-boot-configuration-processor</artifactId>
  335. <version>${spring.boot.version}</version>
  336. <optional>true</optional>
  337. </dependency>
  338. <dependency>
  339. <groupId>com.google.auto.service</groupId>
  340. <artifactId>auto-service</artifactId>
  341. <version>${auto-service.version}</version>
  342. <scope>provided</scope>
  343. </dependency>
  344. <dependency>
  345. <groupId>org.projectlombok</groupId>
  346. <artifactId>lombok</artifactId>
  347. <version>${lombok.version}</version>
  348. <scope>provided</scope>
  349. </dependency>
  350. </dependencies>
  351. <build>
  352. <pluginManagement>
  353. <plugins>
  354. <plugin>
  355. <groupId>org.codehaus.mojo</groupId>
  356. <artifactId>rpm-maven-plugin</artifactId>
  357. <version>${rpm-maven-plugion.version}</version>
  358. <inherited>false</inherited>
  359. </plugin>
  360. <plugin>
  361. <groupId>org.codehaus.mojo</groupId>
  362. <artifactId>aspectj-maven-plugin</artifactId>
  363. <version>${aspectj-maven-plugin.version}</version>
  364. <configuration>
  365. <complianceLevel>${java.version}</complianceLevel>
  366. <source>${java.version}</source>
  367. <target>${java.version}</target>
  368. <showWeaveInfo>true</showWeaveInfo>
  369. <verbose>true</verbose>
  370. <Xlint>ignore</Xlint>
  371. <encoding>UTF-8</encoding>
  372. </configuration>
  373. <executions>
  374. <execution>
  375. <goals>
  376. <goal>compile</goal>
  377. <goal>test-compile</goal>
  378. </goals>
  379. </execution>
  380. </executions>
  381. </plugin>
  382. <plugin>
  383. <groupId>org.apache.maven.plugins</groupId>
  384. <artifactId>maven-compiler-plugin</artifactId>
  385. <version>${maven-compiler-plugin.version}</version>
  386. <configuration>
  387. <source>${java.version}</source>
  388. <target>${java.version}</target>
  389. <testSource>${java.version}</testSource>
  390. <testTarget>${java.version}</testTarget>
  391. </configuration>
  392. </plugin>
  393. <plugin>
  394. <groupId>org.apache.maven.plugins</groupId>
  395. <artifactId>maven-release-plugin</artifactId>
  396. <version>${maven-release-plugin.version}</version>
  397. <configuration>
  398. <tagNameFormat>@{project.version}</tagNameFormat>
  399. </configuration>
  400. </plugin>
  401. <plugin>
  402. <groupId>org.apache.maven.plugins</groupId>
  403. <artifactId>maven-assembly-plugin</artifactId>
  404. <version>${maven-assembly-plugin.version}</version>
  405. </plugin>
  406. <plugin>
  407. <groupId>org.apache.maven.plugins</groupId>
  408. <artifactId>maven-javadoc-plugin</artifactId>
  409. <version>${maven-javadoc-plugin.version}</version>
  410. <configuration>
  411. <source>8</source>
  412. <failOnError>false</failOnError>
  413. </configuration>
  414. </plugin>
  415. <plugin>
  416. <groupId>org.apache.maven.plugins</groupId>
  417. <artifactId>maven-dependency-plugin</artifactId>
  418. <version>${maven-dependency-plugin.version}</version>
  419. </plugin>
  420. <plugin>
  421. <groupId>org.apache.maven.plugins</groupId>
  422. <artifactId>maven-shade-plugin</artifactId>
  423. <version>${maven-shade-plugin.version}</version>
  424. </plugin>
  425. <plugin>
  426. <groupId>org.apache.maven.plugins</groupId>
  427. <artifactId>maven-jar-plugin</artifactId>
  428. <version>${maven-jar-plugin.version}</version>
  429. </plugin>
  430. <plugin>
  431. <groupId>org.codehaus.mojo</groupId>
  432. <artifactId>exec-maven-plugin</artifactId>
  433. <version>${exec-maven-plugin.version}</version>
  434. <executions>
  435. <execution>
  436. <id>docker-build</id>
  437. <goals>
  438. <goal>exec</goal>
  439. </goals>
  440. <phase>package</phase>
  441. <configuration>
  442. <skip>${docker.build.skip}</skip>
  443. <environmentVariables>
  444. <DOCKER_BUILDKIT>1</DOCKER_BUILDKIT>
  445. </environmentVariables>
  446. <executable>docker</executable>
  447. <workingDirectory>${project.basedir}</workingDirectory>
  448. <arguments>
  449. <argument>buildx</argument>
  450. <argument>build</argument>
  451. <argument>--load</argument>
  452. <argument>--no-cache</argument>
  453. <argument>-t</argument>
  454. <argument>${docker.hub}/${docker.repo}:${docker.tag}</argument>
  455. <argument>-t</argument>
  456. <argument>${docker.hub}/${docker.repo}:latest</argument>
  457. <argument>${project.basedir}</argument>
  458. <argument>--file=src/main/docker/Dockerfile</argument>
  459. </arguments>
  460. </configuration>
  461. </execution>
  462. <execution>
  463. <id>docker-push</id>
  464. <goals>
  465. <goal>exec</goal>
  466. </goals>
  467. <phase>deploy</phase>
  468. <configuration>
  469. <skip>${docker.push.skip}</skip>
  470. <environmentVariables>
  471. <DOCKER_BUILDKIT>1</DOCKER_BUILDKIT>
  472. </environmentVariables>
  473. <executable>docker</executable>
  474. <workingDirectory>${project.basedir}</workingDirectory>
  475. <arguments>
  476. <argument>buildx</argument>
  477. <argument>build</argument>
  478. <argument>--platform</argument>
  479. <argument>linux/amd64,linux/arm64</argument>
  480. <argument>--no-cache</argument>
  481. <argument>--push</argument>
  482. <argument>-t</argument>
  483. <argument>${docker.hub}/${docker.repo}:${docker.tag}</argument>
  484. <argument>-t</argument>
  485. <argument>${docker.hub}/${docker.repo}:latest</argument>
  486. <argument>${project.basedir}</argument>
  487. <argument>--file=src/main/docker/Dockerfile</argument>
  488. </arguments>
  489. </configuration>
  490. </execution>
  491. </executions>
  492. </plugin>
  493. <plugin>
  494. <groupId>org.owasp</groupId>
  495. <artifactId>dependency-check-maven</artifactId>
  496. <version>${owasp-dependency-check-maven.version}</version>
  497. <configuration>
  498. <skip>${skipDepCheck}</skip>
  499. <skipProvidedScope>true</skipProvidedScope>
  500. <skipRuntimeScope>true</skipRuntimeScope>
  501. <skipSystemScope>true</skipSystemScope>
  502. <failBuildOnCVSS>7</failBuildOnCVSS>
  503. </configuration>
  504. <executions>
  505. <execution>
  506. <goals>
  507. <goal>aggregate</goal>
  508. </goals>
  509. </execution>
  510. </executions>
  511. </plugin>
  512. </plugins>
  513. </pluginManagement>
  514. <plugins>
  515. <plugin>
  516. <groupId>org.owasp</groupId>
  517. <artifactId>dependency-check-maven</artifactId>
  518. </plugin>
  519. <plugin>
  520. <groupId>org.apache.maven.plugins</groupId>
  521. <artifactId>maven-javadoc-plugin</artifactId>
  522. <version>${maven-javadoc-plugin.version}</version>
  523. <configuration>
  524. <aggregate>true</aggregate>
  525. <charset>${project.build.sourceEncoding}</charset>
  526. <encoding>${project.build.sourceEncoding}</encoding>
  527. <docencoding>${project.build.sourceEncoding}</docencoding>
  528. </configuration>
  529. <executions>
  530. <execution>
  531. <id>attach-javadocs</id>
  532. <goals>
  533. <goal>jar</goal>
  534. </goals>
  535. </execution>
  536. </executions>
  537. </plugin>
  538. <plugin>
  539. <groupId>org.apache.maven.plugins</groupId>
  540. <artifactId>maven-release-plugin</artifactId>
  541. <version>${maven-release-plugin.version}</version>
  542. <configuration>
  543. <autoVersionSubmodules>true</autoVersionSubmodules>
  544. <tagNameFormat>@{project.version}</tagNameFormat>
  545. <tagBase>${project.version}</tagBase>
  546. </configuration>
  547. <dependencies>
  548. <dependency>
  549. <groupId>org.apache.maven.scm</groupId>
  550. <artifactId>maven-scm-provider-jgit</artifactId>
  551. <version>1.9.5</version>
  552. </dependency>
  553. </dependencies>
  554. </plugin>
  555. <plugin>
  556. <groupId>org.apache.maven.plugins</groupId>
  557. <artifactId>maven-compiler-plugin</artifactId>
  558. <version>${maven-compiler-plugin.version}</version>
  559. <configuration>
  560. <source>${java.version}</source>
  561. <target>${java.version}</target>
  562. <encoding>${project.build.sourceEncoding}</encoding>
  563. </configuration>
  564. </plugin>
  565. <plugin>
  566. <groupId>org.apache.maven.plugins</groupId>
  567. <artifactId>maven-surefire-plugin</artifactId>
  568. <version>${maven-surefire-plugin.version}</version>
  569. <configuration>
  570. <skip>${skipUT}</skip>
  571. <excludes>
  572. <exclude>**/*IT.java</exclude>
  573. </excludes>
  574. <systemPropertyVariables>
  575. <jacoco-agent.destfile>${project.build.directory}/jacoco.exec</jacoco-agent.destfile>
  576. </systemPropertyVariables>
  577. </configuration>
  578. </plugin>
  579. <plugin>
  580. <groupId>org.apache.maven.plugins</groupId>
  581. <artifactId>maven-failsafe-plugin</artifactId>
  582. <version>${maven-failsafe-plugin.version}</version>
  583. <configuration>
  584. <skip>${skipIT}</skip>
  585. <additionalClasspathElements>dolphinscheduler-dao/src/main/resources</additionalClasspathElements>
  586. </configuration>
  587. <executions>
  588. <execution>
  589. <goals>
  590. <goal>integration-test</goal>
  591. <goal>verify</goal>
  592. </goals>
  593. </execution>
  594. </executions>
  595. </plugin>
  596. <!-- jenkins plugin jacoco report-->
  597. <plugin>
  598. <groupId>org.jacoco</groupId>
  599. <artifactId>jacoco-maven-plugin</artifactId>
  600. <version>${jacoco.version}</version>
  601. <configuration>
  602. <skip>${jacoco.skip}</skip>
  603. <dataFile>${project.build.directory}/jacoco.exec</dataFile>
  604. </configuration>
  605. <executions>
  606. <execution>
  607. <id>default-instrument</id>
  608. <goals>
  609. <goal>instrument</goal>
  610. </goals>
  611. </execution>
  612. <execution>
  613. <id>default-restore-instrumented-classes</id>
  614. <goals>
  615. <goal>restore-instrumented-classes</goal>
  616. </goals>
  617. <configuration>
  618. <excludes>com/github/dreamhead/moco/*</excludes>
  619. </configuration>
  620. </execution>
  621. <execution>
  622. <id>default-report</id>
  623. <goals>
  624. <goal>report</goal>
  625. </goals>
  626. </execution>
  627. </executions>
  628. </plugin>
  629. <plugin>
  630. <groupId>com.github.spotbugs</groupId>
  631. <artifactId>spotbugs-maven-plugin</artifactId>
  632. <version>${spotbugs.version}</version>
  633. <configuration>
  634. <xmlOutput>true</xmlOutput>
  635. <threshold>medium</threshold>
  636. <effort>default</effort>
  637. <excludeFilterFile>dev-config/spotbugs-exclude.xml</excludeFilterFile>
  638. <failOnError>true</failOnError>
  639. </configuration>
  640. <dependencies>
  641. <dependency>
  642. <groupId>com.github.spotbugs</groupId>
  643. <artifactId>spotbugs</artifactId>
  644. <version>4.0.0-beta4</version>
  645. </dependency>
  646. </dependencies>
  647. </plugin>
  648. <plugin>
  649. <groupId>com.diffplug.spotless</groupId>
  650. <artifactId>spotless-maven-plugin</artifactId>
  651. <version>${spotless.version}</version>
  652. <configuration>
  653. <skip>${spotless.skip}</skip>
  654. <java>
  655. <eclipse>
  656. <file>${maven.multiModuleProjectDirectory}/style/spotless_dolphinscheduler_formatter.xml</file>
  657. </eclipse>
  658. <removeUnusedImports />
  659. <importOrder>
  660. <file>${maven.multiModuleProjectDirectory}/style/eclipse.importorder</file>
  661. </importOrder>
  662. <replaceRegex>
  663. <name>Remove wildcard imports</name>
  664. <searchRegex>import\s+(static)*\s*[^\*\s]+\*;(\r\n|\r|\n)</searchRegex>
  665. <replacement>$1</replacement>
  666. </replaceRegex>
  667. <replaceRegex>
  668. <name>Block powermock</name>
  669. <searchRegex>import\s+org\.powermock\.[^\*\s]*(|\*);(\r\n|\r|\n)</searchRegex>
  670. <replacement>$1</replacement>
  671. </replaceRegex>
  672. <replaceRegex>
  673. <name>Block jUnit4 imports</name>
  674. <searchRegex>import\s+org\.junit\.[^jupiter][^\*\s]*(|\*);(\r\n|\r|\n)</searchRegex>
  675. <replacement>$1</replacement>
  676. </replaceRegex>
  677. <replaceRegex>
  678. <name>Block kubernetes-client</name>
  679. <searchRegex>import\s+io\.kubernetes\.client\.[^\*\s]*(|\*);(\r\n|\r|\n)</searchRegex>
  680. <replacement>$1</replacement>
  681. </replaceRegex>
  682. </java>
  683. <pom>
  684. <sortPom>
  685. <encoding>UTF-8</encoding>
  686. <nrOfIndentSpace>4</nrOfIndentSpace>
  687. <keepBlankLines>true</keepBlankLines>
  688. <indentBlankLines>false</indentBlankLines>
  689. <indentSchemaLocation>true</indentSchemaLocation>
  690. <spaceBeforeCloseEmptyElement>true</spaceBeforeCloseEmptyElement>
  691. <sortModules>false</sortModules>
  692. <sortExecutions>false</sortExecutions>
  693. <predefinedSortOrder>custom_1</predefinedSortOrder>
  694. <expandEmptyElements>false</expandEmptyElements>
  695. <sortProperties>false</sortProperties>
  696. </sortPom>
  697. <replace>
  698. <name>Leading blank line</name>
  699. <search>project</search>
  700. <replacement>project</replacement>
  701. </replace>
  702. </pom>
  703. <markdown>
  704. <includes>
  705. <include>docs/**/*.md</include>
  706. </includes>
  707. <excludes>
  708. <exclude>**/.github/**/*.md</exclude>
  709. </excludes>
  710. <flexmark />
  711. </markdown>
  712. <upToDateChecking>
  713. <enabled>true</enabled>
  714. </upToDateChecking>
  715. </configuration>
  716. <executions>
  717. <execution>
  718. <goals>
  719. <goal>check</goal>
  720. </goals>
  721. <phase>compile</phase>
  722. </execution>
  723. </executions>
  724. </plugin>
  725. <plugin>
  726. <groupId>org.codehaus.mojo</groupId>
  727. <artifactId>cobertura-maven-plugin</artifactId>
  728. <version>${cobertura-maven-plugin.version}</version>
  729. <configuration>
  730. <check />
  731. <aggregate>true</aggregate>
  732. <outputDirectory>./target/cobertura</outputDirectory>
  733. <encoding>${project.build.sourceEncoding}</encoding>
  734. <quiet>true</quiet>
  735. <format>xml</format>
  736. <instrumentation>
  737. <ignoreTrivial>true</ignoreTrivial>
  738. </instrumentation>
  739. </configuration>
  740. </plugin>
  741. <plugin>
  742. <artifactId>maven-source-plugin</artifactId>
  743. <version>${maven-source-plugin.version}</version>
  744. <executions>
  745. <execution>
  746. <id>attach-sources</id>
  747. <goals>
  748. <goal>jar</goal>
  749. </goals>
  750. </execution>
  751. </executions>
  752. </plugin>
  753. <plugin>
  754. <groupId>org.apache.maven.plugins</groupId>
  755. <artifactId>maven-dependency-plugin</artifactId>
  756. <version>${maven-dependency-plugin.version}</version>
  757. <executions>
  758. <execution>
  759. <id>analyze-dependencies</id>
  760. <goals>
  761. <goal>analyze-only</goal>
  762. </goals>
  763. <configuration>
  764. <ignoredDependencies>
  765. <!-- Because of SpringBoot auto-configurations, the configuration is happening outside of your application code, so Maven believes these dependencies to be unused -->
  766. <!-- Static code analysis tools like (maven-dependency-plugin) can not detect runtime dependencies, so you should instruct them about runtime dependencies -->
  767. <!-- https://stackoverflow.com/questions/37528928/spring-boot-core-dependencies-seen-as-unused-by-maven-dependency-plugin -->
  768. <ignoredDependency>org.springframework*:*</ignoredDependency>
  769. <ignoredDependency>org.apache.dolphinscheduler:dolphinscheduler-meter</ignoredDependency>
  770. </ignoredDependencies>
  771. <ignoreNonCompile>true</ignoreNonCompile>
  772. </configuration>
  773. </execution>
  774. </executions>
  775. </plugin>
  776. </plugins>
  777. </build>
  778. <url>https://dolphinscheduler.apache.org</url>
  779. <mailingLists>
  780. <mailingList>
  781. <name>DolphinScheduler Developer List</name>
  782. <subscribe>dev-subscribe@dolphinscheduler.apache.org</subscribe>
  783. <unsubscribe>dev-unsubscribe@dolphinscheduler.apache.org</unsubscribe>
  784. <post>dev@dolphinscheduler.apache.org</post>
  785. </mailingList>
  786. </mailingLists>
  787. <scm>
  788. <connection>scm:git:https://github.com/apache/dolphinscheduler.git</connection>
  789. <developerConnection>scm:git:https://github.com/apache/dolphinscheduler.git</developerConnection>
  790. <url>https://github.com/apache/dolphinscheduler</url>
  791. <tag>HEAD</tag>
  792. </scm>
  793. <profiles>
  794. <!-- <profile>-->
  795. <!-- <id>docker</id>-->
  796. <!-- <properties>-->
  797. <!-- <docker.build.skip>true</docker.build.skip>-->
  798. <!-- <docker.push.skip>true</docker.push.skip>-->
  799. <!-- </properties>-->
  800. <!-- </profile>-->
  801. <profile>
  802. <id>helm-doc</id>
  803. <build>
  804. <plugins>
  805. <plugin>
  806. <groupId>org.codehaus.mojo</groupId>
  807. <artifactId>exec-maven-plugin</artifactId>
  808. <version>${exec-maven-plugin.version}</version>
  809. <executions>
  810. <execution>
  811. <id>helm-doc</id>
  812. <goals>
  813. <goal>exec</goal>
  814. </goals>
  815. <phase>validate</phase>
  816. <configuration>
  817. <executable>docker</executable>
  818. <workingDirectory>${project.basedir}</workingDirectory>
  819. <arguments>
  820. <argument>run</argument>
  821. <argument>--rm</argument>
  822. <argument>--volume</argument>
  823. <argument>${project.basedir}/deploy/kubernetes:/helm-docs</argument>
  824. <argument>jnorwood/helm-docs:v1.11.3</argument>
  825. </arguments>
  826. </configuration>
  827. </execution>
  828. </executions>
  829. </plugin>
  830. </plugins>
  831. </build>
  832. </profile>
  833. </profiles>
  834. </project>