pom.xml 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766
  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>dev-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-dao</module>
  43. <module>dolphinscheduler-dist</module>
  44. <module>dolphinscheduler-remote</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-python</module>
  51. <module>dolphinscheduler-meter</module>
  52. <module>dolphinscheduler-master</module>
  53. <module>dolphinscheduler-worker</module>
  54. <module>dolphinscheduler-tools</module>
  55. <module>dolphinscheduler-ui</module>
  56. <module>dolphinscheduler-scheduler-plugin</module>
  57. </modules>
  58. <properties>
  59. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  60. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  61. <spring.boot.version>2.6.1</spring.boot.version>
  62. <java.version>1.8</java.version>
  63. <junit.version>5.9.0</junit.version>
  64. <mockito.version>3.9.0</mockito.version>
  65. <spotbugs.version>3.1.12</spotbugs.version>
  66. <maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
  67. <maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
  68. <maven-release-plugin.version>2.5.3</maven-release-plugin.version>
  69. <maven-javadoc-plugin.version>2.10.3</maven-javadoc-plugin.version>
  70. <maven-source-plugin.version>2.4</maven-source-plugin.version>
  71. <maven-surefire-plugin.version>3.0.0-M6</maven-surefire-plugin.version>
  72. <maven-dependency-plugin.version>3.1.1</maven-dependency-plugin.version>
  73. <maven-shade-plugin.version>3.2.1</maven-shade-plugin.version>
  74. <rpm-maven-plugion.version>2.2.0</rpm-maven-plugion.version>
  75. <spotless.version>2.23.0</spotless.version>
  76. <jacoco.version>0.8.8</jacoco.version>
  77. <maven.deploy.skip>false</maven.deploy.skip>
  78. <cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version>
  79. <auto-service.version>1.0.1</auto-service.version>
  80. <jacoco.skip>false</jacoco.skip>
  81. <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
  82. <exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
  83. <owasp-dependency-check-maven.version>7.1.2</owasp-dependency-check-maven.version>
  84. <lombok.version>1.18.20</lombok.version>
  85. <docker.hub>apache</docker.hub>
  86. <docker.repo>${project.name}</docker.repo>
  87. <docker.tag>${project.version}</docker.tag>
  88. <docker.build.skip>true</docker.build.skip>
  89. <docker.push.skip>true</docker.push.skip>
  90. <python.sign.skip>true</python.sign.skip>
  91. <skipDepCheck>true</skipDepCheck>
  92. </properties>
  93. <dependencyManagement>
  94. <dependencies>
  95. <dependency>
  96. <groupId>org.apache.dolphinscheduler</groupId>
  97. <artifactId>dolphinscheduler-master</artifactId>
  98. <version>${project.version}</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.apache.dolphinscheduler</groupId>
  102. <artifactId>dolphinscheduler-worker</artifactId>
  103. <version>${project.version}</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.apache.dolphinscheduler</groupId>
  107. <artifactId>dolphinscheduler-standalone-server</artifactId>
  108. <version>${project.version}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.apache.dolphinscheduler</groupId>
  112. <artifactId>dolphinscheduler-common</artifactId>
  113. <version>${project.version}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.apache.dolphinscheduler</groupId>
  117. <artifactId>dolphinscheduler-alert-plugins</artifactId>
  118. <version>${project.version}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.apache.dolphinscheduler</groupId>
  122. <artifactId>dolphinscheduler-registry-plugins</artifactId>
  123. <version>${project.version}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.apache.dolphinscheduler</groupId>
  127. <artifactId>dolphinscheduler-registry-all</artifactId>
  128. <version>${project.version}</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.apache.dolphinscheduler</groupId>
  132. <artifactId>dolphinscheduler-dao</artifactId>
  133. <version>${project.version}</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.apache.dolphinscheduler</groupId>
  137. <artifactId>dolphinscheduler-api</artifactId>
  138. <version>${project.version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.apache.dolphinscheduler</groupId>
  142. <artifactId>dolphinscheduler-remote</artifactId>
  143. <version>${project.version}</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.apache.dolphinscheduler</groupId>
  147. <artifactId>dolphinscheduler-service</artifactId>
  148. <version>${project.version}</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>org.apache.dolphinscheduler</groupId>
  152. <artifactId>dolphinscheduler-meter</artifactId>
  153. <version>${project.version}</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.apache.dolphinscheduler</groupId>
  157. <artifactId>dolphinscheduler-spi</artifactId>
  158. <version>${project.version}</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.apache.dolphinscheduler</groupId>
  162. <artifactId>dolphinscheduler-data-quality</artifactId>
  163. <version>${project.version}</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>org.apache.dolphinscheduler</groupId>
  167. <artifactId>dolphinscheduler-python</artifactId>
  168. <version>${project.version}</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>org.apache.dolphinscheduler</groupId>
  172. <artifactId>dolphinscheduler-alert-api</artifactId>
  173. <version>${project.version}</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.apache.dolphinscheduler</groupId>
  177. <artifactId>dolphinscheduler-alert-server</artifactId>
  178. <version>${project.version}</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.apache.dolphinscheduler</groupId>
  182. <artifactId>dolphinscheduler-alert-dingtalk</artifactId>
  183. <version>${project.version}</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.apache.dolphinscheduler</groupId>
  187. <artifactId>dolphinscheduler-alert-email</artifactId>
  188. <version>${project.version}</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.apache.dolphinscheduler</groupId>
  192. <artifactId>dolphinscheduler-alert-feishu</artifactId>
  193. <version>${project.version}</version>
  194. </dependency>
  195. <dependency>
  196. <groupId>org.apache.dolphinscheduler</groupId>
  197. <artifactId>dolphinscheduler-alert-http</artifactId>
  198. <version>${project.version}</version>
  199. </dependency>
  200. <dependency>
  201. <groupId>org.apache.dolphinscheduler</groupId>
  202. <artifactId>dolphinscheduler-alert-script</artifactId>
  203. <version>${project.version}</version>
  204. </dependency>
  205. <dependency>
  206. <groupId>org.apache.dolphinscheduler</groupId>
  207. <artifactId>dolphinscheduler-alert-slack</artifactId>
  208. <version>${project.version}</version>
  209. </dependency>
  210. <dependency>
  211. <groupId>org.apache.dolphinscheduler</groupId>
  212. <artifactId>dolphinscheduler-alert-wechat</artifactId>
  213. <version>${project.version}</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>org.apache.dolphinscheduler</groupId>
  217. <artifactId>dolphinscheduler-alert-pagerduty</artifactId>
  218. <version>${project.version}</version>
  219. </dependency>
  220. <dependency>
  221. <groupId>org.apache.dolphinscheduler</groupId>
  222. <artifactId>dolphinscheduler-alert-webexteams</artifactId>
  223. <version>${project.version}</version>
  224. </dependency>
  225. <dependency>
  226. <groupId>org.apache.dolphinscheduler</groupId>
  227. <artifactId>dolphinscheduler-alert-telegram</artifactId>
  228. <version>${project.version}</version>
  229. </dependency>
  230. <dependency>
  231. <groupId>org.apache.dolphinscheduler</groupId>
  232. <artifactId>dolphinscheduler-registry-api</artifactId>
  233. <version>${project.version}</version>
  234. </dependency>
  235. <dependency>
  236. <groupId>org.apache.dolphinscheduler</groupId>
  237. <artifactId>dolphinscheduler-registry-zookeeper</artifactId>
  238. <version>${project.version}</version>
  239. </dependency>
  240. <dependency>
  241. <groupId>org.apache.dolphinscheduler</groupId>
  242. <artifactId>dolphinscheduler-registry-mysql</artifactId>
  243. <version>${project.version}</version>
  244. </dependency>
  245. <dependency>
  246. <groupId>org.apache.dolphinscheduler</groupId>
  247. <artifactId>dolphinscheduler-scheduler-api</artifactId>
  248. <version>${project.version}</version>
  249. </dependency>
  250. <dependency>
  251. <groupId>org.apache.dolphinscheduler</groupId>
  252. <artifactId>dolphinscheduler-scheduler-quartz</artifactId>
  253. <version>${project.version}</version>
  254. </dependency>
  255. <dependency>
  256. <groupId>org.apache.dolphinscheduler</groupId>
  257. <artifactId>dolphinscheduler-datasource-all</artifactId>
  258. <version>${project.version}</version>
  259. </dependency>
  260. <dependency>
  261. <groupId>org.apache.dolphinscheduler</groupId>
  262. <artifactId>dolphinscheduler-datasource-api</artifactId>
  263. <version>${project.version}</version>
  264. </dependency>
  265. <dependency>
  266. <groupId>org.apache.dolphinscheduler</groupId>
  267. <artifactId>dolphinscheduler-task-api</artifactId>
  268. <version>${project.version}</version>
  269. </dependency>
  270. <dependency>
  271. <groupId>org.apache.dolphinscheduler</groupId>
  272. <artifactId>dolphinscheduler-task-python</artifactId>
  273. <version>${project.version}</version>
  274. </dependency>
  275. <dependency>
  276. <groupId>org.apache.dolphinscheduler</groupId>
  277. <artifactId>dolphinscheduler-task-all</artifactId>
  278. <version>${project.version}</version>
  279. </dependency>
  280. <dependency>
  281. <groupId>org.apache.dolphinscheduler</groupId>
  282. <artifactId>dolphinscheduler-ui</artifactId>
  283. <version>${project.version}</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>org.apache.dolphinscheduler</groupId>
  287. <artifactId>dolphinscheduler-tools</artifactId>
  288. <version>${project.version}</version>
  289. </dependency>
  290. <dependency>
  291. <groupId>org.junit</groupId>
  292. <artifactId>junit-bom</artifactId>
  293. <version>${junit.version}</version>
  294. <type>pom</type>
  295. <scope>import</scope>
  296. </dependency>
  297. </dependencies>
  298. </dependencyManagement>
  299. <dependencies>
  300. <!--
  301. NOTE: only development / test phase dependencies (scope = test / provided)
  302. that won't be packaged into final jar can be declared here.
  303. For example: annotation processors, test dependencies that are used by most
  304. of the submodules.
  305. -->
  306. <dependency>
  307. <groupId>org.junit.jupiter</groupId>
  308. <artifactId>junit-jupiter-api</artifactId>
  309. <scope>test</scope>
  310. </dependency>
  311. <dependency>
  312. <groupId>org.junit.vintage</groupId>
  313. <artifactId>junit-vintage-engine</artifactId>
  314. <scope>test</scope>
  315. </dependency>
  316. <dependency>
  317. <groupId>org.mockito</groupId>
  318. <artifactId>mockito-core</artifactId>
  319. <version>${mockito.version}</version>
  320. <scope>test</scope>
  321. </dependency>
  322. <dependency>
  323. <groupId>org.mockito</groupId>
  324. <artifactId>mockito-junit-jupiter</artifactId>
  325. <version>${mockito.version}</version>
  326. <scope>test</scope>
  327. </dependency>
  328. <dependency>
  329. <groupId>org.jacoco</groupId>
  330. <artifactId>org.jacoco.agent</artifactId>
  331. <version>${jacoco.version}</version>
  332. <classifier>runtime</classifier>
  333. <scope>test</scope>
  334. </dependency>
  335. <dependency>
  336. <groupId>org.springframework.boot</groupId>
  337. <artifactId>spring-boot-configuration-processor</artifactId>
  338. <version>${spring.boot.version}</version>
  339. <optional>true</optional>
  340. </dependency>
  341. <dependency>
  342. <groupId>com.google.auto.service</groupId>
  343. <artifactId>auto-service</artifactId>
  344. <version>${auto-service.version}</version>
  345. <scope>provided</scope>
  346. </dependency>
  347. <dependency>
  348. <groupId>org.projectlombok</groupId>
  349. <artifactId>lombok</artifactId>
  350. <version>${lombok.version}</version>
  351. <scope>provided</scope>
  352. </dependency>
  353. </dependencies>
  354. <build>
  355. <pluginManagement>
  356. <plugins>
  357. <plugin>
  358. <groupId>org.codehaus.mojo</groupId>
  359. <artifactId>rpm-maven-plugin</artifactId>
  360. <version>${rpm-maven-plugion.version}</version>
  361. <inherited>false</inherited>
  362. </plugin>
  363. <plugin>
  364. <groupId>org.apache.maven.plugins</groupId>
  365. <artifactId>maven-compiler-plugin</artifactId>
  366. <version>${maven-compiler-plugin.version}</version>
  367. <configuration>
  368. <source>${java.version}</source>
  369. <target>${java.version}</target>
  370. <testSource>${java.version}</testSource>
  371. <testTarget>${java.version}</testTarget>
  372. </configuration>
  373. </plugin>
  374. <plugin>
  375. <groupId>org.apache.maven.plugins</groupId>
  376. <artifactId>maven-release-plugin</artifactId>
  377. <version>${maven-release-plugin.version}</version>
  378. <configuration>
  379. <tagNameFormat>@{project.version}</tagNameFormat>
  380. </configuration>
  381. </plugin>
  382. <plugin>
  383. <groupId>org.apache.maven.plugins</groupId>
  384. <artifactId>maven-assembly-plugin</artifactId>
  385. <version>${maven-assembly-plugin.version}</version>
  386. </plugin>
  387. <plugin>
  388. <groupId>org.apache.maven.plugins</groupId>
  389. <artifactId>maven-javadoc-plugin</artifactId>
  390. <version>${maven-javadoc-plugin.version}</version>
  391. <configuration>
  392. <source>8</source>
  393. <failOnError>false</failOnError>
  394. </configuration>
  395. </plugin>
  396. <plugin>
  397. <groupId>org.apache.maven.plugins</groupId>
  398. <artifactId>maven-dependency-plugin</artifactId>
  399. <version>${maven-dependency-plugin.version}</version>
  400. </plugin>
  401. <plugin>
  402. <groupId>org.apache.maven.plugins</groupId>
  403. <artifactId>maven-shade-plugin</artifactId>
  404. <version>${maven-shade-plugin.version}</version>
  405. </plugin>
  406. <plugin>
  407. <groupId>org.apache.maven.plugins</groupId>
  408. <artifactId>maven-jar-plugin</artifactId>
  409. <version>${maven-jar-plugin.version}</version>
  410. </plugin>
  411. <plugin>
  412. <groupId>org.codehaus.mojo</groupId>
  413. <artifactId>exec-maven-plugin</artifactId>
  414. <version>${exec-maven-plugin.version}</version>
  415. <executions>
  416. <execution>
  417. <id>docker-build</id>
  418. <goals>
  419. <goal>exec</goal>
  420. </goals>
  421. <phase>package</phase>
  422. <configuration>
  423. <skip>${docker.build.skip}</skip>
  424. <environmentVariables>
  425. <DOCKER_BUILDKIT>1</DOCKER_BUILDKIT>
  426. </environmentVariables>
  427. <executable>docker</executable>
  428. <workingDirectory>${project.basedir}</workingDirectory>
  429. <arguments>
  430. <argument>buildx</argument>
  431. <argument>build</argument>
  432. <argument>--load</argument>
  433. <argument>--no-cache</argument>
  434. <argument>-t</argument>
  435. <argument>${docker.hub}/${docker.repo}:${docker.tag}</argument>
  436. <argument>-t</argument>
  437. <argument>${docker.hub}/${docker.repo}:latest</argument>
  438. <argument>${project.basedir}</argument>
  439. <argument>--file=src/main/docker/Dockerfile</argument>
  440. </arguments>
  441. </configuration>
  442. </execution>
  443. <execution>
  444. <id>docker-push</id>
  445. <goals>
  446. <goal>exec</goal>
  447. </goals>
  448. <phase>deploy</phase>
  449. <configuration>
  450. <skip>${docker.push.skip}</skip>
  451. <environmentVariables>
  452. <DOCKER_BUILDKIT>1</DOCKER_BUILDKIT>
  453. </environmentVariables>
  454. <executable>docker</executable>
  455. <workingDirectory>${project.basedir}</workingDirectory>
  456. <arguments>
  457. <argument>buildx</argument>
  458. <argument>build</argument>
  459. <argument>--platform</argument>
  460. <argument>linux/amd64,linux/arm64</argument>
  461. <argument>--no-cache</argument>
  462. <argument>--push</argument>
  463. <argument>-t</argument>
  464. <argument>${docker.hub}/${docker.repo}:${docker.tag}</argument>
  465. <argument>-t</argument>
  466. <argument>${docker.hub}/${docker.repo}:latest</argument>
  467. <argument>${project.basedir}</argument>
  468. <argument>--file=src/main/docker/Dockerfile</argument>
  469. </arguments>
  470. </configuration>
  471. </execution>
  472. </executions>
  473. </plugin>
  474. <plugin>
  475. <groupId>org.owasp</groupId>
  476. <artifactId>dependency-check-maven</artifactId>
  477. <version>${owasp-dependency-check-maven.version}</version>
  478. <configuration>
  479. <skip>${skipDepCheck}</skip>
  480. <skipProvidedScope>true</skipProvidedScope>
  481. <skipRuntimeScope>true</skipRuntimeScope>
  482. <skipSystemScope>true</skipSystemScope>
  483. <failBuildOnCVSS>7</failBuildOnCVSS>
  484. </configuration>
  485. <executions>
  486. <execution>
  487. <goals>
  488. <goal>aggregate</goal>
  489. </goals>
  490. </execution>
  491. </executions>
  492. </plugin>
  493. </plugins>
  494. </pluginManagement>
  495. <plugins>
  496. <plugin>
  497. <groupId>org.owasp</groupId>
  498. <artifactId>dependency-check-maven</artifactId>
  499. </plugin>
  500. <plugin>
  501. <groupId>org.apache.maven.plugins</groupId>
  502. <artifactId>maven-javadoc-plugin</artifactId>
  503. <version>${maven-javadoc-plugin.version}</version>
  504. <configuration>
  505. <aggregate>true</aggregate>
  506. <charset>${project.build.sourceEncoding}</charset>
  507. <encoding>${project.build.sourceEncoding}</encoding>
  508. <docencoding>${project.build.sourceEncoding}</docencoding>
  509. </configuration>
  510. <executions>
  511. <execution>
  512. <id>attach-javadocs</id>
  513. <goals>
  514. <goal>jar</goal>
  515. </goals>
  516. </execution>
  517. </executions>
  518. </plugin>
  519. <plugin>
  520. <groupId>org.apache.maven.plugins</groupId>
  521. <artifactId>maven-release-plugin</artifactId>
  522. <version>${maven-release-plugin.version}</version>
  523. <configuration>
  524. <autoVersionSubmodules>true</autoVersionSubmodules>
  525. <tagNameFormat>@{project.version}</tagNameFormat>
  526. <tagBase>${project.version}</tagBase>
  527. </configuration>
  528. <dependencies>
  529. <dependency>
  530. <groupId>org.apache.maven.scm</groupId>
  531. <artifactId>maven-scm-provider-jgit</artifactId>
  532. <version>1.9.5</version>
  533. </dependency>
  534. </dependencies>
  535. </plugin>
  536. <plugin>
  537. <groupId>org.apache.maven.plugins</groupId>
  538. <artifactId>maven-compiler-plugin</artifactId>
  539. <version>${maven-compiler-plugin.version}</version>
  540. <configuration>
  541. <source>${java.version}</source>
  542. <target>${java.version}</target>
  543. <encoding>${project.build.sourceEncoding}</encoding>
  544. <skip>false</skip>
  545. <!--not skip compile test classes-->
  546. </configuration>
  547. </plugin>
  548. <plugin>
  549. <groupId>org.apache.maven.plugins</groupId>
  550. <artifactId>maven-surefire-plugin</artifactId>
  551. <version>${maven-surefire-plugin.version}</version>
  552. <configuration>
  553. <systemPropertyVariables>
  554. <jacoco-agent.destfile>${project.build.directory}/jacoco.exec</jacoco-agent.destfile>
  555. </systemPropertyVariables>
  556. </configuration>
  557. </plugin>
  558. <!-- jenkins plugin jacoco report-->
  559. <plugin>
  560. <groupId>org.jacoco</groupId>
  561. <artifactId>jacoco-maven-plugin</artifactId>
  562. <version>${jacoco.version}</version>
  563. <configuration>
  564. <skip>${jacoco.skip}</skip>
  565. <dataFile>${project.build.directory}/jacoco.exec</dataFile>
  566. </configuration>
  567. <executions>
  568. <execution>
  569. <id>default-instrument</id>
  570. <goals>
  571. <goal>instrument</goal>
  572. </goals>
  573. </execution>
  574. <execution>
  575. <id>default-restore-instrumented-classes</id>
  576. <goals>
  577. <goal>restore-instrumented-classes</goal>
  578. </goals>
  579. <configuration>
  580. <excludes>com/github/dreamhead/moco/*</excludes>
  581. </configuration>
  582. </execution>
  583. <execution>
  584. <id>default-report</id>
  585. <goals>
  586. <goal>report</goal>
  587. </goals>
  588. </execution>
  589. </executions>
  590. </plugin>
  591. <plugin>
  592. <groupId>com.github.spotbugs</groupId>
  593. <artifactId>spotbugs-maven-plugin</artifactId>
  594. <version>${spotbugs.version}</version>
  595. <configuration>
  596. <xmlOutput>true</xmlOutput>
  597. <threshold>medium</threshold>
  598. <effort>default</effort>
  599. <excludeFilterFile>dev-config/spotbugs-exclude.xml</excludeFilterFile>
  600. <failOnError>true</failOnError>
  601. </configuration>
  602. <dependencies>
  603. <dependency>
  604. <groupId>com.github.spotbugs</groupId>
  605. <artifactId>spotbugs</artifactId>
  606. <version>4.0.0-beta4</version>
  607. </dependency>
  608. </dependencies>
  609. </plugin>
  610. <plugin>
  611. <groupId>com.diffplug.spotless</groupId>
  612. <artifactId>spotless-maven-plugin</artifactId>
  613. <version>${spotless.version}</version>
  614. <configuration>
  615. <!-- optional: limit format enforcement to just the files changed by this feature branch -->
  616. <ratchetFrom>HEAD</ratchetFrom>
  617. <java>
  618. <eclipse>
  619. <file>style/spotless_dolphinscheduler_formatter.xml</file>
  620. </eclipse>
  621. <removeUnusedImports />
  622. <importOrder>
  623. <file>style/eclipse.importorder</file>
  624. </importOrder>
  625. <replaceRegex>
  626. <name>Remove wildcard imports</name>
  627. <searchRegex>import\s+[^\*\s]+\*;(\r\n|\r|\n)</searchRegex>
  628. <replacement>$1</replacement>
  629. </replaceRegex>
  630. </java>
  631. <pom>
  632. <sortPom>
  633. <encoding>UTF-8</encoding>
  634. <nrOfIndentSpace>4</nrOfIndentSpace>
  635. <keepBlankLines>true</keepBlankLines>
  636. <indentBlankLines>false</indentBlankLines>
  637. <indentSchemaLocation>true</indentSchemaLocation>
  638. <spaceBeforeCloseEmptyElement>true</spaceBeforeCloseEmptyElement>
  639. <sortModules>false</sortModules>
  640. <sortExecutions>false</sortExecutions>
  641. <predefinedSortOrder>custom_1</predefinedSortOrder>
  642. <expandEmptyElements>false</expandEmptyElements>
  643. <sortProperties>false</sortProperties>
  644. </sortPom>
  645. <replace>
  646. <name>Leading blank line</name>
  647. <search>project</search>
  648. <replacement>project</replacement>
  649. </replace>
  650. </pom>
  651. <markdown>
  652. <includes>
  653. <include>**/*.md</include>
  654. </includes>
  655. <flexmark />
  656. </markdown>
  657. </configuration>
  658. <executions>
  659. <execution>
  660. <goals>
  661. <goal>check</goal>
  662. </goals>
  663. <phase>compile</phase>
  664. </execution>
  665. </executions>
  666. </plugin>
  667. <plugin>
  668. <groupId>org.codehaus.mojo</groupId>
  669. <artifactId>cobertura-maven-plugin</artifactId>
  670. <version>${cobertura-maven-plugin.version}</version>
  671. <configuration>
  672. <check />
  673. <aggregate>true</aggregate>
  674. <outputDirectory>./target/cobertura</outputDirectory>
  675. <encoding>${project.build.sourceEncoding}</encoding>
  676. <quiet>true</quiet>
  677. <format>xml</format>
  678. <instrumentation>
  679. <ignoreTrivial>true</ignoreTrivial>
  680. </instrumentation>
  681. </configuration>
  682. </plugin>
  683. <plugin>
  684. <artifactId>maven-source-plugin</artifactId>
  685. <version>${maven-source-plugin.version}</version>
  686. <executions>
  687. <execution>
  688. <id>attach-sources</id>
  689. <goals>
  690. <goal>jar</goal>
  691. </goals>
  692. </execution>
  693. </executions>
  694. </plugin>
  695. <plugin>
  696. <groupId>org.apache.maven.plugins</groupId>
  697. <artifactId>maven-dependency-plugin</artifactId>
  698. <version>${maven-dependency-plugin.version}</version>
  699. <executions>
  700. <execution>
  701. <id>analyze-dependencies</id>
  702. <goals>
  703. <goal>analyze-only</goal>
  704. </goals>
  705. <configuration>
  706. <ignoredDependencies>
  707. <!-- Because of SpringBoot auto-configurations, the configuration is happening outside of your application code, so Maven believes these dependencies to be unused -->
  708. <!-- Static code analysis tools like (maven-dependency-plugin) can not detect runtime dependencies, so you should instruct them about runtime dependencies -->
  709. <!-- https://stackoverflow.com/questions/37528928/spring-boot-core-dependencies-seen-as-unused-by-maven-dependency-plugin -->
  710. <ignoredDependency>org.springframework*:*</ignoredDependency>
  711. <ignoredDependency>org.apache.dolphinscheduler:dolphinscheduler-meter</ignoredDependency>
  712. </ignoredDependencies>
  713. <ignoreNonCompile>true</ignoreNonCompile>
  714. </configuration>
  715. </execution>
  716. </executions>
  717. </plugin>
  718. </plugins>
  719. </build>
  720. <url>https://dolphinscheduler.apache.org</url>
  721. <mailingLists>
  722. <mailingList>
  723. <name>DolphinScheduler Developer List</name>
  724. <subscribe>dev-subscribe@dolphinscheduler.apache.org</subscribe>
  725. <unsubscribe>dev-unsubscribe@dolphinscheduler.apache.org</unsubscribe>
  726. <post>dev@dolphinscheduler.apache.org</post>
  727. </mailingList>
  728. </mailingLists>
  729. <scm>
  730. <connection>scm:git:https://github.com/apache/dolphinscheduler.git</connection>
  731. <developerConnection>scm:git:https://github.com/apache/dolphinscheduler.git</developerConnection>
  732. <url>https://github.com/apache/dolphinscheduler</url>
  733. <tag>HEAD</tag>
  734. </scm>
  735. <profiles>
  736. <profile>
  737. <id>docker</id>
  738. <properties>
  739. <docker.build.skip>false</docker.build.skip>
  740. <docker.push.skip>false</docker.push.skip>
  741. </properties>
  742. </profile>
  743. </profiles>
  744. </project>