Skip to content

Commit

Permalink
[FLINK-27630][table-planner] Add maven-source-plugin for table planne…
Browse files Browse the repository at this point in the history
…r testing connectors (apache#19746)
  • Loading branch information
liuyongvs authored Jun 2, 2022
1 parent 586715f commit 5493a38
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions flink-table/flink-table-planner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 5493a38

Please sign in to comment.