diff --git a/.github/workflows/commit-check.yml b/.github/workflows/commit-check.yml
index 7f91087932874..853cb1b03831d 100644
--- a/.github/workflows/commit-check.yml
+++ b/.github/workflows/commit-check.yml
@@ -98,6 +98,10 @@ jobs:
run: |
./mvnw test-compile -Pall-java,licenses,lgpl,checkstyle,examples,scala,check-licenses -B -V
+ - name: Documentation code snippets compilation check
+ run: |
+ ./mvnw -Pdocs -pl :code-snippets -am compile -B -V
+
- name: Run abandoned tests checks.
run : |
./mvnw test -Pcheck-test-suites,all-java,scala -B -V
diff --git a/docs/_docs/code-snippets/java/pom.xml b/docs/_docs/code-snippets/java/pom.xml
index 990895f58a84b..920e50525884b 100644
--- a/docs/_docs/code-snippets/java/pom.xml
+++ b/docs/_docs/code-snippets/java/pom.xml
@@ -19,23 +19,26 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
- org.apache.ignite
+
+
+ org.apache.ignite
+ ignite-parent-internal
+ ${revision}
+ ../../../../parent-internal/pom.xml
+
+
code-snippets
- 1.0.0-SNAPSHOT
- UTF-8
- 2.19.0-SNAPSHOT
+ 1.0.0
${project.groupId}
ignite-core
- ${ignite.version}
${project.groupId}
ignite-log4j2
- ${ignite.version}
${project.groupId}
@@ -45,81 +48,42 @@
${project.groupId}
ignite-slf4j
- ${ignite.version}
${project.groupId}
ignite-indexing
- ${ignite.version}
${project.groupId}
ignite-spring
- ${ignite.version}
${project.groupId}
ignite-urideploy
- ${ignite.version}
${project.groupId}
ignite-zookeeper
- ${ignite.version}
${project.groupId}
ignite-opencensus
- ${ignite.version}
${project.groupId}
ignite-compress
- ${ignite.version}
mysql
mysql-connector-java
- 8.0.13
+ ${mysql.connector.version}
org.junit.jupiter
junit-jupiter-api
5.6.2
-
- org.junit.jupiter
- junit-jupiter-engine
- 5.6.2
-
-
- src/main/java
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.14.1
-
- 17
- 17
-
-
-
- maven-surefire-plugin
- 3.5.4
-
-
- **/*.java
-
-
-
-
- maven-failsafe-plugin
- 3.5.4
-
-
-
diff --git a/pom.xml b/pom.xml
index 5b4ef9e6f5516..da005ab74d9bf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -487,6 +487,13 @@
+
+ docs
+
+ docs/_docs/code-snippets/java
+
+
+
update-versions