Unverified Commit b34a901d authored by aiwenmo's avatar aiwenmo Committed by GitHub

[Optimization-1213][pom] Optimizate maven assembly and profile (#1214)

parent 30e86c67
...@@ -95,6 +95,7 @@ body: ...@@ -95,6 +95,7 @@ body:
Which version of Dinky are you running? We only accept bugs report from the LTS projects. Which version of Dinky are you running? We only accept bugs report from the LTS projects.
options: options:
- dev - dev
- 0.6.7
- 0.6.6 - 0.6.6
- 0.6.5 - 0.6.5
- 0.6.4 - 0.6.4
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 --> <!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.parent.basedir}/extends</outputDirectory> <outputDirectory>${project.parent.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -15,16 +15,14 @@ ...@@ -15,16 +15,14 @@
~ See the License for the specific language governing permissions and ~ See the License for the specific language governing permissions and
~ limitations under the License. ~ limitations under the License.
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<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"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent> <parent>
<artifactId>dlink-catalog-mysql</artifactId>
<groupId>com.dlink</groupId> <groupId>com.dlink</groupId>
<artifactId>dlink-catalog-mysql</artifactId>
<version>0.6.8-SNAPSHOT</version> <version>0.6.8-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>dlink-catalog-mysql-1.14</artifactId> <artifactId>dlink-catalog-mysql-1.14</artifactId>
...@@ -58,7 +56,7 @@ ...@@ -58,7 +56,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 --> <!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.parent.basedir}/extends</outputDirectory> <outputDirectory>${project.parent.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 --> <!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.parent.basedir}/extends</outputDirectory> <outputDirectory>${project.parent.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -33,4 +33,17 @@ ...@@ -33,4 +33,17 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.parent.basedir}/build/extends</outputDirectory>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>
\ No newline at end of file
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 --> <!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.basedir}/extends</outputDirectory> <outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 --> <!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.basedir}/extends</outputDirectory> <outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 --> <!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.basedir}/extends</outputDirectory> <outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 --> <!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.basedir}/extends</outputDirectory> <outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 --> <!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.basedir}/extends</outputDirectory> <outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -39,4 +39,16 @@ ...@@ -39,4 +39,16 @@
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>
\ No newline at end of file
...@@ -15,16 +15,14 @@ ...@@ -15,16 +15,14 @@
~ See the License for the specific language governing permissions and ~ See the License for the specific language governing permissions and
~ limitations under the License. ~ limitations under the License.
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<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"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent> <parent>
<artifactId>dlink-client</artifactId>
<groupId>com.dlink</groupId> <groupId>com.dlink</groupId>
<artifactId>dlink-client</artifactId>
<version>0.6.8-SNAPSHOT</version> <version>0.6.8-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>dlink-client-base</artifactId> <artifactId>dlink-client-base</artifactId>
...@@ -48,38 +46,26 @@ ...@@ -48,38 +46,26 @@
<dependency> <dependency>
<groupId>org.apache.flink</groupId> <groupId>org.apache.flink</groupId>
<artifactId>flink-table-planner_${scala.binary.version}</artifactId> <artifactId>flink-table-planner_${scala.binary.version}</artifactId>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
<version>${flink.version}</version> <version>${flink.version}</version>
<scope>provided</scope> <scope>provided</scope>
</dependency>
<!--<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table-planner-blink_${scala.binary.version}</artifactId>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId> <artifactId>slf4j-api</artifactId>
</exclusion> </exclusion>
</exclusions> </exclusions>
<version>${flink.version}</version> </dependency>
<scope>provided</scope>
</dependency>-->
<dependency> <dependency>
<groupId>org.apache.flink</groupId> <groupId>org.apache.flink</groupId>
<artifactId>flink-clients_${scala.binary.version}</artifactId> <artifactId>flink-clients_${scala.binary.version}</artifactId>
<version>${flink.version}</version>
<scope>provided</scope>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId> <artifactId>slf4j-api</artifactId>
</exclusion> </exclusion>
</exclusions> </exclusions>
<version>${flink.version}</version>
<scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
...@@ -100,14 +86,12 @@ ...@@ -100,14 +86,12 @@
<executions> <executions>
<execution> <execution>
<id>copy-dependencies</id> <id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals> <goals>
<goal>copy-dependencies</goal> <goal>copy-dependencies</goal>
</goals> </goals>
<phase>prepare-package</phase>
<configuration> <configuration>
<outputDirectory> <outputDirectory>${project.build.directory}/lib</outputDirectory>
${project.build.directory}/lib
</outputDirectory>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 --> <!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.basedir}/extends</outputDirectory> <outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 --> <!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.basedir}/extends</outputDirectory> <outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 --> <!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.basedir}/extends</outputDirectory> <outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 --> <!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.basedir}/extends</outputDirectory> <outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -15,16 +15,14 @@ ...@@ -15,16 +15,14 @@
~ See the License for the specific language governing permissions and ~ See the License for the specific language governing permissions and
~ limitations under the License. ~ limitations under the License.
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<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"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent> <parent>
<artifactId>dlink-connectors</artifactId>
<groupId>com.dlink</groupId> <groupId>com.dlink</groupId>
<artifactId>dlink-connectors</artifactId>
<version>0.6.8-SNAPSHOT</version> <version>0.6.8-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>dlink-connector-jdbc-1.14</artifactId> <artifactId>dlink-connector-jdbc-1.14</artifactId>
...@@ -149,7 +147,7 @@ ...@@ -149,7 +147,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 --> <!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.basedir}/extends</outputDirectory> <outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 --> <!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.basedir}/extends</outputDirectory> <outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -15,20 +15,17 @@ ...@@ -15,20 +15,17 @@
~ See the License for the specific language governing permissions and ~ See the License for the specific language governing permissions and
~ limitations under the License. ~ limitations under the License.
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<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"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent> <parent>
<artifactId>dlink-connectors</artifactId>
<groupId>com.dlink</groupId> <groupId>com.dlink</groupId>
<artifactId>dlink-connectors</artifactId>
<version>0.6.8-SNAPSHOT</version> <version>0.6.8-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>dlink-connector-phoenix-1.14</artifactId> <artifactId>dlink-connector-phoenix-1.14</artifactId>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
...@@ -58,7 +55,6 @@ ...@@ -58,7 +55,6 @@
<scope>${phoenix.scope.runtime}</scope> <scope>${phoenix.scope.runtime}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.flink</groupId> <groupId>org.apache.flink</groupId>
<artifactId>flink-table-common</artifactId> <artifactId>flink-table-common</artifactId>
...@@ -83,7 +79,6 @@ ...@@ -83,7 +79,6 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!-- <dependency> <!-- <dependency>
<groupId>org.apache.phoenix</groupId> <groupId>org.apache.phoenix</groupId>
<artifactId>phoenix-core</artifactId> <artifactId>phoenix-core</artifactId>
...@@ -91,7 +86,6 @@ ...@@ -91,7 +86,6 @@
<scope>${scope.runtime}</scope> <scope>${scope.runtime}</scope>
</dependency>--> </dependency>-->
<dependency> <dependency>
<groupId>org.apache.phoenix</groupId> <groupId>org.apache.phoenix</groupId>
<artifactId>phoenix-core</artifactId> <artifactId>phoenix-core</artifactId>
...@@ -113,7 +107,7 @@ ...@@ -113,7 +107,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 --> <!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.basedir}/extends</outputDirectory> <outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
...@@ -15,16 +15,14 @@ ...@@ -15,16 +15,14 @@
~ See the License for the specific language governing permissions and ~ See the License for the specific language governing permissions and
~ limitations under the License. ~ limitations under the License.
--> -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<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"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent> <parent>
<artifactId>dlink-connectors</artifactId>
<groupId>com.dlink</groupId> <groupId>com.dlink</groupId>
<artifactId>dlink-connectors</artifactId>
<version>0.6.8-SNAPSHOT</version> <version>0.6.8-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>dlink-connector-pulsar-1.14</artifactId> <artifactId>dlink-connector-pulsar-1.14</artifactId>
...@@ -151,6 +149,7 @@ ...@@ -151,6 +149,7 @@
<groupId>org.apache.flink</groupId> <groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-java_${scala.binary.version}</artifactId> <artifactId>flink-streaming-java_${scala.binary.version}</artifactId>
<version>${flink.version}</version> <version>${flink.version}</version>
<scope>provided</scope>
<exclusions> <exclusions>
<!-- Remove unneeded dependency, which is conflicting with our jetty-util version. --> <!-- Remove unneeded dependency, which is conflicting with our jetty-util version. -->
<exclusion> <exclusion>
...@@ -158,7 +157,6 @@ ...@@ -158,7 +157,6 @@
<artifactId>*</artifactId> <artifactId>*</artifactId>
</exclusion> </exclusion>
</exclusions> </exclusions>
<scope>provided</scope>
</dependency> </dependency>
<!-- test dependencies --> <!-- test dependencies -->
...@@ -305,10 +303,10 @@ ...@@ -305,10 +303,10 @@
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
<phase>package</phase>
<goals> <goals>
<goal>shade</goal> <goal>shade</goal>
</goals> </goals>
<phase>package</phase>
<configuration> <configuration>
<filters> <filters>
<filter> <filter>
...@@ -331,16 +329,16 @@ ...@@ -331,16 +329,16 @@
<executions> <executions>
<execution> <execution>
<id>copy-resources</id> <id>copy-resources</id>
<phase>package</phase>
<goals> <goals>
<goal>run</goal> <goal>run</goal>
</goals> </goals>
<phase>package</phase>
<configuration> <configuration>
<tasks> <tasks>
<!--suppress UnresolvedMavenProperty --> <!--suppress UnresolvedMavenProperty -->
<copy todir="${buildJarPath}/../build/connectors"> <copy todir="${buildJarPath}/../build/connectors">
<fileset dir="target/"> <fileset dir="target/">
<include name="${project.artifactId}-${project.version}.jar"/> <include name="${project.artifactId}-${project.version}.jar" />
</fileset> </fileset>
</copy> </copy>
...@@ -357,7 +355,7 @@ ...@@ -357,7 +355,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<configuration> <configuration>
<!-- 指定打包的jar包输出路径 --> <!-- 指定打包的jar包输出路径 -->
<outputDirectory>${project.parent.parent.basedir}/extends</outputDirectory> <outputDirectory>${project.parent.parent.basedir}/build/extends</outputDirectory>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
......
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