pom.xml 11 KB

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