Closed robben009 closed 9 months ago
@robben009 Please introduce the Maven dependency for SnakeYAML and try again.
<!-- https://mvnrepository.com/artifact/org.yaml/snakeyaml -->
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>2.0</version>
</dependency>
@robben009 Please introduce the Maven dependency for SnakeYAML and try again.请介绍 SnakeYAML 的 Maven 依赖,然后重试。
<!-- https://mvnrepository.com/artifact/org.yaml/snakeyaml --> <dependency> <groupId>org.yaml</groupId> <artifactId>snakeyaml</artifactId> <version>2.0</version> </dependency>
i try it,But still so
@robben009 Please refer to this issue and try downgrading the snakeyaml version. https://github.com/spring-projects/spring-boot/issues/34405
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-jdbc-core</artifactId>
<version>5.4.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.9</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0.1</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.9</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.33</version>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-jdbc</artifactId>
<version>5.4.2-SNAPSHOT</version>
</dependency>
- Updates ElasticJob to 3.0.4 to block CVEs for SnakeYAML delivery #28805
ok thanks,i get
- Fixed in Updates ElasticJob to 3.0.4 to block CVEs for SnakeYAML delivery #28805.
- For earlier versions of ShardingSpehre JDBC, you always need to use SnakeYAML 1.33.
<dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>shardingsphere-jdbc-core</artifactId> <version>5.4.1</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>2.3.9</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId> <version>2.3.0.1</version> </dependency> <dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>jaxb-runtime</artifactId> <version>2.3.9</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.yaml</groupId> <artifactId>snakeyaml</artifactId> <version>1.33</version> </dependency>
- For ShardingSphere JDBC 5.4.2-SNAPSHOT/5.5.0 of the master branch, only the following is required. Use of the JAXB API has been removed.
<dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>shardingsphere-jdbc</artifactId> <version>5.4.2-SNAPSHOT</version> </dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-jdbc</artifactId>
<version>5.4.2-SNAPSHOT</version>
</dependency>
Excuse me, which repository is this version in?
sdk install java 21.0.2-graalce
sdk use java 21.0.2-graalce
git clone git@github.com:apache/shardingsphere.git cd ./shardingsphere/ git reset --hard e9f622b82de3e20a2d0fe74c87bd67e604e36140 ./mvnw clean install -Prelease -T1C -DskipTests -Djacoco.skip=true -Dcheckstyle.skip=true -Drat.skip=true -Dmaven.javadoc.skip=true
- If you need to upload the contents of the local maven repo to a private maven repo, this is not something ShardingSphere should handle. Assuming you are using the package registry for a private instance of gitlab, you should check out the documentation at https://docs.gitlab.com/16.9/ee/user/packages/maven_repository/ . This often involves redefining GAV information in private projects.
Error inserting data after startup
How should I solve it?