pom.xml 35 KB

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