paion-data / aristotle

A web servide enables you to create knowledge graph.
https://aristotle-ws.com
3 stars 0 forks source link

"Sharing is only supported for boot loader classes because bootstrap classpath has been appended" #15

Open QubitPi opened 5 days ago

QubitPi commented 5 days ago

When I did the following:

git clone git@github.com:paion-data/aristotle.git
cd aristotle
mvn clean package

My console threw a Maven error:

page 2(2)

[ERROR] OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended doesn't break the build though, but we need an investigation on why this would happen, because this could be a source of potential bug in the future.

My JDK and Maven versions are the following:

$ java -version
openjdk version "17.0.11" 2024-04-16
OpenJDK Runtime Environment Homebrew (build 17.0.11+0)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.11+0, mixed mode, sharing)

$ mvn -v
Apache Maven 3.9.8 (36645f6c9b5079805ea5009217e36f2cffd34256)
Java version: 17.0.11, vendor: Homebrew
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "13.1", arch: "x86_64", family: "mac"
Doom9527 commented 5 days ago

I also get the following error when I run the mvn clean package: Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended I currently suspect that pom file is the cause, I'll fix it.

Doom9527 commented 5 days ago

I have read in several forums that it is consistently suggested that it is best to ignore the warning, that the error will not matter, and that trying to fix it may cause some other problems.

1727160207132

https://stackoverflow.com/questions/54205486/how-to-avoid-sharing-is-only-supported-for-boot-loader-classes-because-bootstra

https://stackoverflow.com/questions/55890290/error-sharing-is-only-supported-for-boot-loader-classes-because-bootstrap-class

https://blog.csdn.net/weixin_73582152/article/details/133954018?ops_request_misc=&request_id=&biz_id=102&utm_term=Sharing%20is%20only%20supported%20for%20&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-1-133954018.142^v100^pc_search_result_base3&spm=1018.2226.3001.4187``

QubitPi commented 4 days ago

@Doom9527 Let me investigate it a little bit and I will post here later