craynic commented on issue #1203:
URL: https://github.com/apache/flink-cdc/issues/1203#issuecomment-2065689433

   > If you are building with gradle locally, you may wanna try adding
   > 
   > ```
   > mergeServiceFiles()
   > ```
   > 
   > at the bottom of build.gradle
   > 
   > ![1151658391531_ 
pic](https://user-images.githubusercontent.com/5074788/180165627-22ffc076-4a43-4568-83f0-82e85e24f219.jpg)
   > 
   > It worked for me when submitting the uber jar to a flink cluster.
   
   For maven projects, add a transformer to maven-shade-plugin config.
   Example:
   ```
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-shade-plugin</artifactId>
                                <version>3.1.1</version>
                                <executions>
                                        <!-- Run shade goal on package phase -->
                                        <execution>
                                                <phase>package</phase>
                                                <goals>
                                                        <goal>shade</goal>
                                                </goals>
                                                <configuration>
                                                        <!-- something else -->
                                                        <transformers>
                                                                <transformer 
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
                                                        </transformers>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to