pom.xml 19 KB

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