pom.xml 37 KB

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