You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/07/09 04:32:01 UTC

[GitHub] [shardingsphere] wang7241 commented on issue #5810: want use maven-shade-plugin to build a single jar(all libs inside ) ,but throw error Cannot support database type 'MySQL'

wang7241 commented on issue #5810:
URL: https://github.com/apache/shardingsphere/issues/5810#issuecomment-655892453


   > Sorry, the problem is solved。just need marge the file META-INF/services/org.apache.shardingsphere.sql.parser.spi.SQLParserConfiguration.
   > 
   > The pom file are floower.
   > 
   > ```
   >   <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>com.xxxx.xxxx</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>
   >                 <configuration>
   >                     <createDependencyReducedPom>false</createDependencyReducedPom>
   >                     <artifactSet>
   >                         <excludes>
   >                            
   >                             <exclude>commons-logging:commons-logging</exclude>-->
   >                             <exclude>javax.servlet:servlet-api</exclude>
   >                            
   >                         </excludes>
   >                     </artifactSet>
   > 
   > 
   >                 </configuration>
   >             </plugin>
   > ```
   
   I  have a similar problem when I use sharding-jdbc-spring-namespace (4.1.1 version) Execute SQL.it reminds me Error querying database.  Cause: java.lang.UnsupportedOperationException: Cannot support database type 'MySQL'. In fact I do not understand your answer(just need marge the file META-INF/services/org.apache.shardingsphere.sql.parser.spi.SQLParserConfiguration),


----------------------------------------------------------------
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:
users@infra.apache.org