@@ -6,23 +6,95 @@ Use directly in Maven.
6
6
7
7
``` xml
8
8
<dependency >
9
- <groupId >com .github.linghengqian.hive </groupId >
9
+ <groupId >io .github.linghengqian</groupId >
10
10
<artifactId >hive-server2-jdbc-driver</artifactId >
11
- <version >1.0-SNAPSHOT </version >
11
+ <version >{latest.version} </version >
12
12
</dependency >
13
13
```
14
14
15
15
## Background
16
16
17
- The current project is actually a third-party build of HiveServer2 JDBC Driver.
18
- The release rhythm of apache/hive is conservative,
19
- and the latest changes of the master branch are rarely included in the latest version,
20
- but commits are filtered from the master branch.
21
- In order to conduct faster testing in downstream projects,
17
+ The current project is actually a third-party build of HiveServer2 JDBC Driver.
18
+ The release rhythm of apache/hive is conservative,
19
+ and the latest changes of the master branch are rarely included in the latest version,
20
+ but commits are filtered from the master branch.
21
+ In order to conduct faster testing in downstream projects,
22
22
this project was created by an individual developer.
23
23
24
24
More background at https://lists.apache.org/thread/63lr45kyh78s64spwsjxjy8zdyzprnz1 .
25
25
26
26
## Release Note
27
27
28
28
The current project has not yet carried out any release work.
29
+
30
+ ## contribute
31
+
32
+ Take Ubuntu WSL 22.04.4 as an example.
33
+ It is assumed that ` Git ` is configured, and ` SDKMAN! ` and ` Docker Engine ` are installed.
34
+
35
+ ``` shell
36
+ sdk install java 8.0.422-tem
37
+ sdk install maven 3.9.8
38
+ ```
39
+
40
+ ### How to test
41
+
42
+ - Execute the following command.
43
+
44
+ ``` shell
45
+ sdk use java 8.0.422-tem
46
+ git clone
[email protected] :apache/hive.git
47
+ cd ./hive/
48
+ git reset --hard b09d76e68bfba6be19733d864b3207f95265d11f
49
+ mvn clean install -DskipTests
50
+ mvn clean package -pl packaging -DskipTests -Pdocker
51
+ cd ../
52
+ git clone
[email protected] :linghengqian/hive-server2-jdbc-driver.git
53
+ cd ./hive-server2-jdbc-driver/
54
+ ./mvnw clean test
55
+ ```
56
+
57
+ ### How to publish via the central portal
58
+
59
+ First set up GPG. Take Ubuntu WSL 22.04.4 as an example.
60
+ Take Ubuntu WSL 22.04.4 as an example and provide your real name and email address.
61
+
62
+ ``` shell
63
+ gpg --gen-key
64
+ gpg --list-keys
65
+ gpg --keyserver keyserver.ubuntu.com --send-keys {Aloha, your keyid}
66
+ ```
67
+
68
+ According to https://central.sonatype.org/publish/publish-portal-maven/#credentials ,
69
+ use the following command to change the content of ` ~/.m2/setting.xml ` .
70
+
71
+ ``` shell
72
+ sudo apt install gnome-text-editor gimp vlc nautilus x11-apps -y
73
+ gnome-text-editor ~ /.m2/setting.xml
74
+ ```
75
+
76
+ ``` xml
77
+ <settings >
78
+ <servers >
79
+ <server >
80
+ <id >central</id >
81
+ <username ><!-- your token username --> </username >
82
+ <password ><!-- your token password --> </password >
83
+ </server >
84
+ </servers >
85
+ </settings >
86
+ ```
87
+
88
+ Then execute the following command.
89
+
90
+ ``` shell
91
+ sdk use java 8.0.422-tem
92
+ git clone
[email protected] :apache/hive.git
93
+ cd ./hive/
94
+ git reset --hard b09d76e68bfba6be19733d864b3207f95265d11f
95
+ mvn clean install -DskipTests
96
+ cd ../
97
+ git clone
[email protected] :linghengqian/hive-server2-jdbc-driver.git
98
+ cd ./hive-server2-jdbc-driver/
99
+ ./mvnw -Ppublishing-via-the-central-portal -DskipTests clean deploy
100
+ ```
0 commit comments