Skip to content

Commit eb77a9d

Browse files
committed
Fix the bug that nativeTest test suite cannot recognize modules without source code
1 parent 37987c5 commit eb77a9d

4 files changed

Lines changed: 20 additions & 153 deletions

File tree

docs/document/content/user-manual/shardingsphere-jdbc/optional-plugins/hiveserver2/_index.cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ create table IF NOT EXISTS t_order
589589
```
590590

591591
第2种选择是使用 Iceberg 表,可能的建表流程如下。Apache Iceberg 表格式有望在未来几年取代传统的 Hive 表格式,
592-
参考 https://blog.cloudera.com/from-hive-tables-to-iceberg-tables-hassle-free/
592+
参考 https://lists.apache.org/thread/cfwxjd8tjt2wwz54crdjy2qsgzjnfxfm
593593

594594
```sql
595595
-- noinspection SqlNoDataSourceInspectionForFile

docs/document/content/user-manual/shardingsphere-jdbc/optional-plugins/hiveserver2/_index.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ create table IF NOT EXISTS t_order
600600
```
601601

602602
The second option is to use Iceberg tables. The possible table creation process is as follows. Apache Iceberg table format is expected to replace the traditional Hive table format in the next few years.
603-
Refer to https://blog.cloudera.com/from-hive-tables-to-iceberg-tables-hassle-free/ .
603+
Refer to https://lists.apache.org/thread/cfwxjd8tjt2wwz54crdjy2qsgzjnfxfm .
604604

605605
```sql
606606
-- noinspection SqlNoDataSourceInspectionForFile

pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,20 @@
11511151
</includes>
11521152
</configuration>
11531153
</plugin>
1154+
<!--TODO See https://github.com/graalvm/native-build-tools/issues/727 .-->
1155+
<plugin>
1156+
<artifactId>maven-jar-plugin</artifactId>
1157+
<version>${maven-jar-plugin.version}</version>
1158+
<executions>
1159+
<execution>
1160+
<id>jar-in-test-phase</id>
1161+
<goals>
1162+
<goal>jar</goal>
1163+
</goals>
1164+
<phase>test</phase>
1165+
</execution>
1166+
</executions>
1167+
</plugin>
11541168
<plugin>
11551169
<groupId>org.graalvm.buildtools</groupId>
11561170
<artifactId>native-maven-plugin</artifactId>

test/native/pom.xml

Lines changed: 4 additions & 151 deletions
Original file line numberDiff line numberDiff line change
@@ -34,162 +34,34 @@
3434
<scope>test</scope>
3535
</dependency>
3636

37-
<!--TODO `org.graalvm.buildtools:native-maven-plugin:0.10.6` does not recognize `pom.xml` without source code,
38-
which affects all `org.apache.shardingsphere:shardingsphere-proxy-dialect-*`.
39-
See https://github.com/graalvm/native-build-tools/issues/727 .
40-
-->
4137
<dependency>
4238
<groupId>org.apache.shardingsphere</groupId>
4339
<artifactId>shardingsphere-proxy-bootstrap</artifactId>
4440
<version>${project.version}</version>
4541
<scope>test</scope>
46-
<exclusions>
47-
<exclusion>
48-
<groupId>org.apache.shardingsphere</groupId>
49-
<artifactId>shardingsphere-proxy-dialect-postgresql</artifactId>
50-
</exclusion>
51-
<exclusion>
52-
<groupId>org.apache.shardingsphere</groupId>
53-
<artifactId>shardingsphere-proxy-dialect-mysql</artifactId>
54-
</exclusion>
55-
<exclusion>
56-
<groupId>org.apache.shardingsphere</groupId>
57-
<artifactId>shardingsphere-proxy-dialect-oracle</artifactId>
58-
</exclusion>
59-
<exclusion>
60-
<groupId>org.apache.shardingsphere</groupId>
61-
<artifactId>shardingsphere-proxy-dialect-sqlserver</artifactId>
62-
</exclusion>
63-
<exclusion>
64-
<groupId>org.apache.shardingsphere</groupId>
65-
<artifactId>shardingsphere-proxy-dialect-opengauss</artifactId>
66-
</exclusion>
67-
</exclusions>
68-
</dependency>
69-
<dependency>
70-
<groupId>org.apache.shardingsphere</groupId>
71-
<artifactId>shardingsphere-parser-sql-postgresql</artifactId>
72-
<version>${project.version}</version>
73-
<scope>test</scope>
74-
</dependency>
75-
<dependency>
76-
<groupId>org.apache.shardingsphere</groupId>
77-
<artifactId>shardingsphere-infra-binder-postgresql</artifactId>
78-
<version>${project.version}</version>
79-
<scope>test</scope>
80-
</dependency>
81-
<dependency>
82-
<groupId>org.apache.shardingsphere</groupId>
83-
<artifactId>shardingsphere-postgresql-protocol</artifactId>
84-
<version>${project.version}</version>
85-
<scope>test</scope>
86-
</dependency>
87-
<dependency>
88-
<groupId>org.apache.shardingsphere</groupId>
89-
<artifactId>shardingsphere-proxy-frontend-postgresql</artifactId>
90-
<version>${project.version}</version>
91-
<scope>test</scope>
92-
</dependency>
93-
<dependency>
94-
<groupId>org.apache.shardingsphere</groupId>
95-
<artifactId>shardingsphere-data-pipeline-postgresql</artifactId>
96-
<version>${project.version}</version>
97-
<scope>test</scope>
98-
</dependency>
99-
<dependency>
100-
<groupId>org.apache.shardingsphere</groupId>
101-
<artifactId>shardingsphere-parser-sql-mysql</artifactId>
102-
<version>${project.version}</version>
103-
<scope>test</scope>
104-
</dependency>
105-
<dependency>
106-
<groupId>org.apache.shardingsphere</groupId>
107-
<artifactId>shardingsphere-infra-binder-mysql</artifactId>
108-
<version>${project.version}</version>
109-
<scope>test</scope>
110-
</dependency>
111-
<dependency>
112-
<groupId>org.apache.shardingsphere</groupId>
113-
<artifactId>shardingsphere-mysql-protocol</artifactId>
114-
<version>${project.version}</version>
115-
<scope>test</scope>
116-
</dependency>
117-
<dependency>
118-
<groupId>org.apache.shardingsphere</groupId>
119-
<artifactId>shardingsphere-proxy-frontend-mysql</artifactId>
120-
<version>${project.version}</version>
121-
<scope>test</scope>
122-
</dependency>
123-
<dependency>
124-
<groupId>org.apache.shardingsphere</groupId>
125-
<artifactId>shardingsphere-data-pipeline-mysql</artifactId>
126-
<version>${project.version}</version>
127-
<scope>test</scope>
128-
</dependency>
129-
<dependency>
130-
<groupId>org.apache.shardingsphere</groupId>
131-
<artifactId>shardingsphere-parser-sql-sqlserver</artifactId>
132-
<version>${project.version}</version>
133-
<scope>test</scope>
134-
</dependency>
135-
<dependency>
136-
<groupId>org.apache.shardingsphere</groupId>
137-
<artifactId>shardingsphere-infra-binder-sqlserver</artifactId>
138-
<version>${project.version}</version>
139-
<scope>test</scope>
140-
</dependency>
141-
<dependency>
142-
<groupId>org.apache.shardingsphere</groupId>
143-
<artifactId>shardingsphere-parser-sql-opengauss</artifactId>
144-
<version>${project.version}</version>
145-
<scope>test</scope>
146-
</dependency>
147-
<dependency>
148-
<groupId>org.apache.shardingsphere</groupId>
149-
<artifactId>shardingsphere-infra-binder-opengauss</artifactId>
150-
<version>${project.version}</version>
151-
<scope>test</scope>
152-
</dependency>
153-
<dependency>
154-
<groupId>org.apache.shardingsphere</groupId>
155-
<artifactId>shardingsphere-opengauss-protocol</artifactId>
156-
<version>${project.version}</version>
157-
<scope>test</scope>
158-
</dependency>
159-
<dependency>
160-
<groupId>org.apache.shardingsphere</groupId>
161-
<artifactId>shardingsphere-proxy-frontend-opengauss</artifactId>
162-
<version>${project.version}</version>
163-
<scope>test</scope>
164-
</dependency>
165-
<dependency>
166-
<groupId>org.apache.shardingsphere</groupId>
167-
<artifactId>shardingsphere-data-pipeline-opengauss</artifactId>
168-
<version>${project.version}</version>
169-
<scope>test</scope>
17042
</dependency>
17143

17244
<dependency>
17345
<groupId>org.apache.shardingsphere</groupId>
174-
<artifactId>shardingsphere-parser-sql-clickhouse</artifactId>
46+
<artifactId>shardingsphere-proxy-dialect-clickhouse</artifactId>
17547
<version>${project.version}</version>
17648
<scope>test</scope>
17749
</dependency>
17850
<dependency>
17951
<groupId>org.apache.shardingsphere</groupId>
180-
<artifactId>shardingsphere-parser-sql-hive</artifactId>
52+
<artifactId>shardingsphere-proxy-dialect-hive</artifactId>
18153
<version>${project.version}</version>
18254
<scope>test</scope>
18355
</dependency>
18456
<dependency>
18557
<groupId>org.apache.shardingsphere</groupId>
186-
<artifactId>shardingsphere-parser-sql-firebird</artifactId>
58+
<artifactId>shardingsphere-proxy-dialect-firebird</artifactId>
18759
<version>${project.version}</version>
18860
<scope>test</scope>
18961
</dependency>
19062
<dependency>
19163
<groupId>org.apache.shardingsphere</groupId>
192-
<artifactId>shardingsphere-parser-sql-presto</artifactId>
64+
<artifactId>shardingsphere-proxy-dialect-presto</artifactId>
19365
<version>${project.version}</version>
19466
<scope>test</scope>
19567
</dependency>
@@ -207,25 +79,6 @@
20779
<scope>test</scope>
20880
</dependency>
20981

210-
<dependency>
211-
<groupId>org.apache.shardingsphere</groupId>
212-
<artifactId>shardingsphere-broadcast-distsql-handler</artifactId>
213-
<version>${project.version}</version>
214-
<scope>runtime</scope>
215-
</dependency>
216-
<dependency>
217-
<groupId>org.apache.shardingsphere</groupId>
218-
<artifactId>shardingsphere-readwrite-splitting-distsql-handler</artifactId>
219-
<version>${project.version}</version>
220-
<scope>runtime</scope>
221-
</dependency>
222-
<dependency>
223-
<groupId>org.apache.shardingsphere</groupId>
224-
<artifactId>shardingsphere-shadow-distsql-handler</artifactId>
225-
<version>${project.version}</version>
226-
<scope>runtime</scope>
227-
</dependency>
228-
22982
<dependency>
23083
<groupId>io.vertx</groupId>
23184
<artifactId>vertx-grpc</artifactId>

0 commit comments

Comments
 (0)