pom.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  19. <parent>
  20. <artifactId>dolphinscheduler</artifactId>
  21. <groupId>org.apache.dolphinscheduler</groupId>
  22. <version>2.0.0-SNAPSHOT</version>
  23. </parent>
  24. <modelVersion>4.0.0</modelVersion>
  25. <artifactId>dolphinscheduler-dist</artifactId>
  26. <packaging>provisio</packaging>
  27. <name>${project.artifactId}</name>
  28. <properties>
  29. <maven.deploy.skip>true</maven.deploy.skip>
  30. </properties>
  31. <dependencies>
  32. <dependency>
  33. <groupId>org.apache.dolphinscheduler</groupId>
  34. <artifactId>dolphinscheduler-server</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.apache.dolphinscheduler</groupId>
  38. <artifactId>dolphinscheduler-standalone-server</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.apache.dolphinscheduler</groupId>
  42. <artifactId>dolphinscheduler-api</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.dolphinscheduler</groupId>
  46. <artifactId>dolphinscheduler-alert-server</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.dolphinscheduler</groupId>
  50. <artifactId>dolphinscheduler-ui</artifactId>
  51. </dependency>
  52. </dependencies>
  53. <profiles>
  54. <profile>
  55. <id>release</id>
  56. <build>
  57. <plugins>
  58. <plugin>
  59. <artifactId>maven-assembly-plugin</artifactId>
  60. <executions>
  61. <execution>
  62. <id>dolphinscheduler-bin</id>
  63. <phase>package</phase>
  64. <goals>
  65. <goal>single</goal>
  66. </goals>
  67. <configuration>
  68. <descriptors>
  69. <descriptor>src/main/assembly/dolphinscheduler-bin.xml</descriptor>
  70. </descriptors>
  71. <appendAssemblyId>true</appendAssemblyId>
  72. </configuration>
  73. </execution>
  74. <execution>
  75. <id>src</id>
  76. <phase>package</phase>
  77. <goals>
  78. <goal>single</goal>
  79. </goals>
  80. <configuration>
  81. <descriptors>
  82. <descriptor>src/main/assembly/dolphinscheduler-src.xml</descriptor>
  83. </descriptors>
  84. <appendAssemblyId>true</appendAssemblyId>
  85. </configuration>
  86. </execution>
  87. </executions>
  88. </plugin>
  89. </plugins>
  90. </build>
  91. </profile>
  92. <profile>
  93. <id>rpmbuild</id>
  94. <build>
  95. <plugins>
  96. <plugin>
  97. <groupId>org.apache.maven.plugins</groupId>
  98. <artifactId>maven-dependency-plugin</artifactId>
  99. <configuration>
  100. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  101. <overWriteReleases>false</overWriteReleases>
  102. <overWriteSnapshots>false</overWriteSnapshots>
  103. <overWriteIfNewer>true</overWriteIfNewer>
  104. <excludeScope>provided</excludeScope>
  105. </configuration>
  106. <executions>
  107. <execution>
  108. <id>copy-dependencies</id>
  109. <phase>package</phase>
  110. <goals>
  111. <goal>copy-dependencies</goal>
  112. </goals>
  113. </execution>
  114. </executions>
  115. </plugin>
  116. <plugin>
  117. <groupId>org.codehaus.mojo</groupId>
  118. <artifactId>rpm-maven-plugin</artifactId>
  119. <extensions>true</extensions>
  120. <executions>
  121. <execution>
  122. <phase>package</phase>
  123. <goals>
  124. <goal>attached-rpm</goal>
  125. </goals>
  126. </execution>
  127. </executions>
  128. <configuration>
  129. <name>apache-dolphinscheduler</name>
  130. <release>1</release>
  131. <distribution>apache dolphinscheduler rpm</distribution>
  132. <group>apache</group>
  133. <packager>dolphinscheduler</packager>
  134. <!-- <version>${project.version}</version> -->
  135. <prefix>/opt/soft</prefix>
  136. <autoRequires>false</autoRequires>
  137. <defineStatements>
  138. <!-- disable compile python when rpm build -->
  139. <defineStatement>__os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')</defineStatement>
  140. </defineStatements>
  141. <mappings>
  142. <mapping>
  143. <directory>/opt/soft/${project.build.finalName}/conf</directory>
  144. <filemode>755</filemode>
  145. <username>root</username>
  146. <groupname>root</groupname>
  147. <sources>
  148. <source>
  149. <location>
  150. ${basedir}/../dolphinscheduler-alert/src/main/resources
  151. </location>
  152. <includes>
  153. <include>**/*.*</include>
  154. </includes>
  155. </source>
  156. <source>
  157. <location>
  158. ${basedir}/../dolphinscheduler-common/src/main/resources
  159. </location>
  160. <includes>
  161. <include>**/*.*</include>
  162. </includes>
  163. </source>
  164. <source>
  165. <location>
  166. ${basedir}/../dolphinscheduler-dao/src/main/resources
  167. </location>
  168. <includes>
  169. <include>**/*.*</include>
  170. </includes>
  171. </source>
  172. <source>
  173. <location>
  174. ${basedir}/../dolphinscheduler-api/src/main/resources
  175. </location>
  176. <includes>
  177. <include>**/*.*</include>
  178. </includes>
  179. </source>
  180. <source>
  181. <location>
  182. ${basedir}/../dolphinscheduler-server/src/main/resources
  183. </location>
  184. <includes>
  185. <include>config/*.*</include>
  186. <include>**/*.xml</include>
  187. </includes>
  188. </source>
  189. <source>
  190. <location>
  191. ${basedir}/../dolphinscheduler-service/src/main/resources
  192. </location>
  193. <includes>
  194. <include>*.*</include>
  195. </includes>
  196. </source>
  197. <source>
  198. <location>
  199. ${basedir}/../script
  200. </location>
  201. <includes>
  202. <include>env/*.*</include>
  203. </includes>
  204. </source>
  205. </sources>
  206. </mapping>
  207. <mapping>
  208. <directory>/opt/soft/${project.build.finalName}/lib</directory>
  209. <filemode>755</filemode>
  210. <username>root</username>
  211. <groupname>root</groupname>
  212. <sources>
  213. <source>
  214. <location>
  215. ${basedir}/../dolphinscheduler-dist/target/lib
  216. </location>
  217. <includes>
  218. <include>*.*</include>
  219. </includes>
  220. <excludes>
  221. <exclude>servlet-api-*.jar</exclude>
  222. <exclude>slf4j-log4j12-${slf4j.log4j12.version}.jar</exclude>
  223. </excludes>
  224. </source>
  225. </sources>
  226. </mapping>
  227. <mapping>
  228. <directory>/opt/soft/${project.build.finalName}/bin</directory>
  229. <filemode>755</filemode>
  230. <username>root</username>
  231. <groupname>root</groupname>
  232. <sources>
  233. <source>
  234. <location>
  235. ${basedir}/../script
  236. </location>
  237. <includes>
  238. <include>start-all.sh</include>
  239. <include>stop-all.sh</include>
  240. <include>dolphinscheduler-daemon.sh</include>
  241. <include>status-all.sh</include>
  242. </includes>
  243. </source>
  244. </sources>
  245. </mapping>
  246. <mapping>
  247. <directory>/opt/soft/${project.build.finalName}</directory>
  248. <filemode>755</filemode>
  249. <username>root</username>
  250. <groupname>root</groupname>
  251. <sources>
  252. <source>
  253. <location>
  254. ${basedir}/../
  255. </location>
  256. <includes>
  257. <include>*.sh</include>
  258. <include>*.py</include>
  259. <include>DISCLAIMER</include>
  260. </includes>
  261. </source>
  262. <source>
  263. <location>
  264. ${basedir}/release-docs
  265. </location>
  266. <includes>
  267. <include>**/*</include>
  268. </includes>
  269. </source>
  270. </sources>
  271. </mapping>
  272. <mapping>
  273. <directory>/opt/soft/${project.build.finalName}/ui</directory>
  274. <filemode>755</filemode>
  275. <username>root</username>
  276. <groupname>root</groupname>
  277. <sources>
  278. <source>
  279. <location>
  280. ${basedir}/../dolphinscheduler-ui/dist
  281. </location>
  282. <includes>
  283. <include>**/*.*</include>
  284. </includes>
  285. </source>
  286. </sources>
  287. </mapping>
  288. <mapping>
  289. <directory>/opt/soft/${project.build.finalName}/sql</directory>
  290. <filemode>755</filemode>
  291. <username>root</username>
  292. <groupname>root</groupname>
  293. <sources>
  294. <source>
  295. <location>
  296. ${basedir}/../dolphinscheduler-dao/src/main/resources/sql
  297. </location>
  298. <includes>
  299. <include>**/*.*</include>
  300. </includes>
  301. </source>
  302. <source>
  303. <location>
  304. ${basedir}/../dolphinscheduler-dao/src/main/resources/sql
  305. </location>
  306. <includes>
  307. <include>soft_version</include>
  308. </includes>
  309. </source>
  310. </sources>
  311. </mapping>
  312. <mapping>
  313. <directory>/opt/soft/${project.build.finalName}/script</directory>
  314. <filemode>755</filemode>
  315. <username>root</username>
  316. <groupname>root</groupname>
  317. <sources>
  318. <source>
  319. <location>
  320. ${basedir}/../script
  321. </location>
  322. <includes>
  323. <include>*.sh</include>
  324. </includes>
  325. </source>
  326. </sources>
  327. </mapping>
  328. </mappings>
  329. <preinstallScriptlet>
  330. <script>mkdir -p /opt/soft</script>
  331. </preinstallScriptlet>
  332. <postinstallScriptlet>
  333. <script>rm -rf /opt/soft/dolphinscheduler ; ln -s /opt/soft/apache-dolphinscheduler-${project.version} /opt/soft/dolphinscheduler</script>
  334. </postinstallScriptlet>
  335. <postremoveScriptlet>
  336. <script>rm -rf /opt/soft/apache-dolphinscheduler-${project.version}</script>
  337. </postremoveScriptlet>
  338. </configuration>
  339. </plugin>
  340. </plugins>
  341. </build>
  342. </profile>
  343. </profiles>
  344. <build>
  345. <finalName>apache-dolphinscheduler-${project.version}</finalName>
  346. </build>
  347. </project>