pom.xml 34 KB

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