This is an automated email from the ASF dual-hosted git repository.
jark pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 5493a386ae4 [FLINK-27630][table-planner] Add maven-source-plugin for
table planner testing connectors (#19746)
5493a386ae4 is described below
commit 5493a386ae4f3cfbcbe1c19444130f788392860c
Author: Jacky Lau <[email protected]>
AuthorDate: Thu Jun 2 20:08:05 2022 +0800
[FLINK-27630][table-planner] Add maven-source-plugin for table planner
testing connectors (#19746)
---
flink-table/flink-table-planner/pom.xml | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/flink-table/flink-table-planner/pom.xml
b/flink-table/flink-table-planner/pom.xml
index fad2c8d0467..544c3da3a87 100644
--- a/flink-table/flink-table-planner/pom.xml
+++ b/flink-table/flink-table-planner/pom.xml
@@ -427,6 +427,32 @@ under the License.
</execution>
</executions>
</plugin>
+
+ <!-- deploy value connector's source code when user
uses it. -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-test-sources</id>
+ <goals>
+
<goal>test-jar-no-fork</goal>
+ </goals>
+ <configuration>
+ <archive>
+ <!-- Globally
exclude maven metadata, because it may accidentally bundle files we don't
intend to -->
+
<addMavenDescriptor>false</addMavenDescriptor>
+ </archive>
+ <includes>
+ <!-- Only
include factories sources, because this is where the value connector is stored.
-->
+
<include>**/factories/**</include>
+
<include>META-INF/LICENSE</include>
+
<include>META-INF/NOTICE</include>
+ </includes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>