pom.xml 12 KB

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