pom.xml 35 KB

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