pom.xml 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one or more
  4. ~ contributor license agreements. See the NOTICE file distributed with
  5. ~ this work for additional information regarding copyright ownership.
  6. ~ The ASF licenses this file to You under the Apache License, Version 2.0
  7. ~ (the "License"); you may not use this file except in compliance with
  8. ~ the License. You may obtain a copy of the License at
  9. ~
  10. ~ http://www.apache.org/licenses/LICENSE-2.0
  11. ~
  12. ~ Unless required by applicable law or agreed to in writing, software
  13. ~ distributed under the License is distributed on an "AS IS" BASIS,
  14. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. ~ See the License for the specific language governing permissions and
  16. ~ limitations under the License.
  17. -->
  18. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  20. <modelVersion>4.0.0</modelVersion>
  21. <parent>
  22. <groupId>org.apache</groupId>
  23. <artifactId>apache</artifactId>
  24. <version>25</version>
  25. </parent>
  26. <groupId>org.apache.dolphinscheduler</groupId>
  27. <artifactId>dolphinscheduler</artifactId>
  28. <version>dev-SNAPSHOT</version>
  29. <packaging>pom</packaging>
  30. <name>${project.artifactId}</name>
  31. <description>Dolphin Scheduler is a distributed and easy-to-expand visual DAG workflow scheduling system, dedicated
  32. to solving the complex dependencies in data processing, making the scheduling system out of the box for data
  33. processing.</description>
  34. <modules>
  35. <module>dolphinscheduler-bom</module>
  36. <module>dolphinscheduler-alert</module>
  37. <module>dolphinscheduler-spi</module>
  38. <module>dolphinscheduler-registry</module>
  39. <module>dolphinscheduler-task-plugin</module>
  40. <module>dolphinscheduler-common</module>
  41. <module>dolphinscheduler-api</module>
  42. <module>dolphinscheduler-aop</module>
  43. <module>dolphinscheduler-dao</module>
  44. <module>dolphinscheduler-dist</module>
  45. <module>dolphinscheduler-remote</module>
  46. <module>dolphinscheduler-service</module>
  47. <module>dolphinscheduler-microbench</module>
  48. <module>dolphinscheduler-data-quality</module>
  49. <module>dolphinscheduler-standalone-server</module>
  50. <module>dolphinscheduler-datasource-plugin</module>
  51. <module>dolphinscheduler-python</module>
  52. <module>dolphinscheduler-meter</module>
  53. <module>dolphinscheduler-master</module>
  54. <module>dolphinscheduler-worker</module>
  55. <module>dolphinscheduler-tools</module>
  56. <module>dolphinscheduler-ui</module>
  57. <module>dolphinscheduler-scheduler-plugin</module>
  58. </modules>
  59. <properties>
  60. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  61. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  62. <spring.boot.version>2.6.1</spring.boot.version>
  63. <java.version>1.8</java.version>
  64. <junit.version>5.9.0</junit.version>
  65. <mockito.version>3.12.4</mockito.version>
  66. <spotbugs.version>3.1.12</spotbugs.version>
  67. <maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
  68. <maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
  69. <maven-release-plugin.version>2.5.3</maven-release-plugin.version>
  70. <maven-javadoc-plugin.version>2.10.3</maven-javadoc-plugin.version>
  71. <maven-source-plugin.version>2.4</maven-source-plugin.version>
  72. <maven-surefire-plugin.version>3.0.0-M6</maven-surefire-plugin.version>
  73. <maven-dependency-plugin.version>3.1.1</maven-dependency-plugin.version>
  74. <maven-shade-plugin.version>3.2.1</maven-shade-plugin.version>
  75. <rpm-maven-plugion.version>2.2.0</rpm-maven-plugion.version>
  76. <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. <python.sign.skip>true</python.sign.skip>
  92. <skipDepCheck>true</skipDepCheck>
  93. </properties>
  94. <dependencyManagement>
  95. <dependencies>
  96. <dependency>
  97. <groupId>org.apache.dolphinscheduler</groupId>
  98. <artifactId>dolphinscheduler-master</artifactId>
  99. <version>${project.version}</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.apache.dolphinscheduler</groupId>
  103. <artifactId>dolphinscheduler-worker</artifactId>
  104. <version>${project.version}</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.apache.dolphinscheduler</groupId>
  108. <artifactId>dolphinscheduler-standalone-server</artifactId>
  109. <version>${project.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.apache.dolphinscheduler</groupId>
  113. <artifactId>dolphinscheduler-aop</artifactId>
  114. <version>${project.version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.apache.dolphinscheduler</groupId>
  118. <artifactId>dolphinscheduler-common</artifactId>
  119. <version>${project.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.apache.dolphinscheduler</groupId>
  123. <artifactId>dolphinscheduler-alert-plugins</artifactId>
  124. <version>${project.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.apache.dolphinscheduler</groupId>
  128. <artifactId>dolphinscheduler-registry-plugins</artifactId>
  129. <version>${project.version}</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.apache.dolphinscheduler</groupId>
  133. <artifactId>dolphinscheduler-registry-all</artifactId>
  134. <version>${project.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.apache.dolphinscheduler</groupId>
  138. <artifactId>dolphinscheduler-dao</artifactId>
  139. <version>${project.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.apache.dolphinscheduler</groupId>
  143. <artifactId>dolphinscheduler-api</artifactId>
  144. <version>${project.version}</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.apache.dolphinscheduler</groupId>
  148. <artifactId>dolphinscheduler-remote</artifactId>
  149. <version>${project.version}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.apache.dolphinscheduler</groupId>
  153. <artifactId>dolphinscheduler-service</artifactId>
  154. <version>${project.version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.apache.dolphinscheduler</groupId>
  158. <artifactId>dolphinscheduler-meter</artifactId>
  159. <version>${project.version}</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.apache.dolphinscheduler</groupId>
  163. <artifactId>dolphinscheduler-spi</artifactId>
  164. <version>${project.version}</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.apache.dolphinscheduler</groupId>
  168. <artifactId>dolphinscheduler-data-quality</artifactId>
  169. <version>${project.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.apache.dolphinscheduler</groupId>
  173. <artifactId>dolphinscheduler-python</artifactId>
  174. <version>${project.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.apache.dolphinscheduler</groupId>
  178. <artifactId>dolphinscheduler-alert-api</artifactId>
  179. <version>${project.version}</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.apache.dolphinscheduler</groupId>
  183. <artifactId>dolphinscheduler-alert-server</artifactId>
  184. <version>${project.version}</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.apache.dolphinscheduler</groupId>
  188. <artifactId>dolphinscheduler-alert-dingtalk</artifactId>
  189. <version>${project.version}</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.apache.dolphinscheduler</groupId>
  193. <artifactId>dolphinscheduler-alert-email</artifactId>
  194. <version>${project.version}</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.apache.dolphinscheduler</groupId>
  198. <artifactId>dolphinscheduler-alert-feishu</artifactId>
  199. <version>${project.version}</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>org.apache.dolphinscheduler</groupId>
  203. <artifactId>dolphinscheduler-alert-http</artifactId>
  204. <version>${project.version}</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.apache.dolphinscheduler</groupId>
  208. <artifactId>dolphinscheduler-alert-script</artifactId>
  209. <version>${project.version}</version>
  210. </dependency>
  211. <dependency>
  212. <groupId>org.apache.dolphinscheduler</groupId>
  213. <artifactId>dolphinscheduler-alert-slack</artifactId>
  214. <version>${project.version}</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.apache.dolphinscheduler</groupId>
  218. <artifactId>dolphinscheduler-alert-wechat</artifactId>
  219. <version>${project.version}</version>
  220. </dependency>
  221. <dependency>
  222. <groupId>org.apache.dolphinscheduler</groupId>
  223. <artifactId>dolphinscheduler-alert-pagerduty</artifactId>
  224. <version>${project.version}</version>
  225. </dependency>
  226. <dependency>
  227. <groupId>org.apache.dolphinscheduler</groupId>
  228. <artifactId>dolphinscheduler-alert-webexteams</artifactId>
  229. <version>${project.version}</version>
  230. </dependency>
  231. <dependency>
  232. <groupId>org.apache.dolphinscheduler</groupId>
  233. <artifactId>dolphinscheduler-alert-telegram</artifactId>
  234. <version>${project.version}</version>
  235. </dependency>
  236. <dependency>
  237. <groupId>org.apache.dolphinscheduler</groupId>
  238. <artifactId>dolphinscheduler-registry-api</artifactId>
  239. <version>${project.version}</version>
  240. </dependency>
  241. <dependency>
  242. <groupId>org.apache.dolphinscheduler</groupId>
  243. <artifactId>dolphinscheduler-registry-zookeeper</artifactId>
  244. <version>${project.version}</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.apache.dolphinscheduler</groupId>
  248. <artifactId>dolphinscheduler-registry-mysql</artifactId>
  249. <version>${project.version}</version>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.apache.dolphinscheduler</groupId>
  253. <artifactId>dolphinscheduler-scheduler-api</artifactId>
  254. <version>${project.version}</version>
  255. </dependency>
  256. <dependency>
  257. <groupId>org.apache.dolphinscheduler</groupId>
  258. <artifactId>dolphinscheduler-scheduler-quartz</artifactId>
  259. <version>${project.version}</version>
  260. </dependency>
  261. <dependency>
  262. <groupId>org.apache.dolphinscheduler</groupId>
  263. <artifactId>dolphinscheduler-datasource-all</artifactId>
  264. <version>${project.version}</version>
  265. </dependency>
  266. <dependency>
  267. <groupId>org.apache.dolphinscheduler</groupId>
  268. <artifactId>dolphinscheduler-datasource-api</artifactId>
  269. <version>${project.version}</version>
  270. </dependency>
  271. <dependency>
  272. <groupId>org.apache.dolphinscheduler</groupId>
  273. <artifactId>dolphinscheduler-task-api</artifactId>
  274. <version>${project.version}</version>
  275. </dependency>
  276. <dependency>
  277. <groupId>org.apache.dolphinscheduler</groupId>
  278. <artifactId>dolphinscheduler-task-python</artifactId>
  279. <version>${project.version}</version>
  280. </dependency>
  281. <dependency>
  282. <groupId>org.apache.dolphinscheduler</groupId>
  283. <artifactId>dolphinscheduler-task-all</artifactId>
  284. <version>${project.version}</version>
  285. </dependency>
  286. <dependency>
  287. <groupId>org.apache.dolphinscheduler</groupId>
  288. <artifactId>dolphinscheduler-ui</artifactId>
  289. <version>${project.version}</version>
  290. </dependency>
  291. <dependency>
  292. <groupId>org.apache.dolphinscheduler</groupId>
  293. <artifactId>dolphinscheduler-tools</artifactId>
  294. <version>${project.version}</version>
  295. </dependency>
  296. <dependency>
  297. <groupId>org.junit</groupId>
  298. <artifactId>junit-bom</artifactId>
  299. <version>${junit.version}</version>
  300. <type>pom</type>
  301. <scope>import</scope>
  302. </dependency>
  303. </dependencies>
  304. </dependencyManagement>
  305. <dependencies>
  306. <!--
  307. NOTE: only development / test phase dependencies (scope = test / provided)
  308. that won't be packaged into final jar can be declared here.
  309. For example: annotation processors, test dependencies that are used by most
  310. of the submodules.
  311. -->
  312. <dependency>
  313. <groupId>org.junit.jupiter</groupId>
  314. <artifactId>junit-jupiter-api</artifactId>
  315. <scope>test</scope>
  316. </dependency>
  317. <dependency>
  318. <groupId>org.junit.vintage</groupId>
  319. <artifactId>junit-vintage-engine</artifactId>
  320. <scope>test</scope>
  321. </dependency>
  322. <dependency>
  323. <groupId>org.mockito</groupId>
  324. <artifactId>mockito-core</artifactId>
  325. <version>${mockito.version}</version>
  326. <scope>test</scope>
  327. </dependency>
  328. <dependency>
  329. <groupId>org.mockito</groupId>
  330. <artifactId>mockito-inline</artifactId>
  331. <version>${mockito.version}</version>
  332. <scope>test</scope>
  333. </dependency>
  334. <dependency>
  335. <groupId>org.mockito</groupId>
  336. <artifactId>mockito-junit-jupiter</artifactId>
  337. <version>${mockito.version}</version>
  338. <scope>test</scope>
  339. </dependency>
  340. <dependency>
  341. <groupId>org.jacoco</groupId>
  342. <artifactId>org.jacoco.agent</artifactId>
  343. <version>${jacoco.version}</version>
  344. <classifier>runtime</classifier>
  345. <scope>test</scope>
  346. </dependency>
  347. <dependency>
  348. <groupId>org.springframework.boot</groupId>
  349. <artifactId>spring-boot-configuration-processor</artifactId>
  350. <version>${spring.boot.version}</version>
  351. <optional>true</optional>
  352. </dependency>
  353. <dependency>
  354. <groupId>com.google.auto.service</groupId>
  355. <artifactId>auto-service</artifactId>
  356. <version>${auto-service.version}</version>
  357. <scope>provided</scope>
  358. </dependency>
  359. <dependency>
  360. <groupId>org.projectlombok</groupId>
  361. <artifactId>lombok</artifactId>
  362. <version>${lombok.version}</version>
  363. <scope>provided</scope>
  364. </dependency>
  365. </dependencies>
  366. <build>
  367. <pluginManagement>
  368. <plugins>
  369. <plugin>
  370. <groupId>org.codehaus.mojo</groupId>
  371. <artifactId>rpm-maven-plugin</artifactId>
  372. <version>${rpm-maven-plugion.version}</version>
  373. <inherited>false</inherited>
  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. <skip>false</skip>
  557. <!--not skip compile test classes-->
  558. </configuration>
  559. </plugin>
  560. <plugin>
  561. <groupId>org.apache.maven.plugins</groupId>
  562. <artifactId>maven-surefire-plugin</artifactId>
  563. <version>${maven-surefire-plugin.version}</version>
  564. <configuration>
  565. <systemPropertyVariables>
  566. <jacoco-agent.destfile>${project.build.directory}/jacoco.exec</jacoco-agent.destfile>
  567. </systemPropertyVariables>
  568. </configuration>
  569. </plugin>
  570. <!-- jenkins plugin jacoco report-->
  571. <plugin>
  572. <groupId>org.jacoco</groupId>
  573. <artifactId>jacoco-maven-plugin</artifactId>
  574. <version>${jacoco.version}</version>
  575. <configuration>
  576. <skip>${jacoco.skip}</skip>
  577. <dataFile>${project.build.directory}/jacoco.exec</dataFile>
  578. </configuration>
  579. <executions>
  580. <execution>
  581. <id>default-instrument</id>
  582. <goals>
  583. <goal>instrument</goal>
  584. </goals>
  585. </execution>
  586. <execution>
  587. <id>default-restore-instrumented-classes</id>
  588. <goals>
  589. <goal>restore-instrumented-classes</goal>
  590. </goals>
  591. <configuration>
  592. <excludes>com/github/dreamhead/moco/*</excludes>
  593. </configuration>
  594. </execution>
  595. <execution>
  596. <id>default-report</id>
  597. <goals>
  598. <goal>report</goal>
  599. </goals>
  600. </execution>
  601. </executions>
  602. </plugin>
  603. <plugin>
  604. <groupId>com.github.spotbugs</groupId>
  605. <artifactId>spotbugs-maven-plugin</artifactId>
  606. <version>${spotbugs.version}</version>
  607. <configuration>
  608. <xmlOutput>true</xmlOutput>
  609. <threshold>medium</threshold>
  610. <effort>default</effort>
  611. <excludeFilterFile>dev-config/spotbugs-exclude.xml</excludeFilterFile>
  612. <failOnError>true</failOnError>
  613. </configuration>
  614. <dependencies>
  615. <dependency>
  616. <groupId>com.github.spotbugs</groupId>
  617. <artifactId>spotbugs</artifactId>
  618. <version>4.0.0-beta4</version>
  619. </dependency>
  620. </dependencies>
  621. </plugin>
  622. <plugin>
  623. <groupId>com.diffplug.spotless</groupId>
  624. <artifactId>spotless-maven-plugin</artifactId>
  625. <version>${spotless.version}</version>
  626. <configuration>
  627. <java>
  628. <eclipse>
  629. <file>style/spotless_dolphinscheduler_formatter.xml</file>
  630. </eclipse>
  631. <removeUnusedImports />
  632. <importOrder>
  633. <file>style/eclipse.importorder</file>
  634. </importOrder>
  635. <replaceRegex>
  636. <name>Remove wildcard imports</name>
  637. <searchRegex>import\s+[^\*\s]+\*;(\r\n|\r|\n)</searchRegex>
  638. <replacement>$1</replacement>
  639. </replaceRegex>
  640. <replaceRegex>
  641. <name>Block powermock</name>
  642. <searchRegex>import\s+org\.powermock\.[^\*\s]*(|\*);(\r\n|\r|\n)</searchRegex>
  643. <replacement>$1</replacement>
  644. </replaceRegex>
  645. <replaceRegex>
  646. <name>Block jUnit4 imports</name>
  647. <searchRegex>import\s+org\.junit\.[^jupiter][^\*\s]*(|\*);(\r\n|\r|\n)</searchRegex>
  648. <replacement>$1</replacement>
  649. </replaceRegex>
  650. </java>
  651. <pom>
  652. <sortPom>
  653. <encoding>UTF-8</encoding>
  654. <nrOfIndentSpace>4</nrOfIndentSpace>
  655. <keepBlankLines>true</keepBlankLines>
  656. <indentBlankLines>false</indentBlankLines>
  657. <indentSchemaLocation>true</indentSchemaLocation>
  658. <spaceBeforeCloseEmptyElement>true</spaceBeforeCloseEmptyElement>
  659. <sortModules>false</sortModules>
  660. <sortExecutions>false</sortExecutions>
  661. <predefinedSortOrder>custom_1</predefinedSortOrder>
  662. <expandEmptyElements>false</expandEmptyElements>
  663. <sortProperties>false</sortProperties>
  664. </sortPom>
  665. <replace>
  666. <name>Leading blank line</name>
  667. <search>project</search>
  668. <replacement>project</replacement>
  669. </replace>
  670. </pom>
  671. <markdown>
  672. <includes>
  673. <include>docs/**/*.md</include>
  674. </includes>
  675. <excludes>
  676. <exclude>**/.github/**/*.md</exclude>
  677. </excludes>
  678. <flexmark />
  679. </markdown>
  680. </configuration>
  681. <executions>
  682. <execution>
  683. <goals>
  684. <goal>check</goal>
  685. </goals>
  686. <phase>compile</phase>
  687. </execution>
  688. </executions>
  689. </plugin>
  690. <plugin>
  691. <groupId>org.codehaus.mojo</groupId>
  692. <artifactId>cobertura-maven-plugin</artifactId>
  693. <version>${cobertura-maven-plugin.version}</version>
  694. <configuration>
  695. <check />
  696. <aggregate>true</aggregate>
  697. <outputDirectory>./target/cobertura</outputDirectory>
  698. <encoding>${project.build.sourceEncoding}</encoding>
  699. <quiet>true</quiet>
  700. <format>xml</format>
  701. <instrumentation>
  702. <ignoreTrivial>true</ignoreTrivial>
  703. </instrumentation>
  704. </configuration>
  705. </plugin>
  706. <plugin>
  707. <artifactId>maven-source-plugin</artifactId>
  708. <version>${maven-source-plugin.version}</version>
  709. <executions>
  710. <execution>
  711. <id>attach-sources</id>
  712. <goals>
  713. <goal>jar</goal>
  714. </goals>
  715. </execution>
  716. </executions>
  717. </plugin>
  718. <plugin>
  719. <groupId>org.apache.maven.plugins</groupId>
  720. <artifactId>maven-dependency-plugin</artifactId>
  721. <version>${maven-dependency-plugin.version}</version>
  722. <executions>
  723. <execution>
  724. <id>analyze-dependencies</id>
  725. <goals>
  726. <goal>analyze-only</goal>
  727. </goals>
  728. <configuration>
  729. <ignoredDependencies>
  730. <!-- Because of SpringBoot auto-configurations, the configuration is happening outside of your application code, so Maven believes these dependencies to be unused -->
  731. <!-- Static code analysis tools like (maven-dependency-plugin) can not detect runtime dependencies, so you should instruct them about runtime dependencies -->
  732. <!-- https://stackoverflow.com/questions/37528928/spring-boot-core-dependencies-seen-as-unused-by-maven-dependency-plugin -->
  733. <ignoredDependency>org.springframework*:*</ignoredDependency>
  734. <ignoredDependency>org.apache.dolphinscheduler:dolphinscheduler-meter</ignoredDependency>
  735. </ignoredDependencies>
  736. <ignoreNonCompile>true</ignoreNonCompile>
  737. </configuration>
  738. </execution>
  739. </executions>
  740. </plugin>
  741. </plugins>
  742. </build>
  743. <url>https://dolphinscheduler.apache.org</url>
  744. <mailingLists>
  745. <mailingList>
  746. <name>DolphinScheduler Developer List</name>
  747. <subscribe>dev-subscribe@dolphinscheduler.apache.org</subscribe>
  748. <unsubscribe>dev-unsubscribe@dolphinscheduler.apache.org</unsubscribe>
  749. <post>dev@dolphinscheduler.apache.org</post>
  750. </mailingList>
  751. </mailingLists>
  752. <scm>
  753. <connection>scm:git:https://github.com/apache/dolphinscheduler.git</connection>
  754. <developerConnection>scm:git:https://github.com/apache/dolphinscheduler.git</developerConnection>
  755. <url>https://github.com/apache/dolphinscheduler</url>
  756. <tag>HEAD</tag>
  757. </scm>
  758. <profiles>
  759. <profile>
  760. <id>docker</id>
  761. <properties>
  762. <docker.build.skip>false</docker.build.skip>
  763. <docker.push.skip>false</docker.push.skip>
  764. </properties>
  765. </profile>
  766. </profiles>
  767. </project>