pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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.dolphinscheduler</groupId>
  23. <artifactId>dolphinscheduler</artifactId>
  24. <version>2.0.4-SNAPSHOT</version>
  25. </parent>
  26. <artifactId>dolphinscheduler-api</artifactId>
  27. <name>${project.artifactId}</name>
  28. <packaging>jar</packaging>
  29. <dependencies>
  30. <!-- dolphinscheduler -->
  31. <dependency>
  32. <groupId>org.apache.dolphinscheduler</groupId>
  33. <artifactId>dolphinscheduler-service</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.apache.dolphinscheduler</groupId>
  37. <artifactId>dolphinscheduler-meter</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.apache.dolphinscheduler</groupId>
  41. <artifactId>dolphinscheduler-datasource-all</artifactId>
  42. <version>${project.version}</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.dolphinscheduler</groupId>
  46. <artifactId>dolphinscheduler-ui-next</artifactId>
  47. </dependency>
  48. <!--springboot-->
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-web</artifactId>
  52. <exclusions>
  53. <exclusion>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-tomcat</artifactId>
  56. </exclusion>
  57. <exclusion>
  58. <artifactId>log4j-to-slf4j</artifactId>
  59. <groupId>org.apache.logging.log4j</groupId>
  60. </exclusion>
  61. </exclusions>
  62. </dependency>
  63. <!-- use jetty -->
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-jetty</artifactId>
  67. <exclusions>
  68. <exclusion>
  69. <groupId>org.eclipse.jetty.websocket</groupId>
  70. <artifactId>javax-websocket-server-impl</artifactId>
  71. </exclusion>
  72. <exclusion>
  73. <groupId>org.eclipse.jetty.websocket</groupId>
  74. <artifactId>websocket-server</artifactId>
  75. </exclusion>
  76. </exclusions>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-aop</artifactId>
  81. <exclusions>
  82. <exclusion>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-starter</artifactId>
  85. </exclusion>
  86. </exclusions>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.springframework</groupId>
  90. <artifactId>spring-context</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>commons-collections</groupId>
  94. <artifactId>commons-collections</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.quartz-scheduler</groupId>
  98. <artifactId>quartz</artifactId>
  99. <exclusions>
  100. <exclusion>
  101. <groupId>com.mchange</groupId>
  102. <artifactId>c3p0</artifactId>
  103. </exclusion>
  104. <exclusion>
  105. <groupId>com.mchange</groupId>
  106. <artifactId>mchange-commons-java</artifactId>
  107. </exclusion>
  108. <exclusion>
  109. <groupId>com.zaxxer</groupId>
  110. <artifactId>HikariCP-java7</artifactId>
  111. </exclusion>
  112. </exclusions>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.quartz-scheduler</groupId>
  116. <artifactId>quartz-jobs</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>io.springfox</groupId>
  120. <artifactId>springfox-swagger2</artifactId>
  121. </dependency>
  122. <dependency>
  123. <groupId>io.springfox</groupId>
  124. <artifactId>springfox-swagger-ui</artifactId>
  125. </dependency>
  126. <dependency>
  127. <groupId>io.swagger</groupId>
  128. <artifactId>swagger-models</artifactId>
  129. </dependency>
  130. <dependency>
  131. <groupId>com.github.xiaoymin</groupId>
  132. <artifactId>swagger-bootstrap-ui</artifactId>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.apache.curator</groupId>
  136. <artifactId>curator-framework</artifactId>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.apache.curator</groupId>
  140. <artifactId>curator-recipes</artifactId>
  141. <exclusions>
  142. <exclusion>
  143. <groupId>org.apache.zookeeper</groupId>
  144. <artifactId>zookeeper</artifactId>
  145. </exclusion>
  146. </exclusions>
  147. </dependency>
  148. <!-- hadoop -->
  149. <dependency>
  150. <groupId>org.apache.hadoop</groupId>
  151. <artifactId>hadoop-common</artifactId>
  152. <exclusions>
  153. <exclusion>
  154. <groupId>javax.servlet</groupId>
  155. <artifactId>servlet-api</artifactId>
  156. </exclusion>
  157. <exclusion>
  158. <groupId>org.apache.curator</groupId>
  159. <artifactId>curator-client</artifactId>
  160. </exclusion>
  161. </exclusions>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.apache.hadoop</groupId>
  165. <artifactId>hadoop-client</artifactId>
  166. <exclusions>
  167. <exclusion>
  168. <groupId>org.slf4j</groupId>
  169. <artifactId>slf4j-log4j12</artifactId>
  170. </exclusion>
  171. </exclusions>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.apache.hadoop</groupId>
  175. <artifactId>hadoop-hdfs</artifactId>
  176. <exclusions>
  177. <exclusion>
  178. <artifactId>servlet-api</artifactId>
  179. <groupId>javax.servlet</groupId>
  180. </exclusion>
  181. </exclusions>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.apache.hadoop</groupId>
  185. <artifactId>hadoop-yarn-common</artifactId>
  186. <exclusions>
  187. <exclusion>
  188. <artifactId>servlet-api</artifactId>
  189. <groupId>javax.servlet</groupId>
  190. </exclusion>
  191. </exclusions>
  192. </dependency>
  193. <dependency>
  194. <groupId>org.apache.hadoop</groupId>
  195. <artifactId>hadoop-aws</artifactId>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.hibernate.validator</groupId>
  199. <artifactId>hibernate-validator</artifactId>
  200. </dependency>
  201. <dependency>
  202. <groupId>org.codehaus.janino</groupId>
  203. <artifactId>janino</artifactId>
  204. </dependency>
  205. <!-- just for test -->
  206. <dependency>
  207. <groupId>org.springframework.boot</groupId>
  208. <artifactId>spring-boot-starter-test</artifactId>
  209. <scope>test</scope>
  210. </dependency>
  211. <dependency>
  212. <groupId>org.apache.curator</groupId>
  213. <artifactId>curator-test</artifactId>
  214. <version>${curator.test}</version>
  215. <exclusions>
  216. <exclusion>
  217. <groupId>org.javassist</groupId>
  218. <artifactId>javassist</artifactId>
  219. </exclusion>
  220. </exclusions>
  221. <scope>test</scope>
  222. </dependency>
  223. </dependencies>
  224. <build>
  225. <testResources>
  226. <testResource>
  227. <directory>${project.basedir}/../dolphinscheduler-dao/src/main/resources</directory>
  228. <includes>
  229. <include>sql/**</include>
  230. </includes>
  231. </testResource>
  232. <testResource>
  233. <directory>${project.basedir}/src/test/resources</directory>
  234. </testResource>
  235. </testResources>
  236. <plugins>
  237. <plugin>
  238. <groupId>org.apache.maven.plugins</groupId>
  239. <artifactId>maven-jar-plugin</artifactId>
  240. <configuration>
  241. <excludes>
  242. <exclude>*.yaml</exclude>
  243. <exclude>*.xml</exclude>
  244. </excludes>
  245. </configuration>
  246. </plugin>
  247. <plugin>
  248. <artifactId>maven-assembly-plugin</artifactId>
  249. <executions>
  250. <execution>
  251. <id>dolphinscheduler-api-server</id>
  252. <phase>package</phase>
  253. <goals>
  254. <goal>single</goal>
  255. </goals>
  256. <configuration>
  257. <finalName>api-server</finalName>
  258. <descriptors>
  259. <descriptor>src/main/assembly/dolphinscheduler-api-server.xml</descriptor>
  260. </descriptors>
  261. <appendAssemblyId>false</appendAssemblyId>
  262. </configuration>
  263. </execution>
  264. </executions>
  265. </plugin>
  266. </plugins>
  267. </build>
  268. <profiles>
  269. <profile>
  270. <id>docker</id>
  271. <build>
  272. <plugins>
  273. <plugin>
  274. <groupId>org.codehaus.mojo</groupId>
  275. <artifactId>exec-maven-plugin</artifactId>
  276. </plugin>
  277. </plugins>
  278. </build>
  279. </profile>
  280. </profiles>
  281. </project>