From a526106952005dfa85b7f909019bd57bc5aa7576 Mon Sep 17 00:00:00 2001
From: gaojun2048 <32193458+gaojun2048@users.noreply.github.com>
Date: Fri, 27 Dec 2019 14:32:24 +0800
Subject: [PATCH] Added the maven profile to build rpm packages (#1563)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Update quick-start.md
* 更新demo的地址
* add rpm plugin
* delete the git ignore files
* 测试git ignore
* 测试ignore
* optimize the .gitignore file
* add rpm package, delete unuse copy jar action in assembly
* delete docs dir
* add rpm plugin support
* add rpm plugin support
* add rpm plugin support
* dolphinscheduler-common have not bin dir
* dolphinscheduler-common have not bin dir
* delete unuse config about assembly
* add defineSatement
* add rpm plugin support
* add rpm plugin support
* add rpm plugin support
* add rpm support
* update install dirname , make front and backend together
* update rpm name
* update rpm name
* update rpm config
* add jars excludes
* add jars excludes
* add rpm plugion
* add rpm plugion
* add rpm plugion
* add auto create /opt/soft
---
dolphinscheduler-dist/pom.xml | 270 ++++++++++++++++++
.../main/assembly/dolphinscheduler-binary.xml | 19 +-
pom.xml | 16 ++
3 files changed, 288 insertions(+), 17 deletions(-)
diff --git a/dolphinscheduler-dist/pom.xml b/dolphinscheduler-dist/pom.xml
index 3d01eff831..dbeddbb6b3 100644
--- a/dolphinscheduler-dist/pom.xml
+++ b/dolphinscheduler-dist/pom.xml
@@ -101,6 +101,276 @@
+
+
+ rpmbuild
+
+
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+
+ ${project.build.directory}/lib
+ false
+ false
+ true
+ provided
+
+
+
+ copy-dependencies
+ package
+
+ copy-dependencies
+
+
+
+
+
+
+ org.codehaus.mojo
+ rpm-maven-plugin
+ true
+
+
+ package
+
+ attached-rpm
+
+
+
+
+
+ apache-dolphinscheduler-incubating
+ 1
+ apache dolphinscheduler incubating rpm
+ apache
+ dolphinscheduler
+
+ /opt/soft
+
+
+
+ __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
+
+
+
+ /opt/soft/${project.build.finalName}/conf
+ 755
+ root
+ root
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ /opt/soft/${project.build.finalName}/lib
+ 755
+ root
+ root
+
+
+
+
+
+
+ /opt/soft/${project.build.finalName}/bin
+ 755
+ root
+ root
+
+
+
+
+
+
+ /opt/soft/${project.build.finalName}
+ 755
+ root
+ root
+
+
+
+
+
+
+
+
+
+ /opt/soft/${project.build.finalName}/dist
+ 755
+ root
+ root
+
+
+
+
+
+ /opt/soft/${project.build.finalName}/sql
+ 755
+ root
+ root
+
+
+
+
+
+
+ /opt/soft/${project.build.finalName}/script
+ 755
+ root
+ root
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dolphinscheduler-dist/src/main/assembly/dolphinscheduler-binary.xml b/dolphinscheduler-dist/src/main/assembly/dolphinscheduler-binary.xml
index 5cddadd4f5..2bf109698b 100644
--- a/dolphinscheduler-dist/src/main/assembly/dolphinscheduler-binary.xml
+++ b/dolphinscheduler-dist/src/main/assembly/dolphinscheduler-binary.xml
@@ -97,23 +97,8 @@
conf
-
- ${basedir}/../dolphinscheduler-common/src/main/resources
-
- **/*.properties
- **/*.xml
- **/*.json
-
- conf
-
-
- ${basedir}/../dolphinscheduler-common/src/main/resources/bin
-
- *.*
-
- 755
- bin
-
+
+
${basedir}/../dolphinscheduler-dao/src/main/resources
diff --git a/pom.xml b/pom.xml
index 83a6b45e10..3d002df1ed 100644
--- a/pom.xml
+++ b/pom.xml
@@ -108,6 +108,8 @@
2.10.3
2.4
2.18.1
+ 3.1.1
+ 2.2.0
0.8.4
1.0
false
@@ -524,6 +526,14 @@
+
+
+ org.codehaus.mojo
+ rpm-maven-plugin
+ ${rpm-maven-plugion.version}
+ false
+
+
org.apache.maven.plugins
maven-compiler-plugin
@@ -568,6 +578,12 @@
${maven-source-plugin.version}
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+ ${maven-dependency-plugin.version}
+
+