Unverified Commit e27a5e36 authored by ZackYoung's avatar ZackYoung Committed by GitHub

[Optimize][POM] optimize package (#1468)

* optimize package * optimize note
parent 3ee34211
...@@ -151,5 +151,76 @@ ...@@ -151,5 +151,76 @@
</dependency> </dependency>
</dependencies> </dependencies>
</profile> </profile>
<profile>
<id>all</id>
<dependencies>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-1.11</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.11</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-1.12</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.12</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-1.13</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.13</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-1.14</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.14</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-1.15</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.15</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-1.16</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.16</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
</profiles> </profiles>
</project> </project>
...@@ -64,6 +64,18 @@ ...@@ -64,6 +64,18 @@
</modules> </modules>
</profile> </profile>
<profile>
<id>all</id>
<modules>
<module>dlink-app-1.11</module>
<module>dlink-app-1.12</module>
<module>dlink-app-1.13</module>
<module>dlink-app-1.14</module>
<module>dlink-app-1.15</module>
<module>dlink-app-1.16</module>
</modules>
</profile>
<profile> <profile>
<id>web</id> <id>web</id>
<modules> <modules>
......
...@@ -58,13 +58,66 @@ ...@@ -58,13 +58,66 @@
<include>upgrade/*/*/*.sql</include> <include>upgrade/*/*/*.sql</include>
</includes> </includes>
</fileSet> </fileSet>
<!--<fileSet>-->
<!-- <directory>${project.parent.basedir}/build/extends/</directory>-->
<!-- <outputDirectory>plugins</outputDirectory>-->
<!-- <includes>-->
<!-- <include>%regex[dlink-catalog-mysql-1.\d+-${project.version}.jar]</include>-->
<!-- <include>%regex[dlink-client-1.\d+-${project.version}.jar]</include>-->
<!-- </includes>-->
<!--</fileSet>-->
<fileSet>
<directory>${project.parent.basedir}/build/extends/</directory>
<outputDirectory>plugins/flink1.11</outputDirectory>
<includes>
<include>dlink-client-1.11-${project.version}.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.parent.basedir}/build/extends/</directory>
<outputDirectory>plugins/flink1.12</outputDirectory>
<includes>
<include>dlink-client-1.12-${project.version}.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.parent.basedir}/build/extends/</directory>
<outputDirectory>plugins/flink1.13</outputDirectory>
<includes>
<include>dlink-catalog-mysql-1.13-${project.version}.jar</include>
<include>dlink-client-1.13-${project.version}.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.parent.basedir}/build/extends/</directory>
<outputDirectory>plugins/flink1.14</outputDirectory>
<includes>
<include>dlink-catalog-mysql-1.14-${project.version}.jar</include>
<include>dlink-client-1.14-${project.version}.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.parent.basedir}/build/extends/</directory>
<outputDirectory>plugins/flink1.15</outputDirectory>
<includes>
<include>dlink-catalog-mysql-1.15-${project.version}.jar</include>
<include>dlink-client-1.15-${project.version}.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.parent.basedir}/build/extends/</directory>
<outputDirectory>plugins/flink1.16</outputDirectory>
<includes>
<include>dlink-catalog-mysql-1.16-${project.version}.jar</include>
<include>dlink-client-1.16-${project.version}.jar</include>
</includes>
</fileSet>
<fileSet> <fileSet>
<directory>${project.parent.basedir}/build/extends/</directory> <directory>${project.parent.basedir}/build/extends/</directory>
<outputDirectory>plugins</outputDirectory> <outputDirectory>plugins</outputDirectory>
<includes> <includes>
<include>%regex[dlink-catalog-mysql-1.\d+-${project.version}.jar]</include> <include>dlink-client-base-${project.version}.jar</include>
<include>%regex[dlink-client-base-${project.version}.jar]</include>
<include>%regex[dlink-client-1.\d+-${project.version}.jar]</include>
</includes> </includes>
</fileSet> </fileSet>
<fileSet> <fileSet>
...@@ -74,14 +127,6 @@ ...@@ -74,14 +127,6 @@
<include>%regex[dlink-app-1.\d+-${project.version}-jar-with-dependencies.jar]</include> <include>%regex[dlink-app-1.\d+-${project.version}-jar-with-dependencies.jar]</include>
</includes> </includes>
</fileSet> </fileSet>
<!--<fileSet>
<directory>${project.parent.basedir}/dlink-function/target
</directory>
<outputDirectory>lib</outputDirectory>
<includes>
<include>dlink-function-${project.version}.jar</include>
</includes>
</fileSet>-->
<fileSet> <fileSet>
<directory>${project.parent.basedir}/dlink-metadata/dlink-metadata-clickhouse/target <directory>${project.parent.basedir}/dlink-metadata/dlink-metadata-clickhouse/target
</directory> </directory>
...@@ -194,48 +239,6 @@ ...@@ -194,48 +239,6 @@
<include>dlink-alert-wechat-${project.version}.jar</include> <include>dlink-alert-wechat-${project.version}.jar</include>
</includes> </includes>
</fileSet> </fileSet>
<fileSet>
<directory>${project.parent.basedir}/dlink-app/dlink-app-1.11/target</directory>
<outputDirectory>jar</outputDirectory>
<includes>
<include>dlink-app-1.11-${project.version}-jar-with-dependencies.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.parent.basedir}/dlink-app/dlink-app-1.12/target</directory>
<outputDirectory>jar</outputDirectory>
<includes>
<include>dlink-app-1.12-${project.version}-jar-with-dependencies.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.parent.basedir}/dlink-app/dlink-app-1.13/target</directory>
<outputDirectory>jar</outputDirectory>
<includes>
<include>dlink-app-1.13-${project.version}-jar-with-dependencies.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.parent.basedir}/dlink-app/dlink-app-1.14/target</directory>
<outputDirectory>jar</outputDirectory>
<includes>
<include>dlink-app-1.14-${project.version}-jar-with-dependencies.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.parent.basedir}/dlink-app/dlink-app-1.15/target</directory>
<outputDirectory>jar</outputDirectory>
<includes>
<include>dlink-app-1.15-${project.version}-jar-with-dependencies.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.parent.basedir}/dlink-app/dlink-app-1.16/target</directory>
<outputDirectory>jar</outputDirectory>
<includes>
<include>dlink-app-1.16-${project.version}-jar-with-dependencies.jar</include>
</includes>
</fileSet>
<fileSet> <fileSet>
<directory>${project.parent.basedir}/dlink-doc/extends</directory> <directory>${project.parent.basedir}/dlink-doc/extends</directory>
<outputDirectory>jar</outputDirectory> <outputDirectory>jar</outputDirectory>
......
...@@ -61,6 +61,16 @@ ...@@ -61,6 +61,16 @@
<module>dlink-catalog-mysql-1.16</module> <module>dlink-catalog-mysql-1.16</module>
</modules> </modules>
</profile> </profile>
<profile>
<id>all</id>
<modules>
<module>dlink-catalog-mysql-1.13</module>
<module>dlink-catalog-mysql-1.14</module>
<module>dlink-catalog-mysql-1.15</module>
<module>dlink-catalog-mysql-1.16</module>
</modules>
</profile>
</profiles> </profiles>
</project> </project>
...@@ -139,5 +139,41 @@ ...@@ -139,5 +139,41 @@
</dependency> </dependency>
</dependencies> </dependencies>
</profile> </profile>
<profile>
<id>all</id>
<dependencies>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.11</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.12</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.13</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.14</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.15</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.16</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
</profiles> </profiles>
</project> </project>
...@@ -74,6 +74,18 @@ ...@@ -74,6 +74,18 @@
<module>dlink-client-1.16</module> <module>dlink-client-1.16</module>
</modules> </modules>
</profile> </profile>
<profile>
<id>all</id>
<modules>
<module>dlink-client-1.11</module>
<module>dlink-client-1.12</module>
<module>dlink-client-1.13</module>
<module>dlink-client-1.14</module>
<module>dlink-client-1.15</module>
<module>dlink-client-1.16</module>
</modules>
</profile>
</profiles> </profiles>
</project> </project>
...@@ -304,5 +304,96 @@ ...@@ -304,5 +304,96 @@
</dependency> </dependency>
</dependencies> </dependencies>
</profile> </profile>
<profile>
<id>all</id>
<dependencies>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-1.11</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.11</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-1.12</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.12</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-1.13</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-catalog-mysql-1.13</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.13</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-1.14</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-catalog-mysql-1.14</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.14</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-1.15</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-catalog-mysql-1.15</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.15</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-1.16</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-catalog-mysql-1.16</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.16</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
</profiles> </profiles>
</project> </project>
#!/bin/bash #!/bin/bash
FLINK_VERSION=${2:-1.14}
# 定义变量 # 定义变量
# 要运行的jar包路径,加不加引号都行。 注意:等号两边不能有空格,否则会提示command找不到 # 要运行的jar包路径,加不加引号都行。 注意:等号两边不能有空格,否则会提示command找不到
JAR_NAME="dlink-admin" JAR_NAME="dlink-admin"
# 如果需要将 FLINK 依赖直接加入启动脚本,在 CLASS_PATH 中末尾追加 :$FLINK_HOME/lib/* # 如果需要将 FLINK 依赖直接加入启动脚本,在 CLASS_PATH 中末尾追加 :$FLINK_HOME/lib/*
CLASS_PATH="./lib/*:config:html:./plugins/*" CLASS_PATH="./lib/*:config:html:./plugins/*:./plugins/flink${FLINK_VERSION}/*"
#if [ ! -d ${HADOOP_HOME} ]; then #if [ ! -d ${HADOOP_HOME} ]; then
# echo 'WARNING!!!...not find HADOOP_HOME for CLASSPATH.' # echo 'WARNING!!!...not find HADOOP_HOME for CLASSPATH.'
#else #else
# export HADOOP_HOME="${HADOOP_HOME}" # export HADOOP_HOME="${HADOOP_HOME}"
#fi #fi
PIDFILE="dlink.pid" PIDFILE="dinky.pid"
#检查PID path 是否存在 #检查PID path 是否存在
PIDPATH="$(cd "$(dirname "$0")";pwd)/run" PIDPATH="$(cd "$(dirname "$0")";pwd)/run"
if [ -d ${PIDPATH} ];then if [ -d ${PIDPATH} ];then
...@@ -57,10 +59,11 @@ start() { ...@@ -57,10 +59,11 @@ start() {
if [ -z $pid ]; then if [ -z $pid ]; then
nohup java -Ddruid.mysql.usePingMethod=false -Xms512M -Xmx2048M -XX:PermSize=512M -XX:MaxPermSize=1024M -XX:+HeapDumpOnOutOfMemoryError -Xverify:none -cp ${CLASS_PATH} com.dlink.Dlink >/dev/null 2>&1 & nohup java -Ddruid.mysql.usePingMethod=false -Xms512M -Xmx2048M -XX:PermSize=512M -XX:MaxPermSize=1024M -XX:+HeapDumpOnOutOfMemoryError -Xverify:none -cp ${CLASS_PATH} com.dlink.Dlink >/dev/null 2>&1 &
echo $! >${PIDPATH}/${PIDFILE} echo $! >${PIDPATH}/${PIDFILE}
echo "........................................Start Dlink Successfully........................................" echo "FLINK VERSION : $FLINK_VERSION"
echo "........................................Start Dinky Successfully........................................"
else else
echo "Dlink pid $pid is in ${PIDPATH}/${PIDFILE}, Please stop first !!!" echo "Dinky pid $pid is in ${PIDPATH}/${PIDFILE}, Please stop first !!!"
fi fi
} }
...@@ -68,11 +71,11 @@ start() { ...@@ -68,11 +71,11 @@ start() {
stop() { stop() {
pid=$(cat ${PIDPATH}/${PIDFILE}) pid=$(cat ${PIDPATH}/${PIDFILE})
if [ -z $pid ]; then if [ -z $pid ]; then
echo "Dlink pid is not exist in ${PIDPATH}/${PIDFILE}" echo "Dinky pid is not exist in ${PIDPATH}/${PIDFILE}"
else else
kill -9 $pid kill -9 $pid
sleep 1 sleep 1
echo "........................................Stop Dlink Successfully....................................." echo "........................................Stop Dinky Successfully....................................."
echo " " >${PIDPATH}/${PIDFILE} echo " " >${PIDPATH}/${PIDFILE}
fi fi
} }
......
...@@ -205,5 +205,26 @@ ...@@ -205,5 +205,26 @@
</dependency> </dependency>
</dependencies> </dependencies>
</profile> </profile>
<profile>
<id>all</id>
<dependencies>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-${dlink.flink.version}</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-${dlink.flink.version}</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</profile>
</profiles> </profiles>
</project> </project>
...@@ -74,5 +74,17 @@ ...@@ -74,5 +74,17 @@
<module>dlink-flink-1.16</module> <module>dlink-flink-1.16</module>
</modules> </modules>
</profile> </profile>
<profile>
<id>all</id>
<modules>
<module>dlink-flink-1.11</module>
<module>dlink-flink-1.12</module>
<module>dlink-flink-1.13</module>
<module>dlink-flink-1.14</module>
<module>dlink-flink-1.15</module>
<module>dlink-flink-1.16</module>
</modules>
</profile>
</profiles> </profiles>
</project> </project>
...@@ -165,5 +165,21 @@ ...@@ -165,5 +165,21 @@
</dependency> </dependency>
</dependencies> </dependencies>
</profile> </profile>
<profile>
<id>all</id>
<dependencies>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-${dlink.flink.version}</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-${dlink.flink.version}</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
</profiles> </profiles>
</project> </project>
...@@ -176,6 +176,22 @@ for k8s commit tasks--> ...@@ -176,6 +176,22 @@ for k8s commit tasks-->
</dependency> </dependency>
</dependencies> </dependencies>
</profile> </profile>
<profile>
<id>all</id>
<dependencies>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-${dlink.flink.version}</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-${dlink.flink.version}</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
</profiles> </profiles>
</project> </project>
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
<artifactId>dlink</artifactId> <artifactId>dlink</artifactId>
<version>0.7.0</version> <version>0.7.0</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>Dinky :</name>
<modules> <modules>
<module>dlink-flink</module> <module>dlink-flink</module>
...@@ -891,6 +892,10 @@ ...@@ -891,6 +892,10 @@
</properties> </properties>
</profile> </profile>
<profile>
<id>all</id>
</profile>
<profile> <profile>
<id>jdk11</id> <id>jdk11</id>
<activation> <activation>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment