gywndi commented on issue #7701:
URL: https://github.com/apache/shardingsphere/issues/7701#issuecomment-708160562


   I changed maven plugin from maven-assembling-plugin to maven-shade-plugin, 
and solved this problem.
   The pom file are as this. Thanks.
   ```
   <build>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                                <version>3.6.1</version>
                                <configuration>
                                        <source>1.8</source>
                                        <target>1.8</target>
                                </configuration>
                        </plugin>
   
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-shade-plugin</artifactId>
                                <version>3.2.2</version>
                                <executions>
                                        <execution>
                                                <phase>package</phase>
                                                <goals>
                                                        <goal>shade</goal>
                                                </goals>
                                                <configuration>
                                                        
<minimizeJar>false</minimizeJar>
                                                        <transformers>
                                                                <transformer
                                                                        
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                                                        
<mainClass>net.test.Main</mainClass>
                                                                </transformer>
                                                                <transformer
                                                                        
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
                                                                        
<resource>
                                                                                
META-INF/services/org.apache.shardingsphere.sql.parser.spi.SQLParserConfiguration
                                                                        
</resource>
                                                                </transformer>
                                                        </transformers>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
        </build>
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to