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

[Optimeze][pom]模块优化 (#1228)

* 模块优化 1. admin 模块打包剔除application修改的配置文件 2. 部分模块maven插件升级,以及剔除多于配置 * 模块优化 1. admin 模块打包剔除application修改的配置文件 2. 部分模块maven插件升级,以及剔除多于配置 * 模块优化 1. admin 模块打包剔除application修改的配置文件 2. 部分模块maven插件升级,以及剔除多于配置 * 更新client-base全局编译模式 * 模块优化 1. admin 模块打包剔除application修改的配置文件 2. 部分模块maven插件升级,以及剔除多于配置 * 模块优化 1. 添加fast profile,测试时可以快速跳过checkstyle和spotless * 模块优化 1. 修改admin添加的文件
parent d0660f51
...@@ -255,6 +255,28 @@ ...@@ -255,6 +255,28 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<executions>
<execution>
<id>default-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<classesDirectory>target/classes/</classesDirectory>
<excludes>
<!--注意这玩意默认从编译结果目录开始算目录结构-->
<exclude>/application*.yml</exclude>
<exclude>/mybatis*.xml</exclude>
</excludes>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<fileSet> <fileSet>
<directory>${basedir}/src/main/bin</directory> <directory>${basedir}/src/main/bin</directory>
<lineEnding>unix</lineEnding> <lineEnding>unix</lineEnding>
<outputDirectory></outputDirectory> <outputDirectory/>
<fileMode>755</fileMode> <fileMode>755</fileMode>
<includes> <includes>
<include>*.sh</include> <include>*.sh</include>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<fileSet> <fileSet>
<directory>${basedir}/src/main/bin</directory> <directory>${basedir}/src/main/bin</directory>
<lineEnding>windows</lineEnding> <lineEnding>windows</lineEnding>
<outputDirectory></outputDirectory> <outputDirectory/>
<includes> <includes>
<include>*.bat</include> <include>*.bat</include>
</includes> </includes>
...@@ -34,10 +34,9 @@ ...@@ -34,10 +34,9 @@
<directory>target/classes</directory> <directory>target/classes</directory>
<outputDirectory>config</outputDirectory> <outputDirectory>config</outputDirectory>
<includes> <includes>
<include>**/*.properties</include>
<include>**/*.yml</include> <include>**/*.yml</include>
<include>**/*.yaml</include> <include>**/*.yaml</include>
<include>**/*.xml</include> <include>**/log4j2.xml</include>
</includes> </includes>
</fileSet> </fileSet>
</fileSets> </fileSets>
......
...@@ -53,4 +53,13 @@ ...@@ -53,4 +53,13 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<profiles>
<profile>
<id>web</id>
<modules>
<module>../dlink-web</module>
</modules>
</profile>
</profiles>
</project> </project>
\ No newline at end of file
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<dependency> <dependency>
<groupId>com.starrocks</groupId> <groupId>com.starrocks</groupId>
<artifactId>flink-connector-starrocks</artifactId> <artifactId>flink-connector-starrocks</artifactId>
<version>1.2.3_flink-1.13_2.11</version> <version>1.2.3_flink-1.13_${scala.binary.version}</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
<dependency> <dependency>
<groupId>com.dlink</groupId> <groupId>com.dlink</groupId>
<artifactId>dlink-client-base</artifactId> <artifactId>dlink-client-base</artifactId>
<version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.dlink</groupId> <groupId>com.dlink</groupId>
...@@ -54,7 +53,7 @@ ...@@ -54,7 +53,7 @@
<dependency> <dependency>
<groupId>com.starrocks</groupId> <groupId>com.starrocks</groupId>
<artifactId>flink-connector-starrocks</artifactId> <artifactId>flink-connector-starrocks</artifactId>
<version>1.2.3_flink-1.14_2.12</version> <version>1.2.3_flink-1.14_${scala.binary.version}</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
<source.level>${target.java.version}</source.level> <source.level>${target.java.version}</source.level>
<target.level>${target.java.version}</target.level> <target.level>${target.java.version}</target.level>
<dubbo.version>3.0.2.1</dubbo.version> <dubbo.version>3.0.2.1</dubbo.version>
<flink.version>1.14.6</flink.version>
<junit.version>4.12</junit.version> <junit.version>4.12</junit.version>
<spring.version>4.3.16.RELEASE</spring.version> <spring.version>4.3.16.RELEASE</spring.version>
<maven.compiler.source>${target.java.version}</maven.compiler.source> <maven.compiler.source>${target.java.version}</maven.compiler.source>
...@@ -42,30 +41,6 @@ ...@@ -42,30 +41,6 @@
<groupId>com.dlink</groupId> <groupId>com.dlink</groupId>
<artifactId>dlink-common</artifactId> <artifactId>dlink-common</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table-planner_${scala.binary.version}</artifactId>
<version>${flink.version}</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients_${scala.binary.version}</artifactId>
<version>${flink.version}</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
...@@ -97,4 +72,72 @@ ...@@ -97,4 +72,72 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<profiles>
<profile>
<id>flink-1.11</id>
<dependencies>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.11</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.12</id>
<dependencies>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.12</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.13</id>
<dependencies>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.13</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.14</id>
<dependencies>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.14</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.15</id>
<dependencies>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.15</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.16</id>
<dependencies>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.16</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
</profiles>
</project> </project>
...@@ -64,11 +64,6 @@ ...@@ -64,11 +64,6 @@
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-${dlink.flink.version}</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency> <dependency>
<groupId>com.dlink</groupId> <groupId>com.dlink</groupId>
<artifactId>dlink-executor</artifactId> <artifactId>dlink-executor</artifactId>
...@@ -79,21 +74,11 @@ ...@@ -79,21 +74,11 @@
<artifactId>dlink-connector-jdbc-${dlink.flink.version}</artifactId> <artifactId>dlink-connector-jdbc-${dlink.flink.version}</artifactId>
<scope>${scope.runtime}</scope> <scope>${scope.runtime}</scope>
</dependency>--> </dependency>-->
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-${dlink.flink.version}</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency> <dependency>
<groupId>com.dlink</groupId> <groupId>com.dlink</groupId>
<artifactId>dlink-gateway</artifactId> <artifactId>dlink-gateway</artifactId>
<scope>${scope.runtime}</scope> <scope>${scope.runtime}</scope>
</dependency> </dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-catalog-mysql-${dlink.flink.version}</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency> <dependency>
<groupId>com.dlink</groupId> <groupId>com.dlink</groupId>
<artifactId>dlink-client-hadoop</artifactId> <artifactId>dlink-client-hadoop</artifactId>
...@@ -181,6 +166,147 @@ ...@@ -181,6 +166,147 @@
<groupId>com.dlink</groupId> <groupId>com.dlink</groupId>
<artifactId>dlink-function</artifactId> <artifactId>dlink-function</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
</dependency>
</dependencies> </dependencies>
<profiles>
<profile>
<id>flink-1.11</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-connector-jdbc-1.11</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.11</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.12</id>
<dependencies>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-client-1.12</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-connector-jdbc-1.12</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.12</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.13</id>
<dependencies>
<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-connector-jdbc-1.13</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.13</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.14</id>
<dependencies>
<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-connector-jdbc-1.14</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
<dependency>
<groupId>com.dlink</groupId>
<artifactId>dlink-flink-1.14</artifactId>
<scope>${scope.runtime}</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>flink-1.15</id>
<dependencies>
<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>
</dependencies>
</profile>
<profile>
<id>flink-1.16</id>
<dependencies>
<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>
</project> </project>
...@@ -44,16 +44,6 @@ ...@@ -44,16 +44,6 @@
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<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>provided</scope>
</dependency>
<dependency> <dependency>
<groupId>com.dlink</groupId> <groupId>com.dlink</groupId>
<artifactId>dlink-metadata-base</artifactId> <artifactId>dlink-metadata-base</artifactId>
...@@ -61,4 +51,101 @@ ...@@ -61,4 +51,101 @@
</dependency> </dependency>
</dependencies> </dependencies>
<profiles>
<profile>
<id>flink-1.11</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>
</dependencies>
</profile>
<profile>
<id>flink-1.12</id>
<dependencies>
<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>
</dependencies>
</profile>
<profile>
<id>flink-1.13</id>
<dependencies>
<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>
</dependencies>
</profile>
<profile>
<id>flink-1.14</id>
<dependencies>
<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>
</dependencies>
</profile>
<profile>
<id>flink-1.15</id>
<dependencies>
<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>
</dependencies>
</profile>
<profile>
<id>flink-1.16</id>
<dependencies>
<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>
</project> </project>
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<druid-starter>1.2.8</druid-starter> <druid-starter>1.2.8</druid-starter>
<mybatis-plus-boot-starter.version>3.5.1</mybatis-plus-boot-starter.version> <mybatis-plus-boot-starter.version>3.5.1</mybatis-plus-boot-starter.version>
<lombok.version>1.18.24</lombok.version> <lombok.version>1.18.24</lombok.version>
<jackjson.version>2.13.4</jackjson.version> <jackjson.version>2.14.0-rc2</jackjson.version>
<guava.version>31.1-jre</guava.version> <guava.version>31.1-jre</guava.version>
<mysql-connector-java.version>8.0.28</mysql-connector-java.version> <mysql-connector-java.version>8.0.28</mysql-connector-java.version>
<ojdbc8.version>12.2.0.1</ojdbc8.version> <ojdbc8.version>12.2.0.1</ojdbc8.version>
...@@ -77,8 +77,8 @@ ...@@ -77,8 +77,8 @@
<sa-token.version>1.31.0</sa-token.version> <sa-token.version>1.31.0</sa-token.version>
<commons-lang3.version>3.3.2</commons-lang3.version> <commons-lang3.version>3.3.2</commons-lang3.version>
<httpclient.version>4.4.1</httpclient.version> <httpclient.version>4.4.1</httpclient.version>
<maven-jar-plugin.version>3.2.0</maven-jar-plugin.version> <maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>
<maven-assembly-plugin.version>3.2.0</maven-assembly-plugin.version> <maven-assembly-plugin.version>3.4.2</maven-assembly-plugin.version>
<maven.resource.version>3.2.0</maven.resource.version> <maven.resource.version>3.2.0</maven.resource.version>
<junit.version>4.12</junit.version> <junit.version>4.12</junit.version>
<protobuf-java.version>2.5.0</protobuf-java.version> <protobuf-java.version>2.5.0</protobuf-java.version>
...@@ -666,9 +666,6 @@ ...@@ -666,9 +666,6 @@
<profiles> <profiles>
<profile> <profile>
<id>web</id> <id>web</id>
<modules>
<module>dlink-web</module>
</modules>
<activation> <activation>
<activeByDefault>true</activeByDefault> <activeByDefault>true</activeByDefault>
<property> <property>
...@@ -696,7 +693,7 @@ ...@@ -696,7 +693,7 @@
<activation> <activation>
<activeByDefault>true</activeByDefault> <activeByDefault>true</activeByDefault>
<property> <property>
<name>prod</name> <name>!dev</name>
</property> </property>
</activation> </activation>
<properties> <properties>
...@@ -723,8 +720,7 @@ ...@@ -723,8 +720,7 @@
<activation> <activation>
<activeByDefault>true</activeByDefault> <activeByDefault>true</activeByDefault>
<property> <property>
<name>scala-2.12</name> <name>!scala-2.11</name>
<value>flink-1.15</value>
</property> </property>
</activation> </activation>
<properties> <properties>
...@@ -898,5 +894,48 @@ ...@@ -898,5 +894,48 @@
</build> </build>
</profile> </profile>
<profile>
<id>fast</id>
<activation>
<property>
<name>fast</name>
</property>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles> </profiles>
</project> </project>
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