pom.xml 37 KB

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