zhenyuT commented on issue #540:
URL: 
https://github.com/apache/incubator-hugegraph-toolchain/issues/540#issuecomment-1835610488

   > > > > 使用IDEA连接后可以正常创建propertyKey,但是打成jar执行就会出现上面的错误 环境jdk21 IDEA2023版本 
环境都是一样的,不知道为什么
   > > > 
   > > > 
   > > > 你是用的什么方式打成jar包的?spring boot还是什么?
   > > 
   > > 
   > > 就是普通的jar
   > 
   > ```
   > <build>
   >        <plugins>
   >            <plugin>
   >                <artifactId>maven-assembly-plugin</artifactId>
   >                <configuration>
   >                    <appendAssemblyId>false</appendAssemblyId>
   >                    <attach>false</attach>
   >                    <descriptorRefs>
   >                        <descriptorRef>jar-with-dependencies</descriptorRef>
   >                    </descriptorRefs>
   >                    <archive>
   >                        <manifest>
   >                            
<mainClass>com.tpy.ServiceApplication</mainClass>
   >                        </manifest>
   >                    </archive>
   >                </configuration>
   >                <executions>
   >                    <execution>
   >                        <id>make-assembly</id>
   >                        <phase>package</phase>
   >                        <goals>
   >                            <!--<goal>assembly</goal>-->
   >                            <goal>single</goal>
   >                        </goals>
   >                    </execution>
   >                </executions>
   >            </plugin>
   > 
   >        </plugins>
   >    </build>
   > ```
   > 
   > 这是jar生成方式
   
   这种方式打包方式会将所有依赖打包到一个可执行的JAR文件中,导致SPI失效。建议可是换成使用maven-shade-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: [email protected]

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to