-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Maven Profile for initial generation of GraalVM Reachability Meta…
…data JSON
- Loading branch information
1 parent
99709ac
commit 2e960f8
Showing
4 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,17 @@ sdk use java 22.0.2-graalce | |
./mvnw -T 1.5C clean test | ||
``` | ||
|
||
### How to initially generate the JSON for GraalVM Reachability Metadata | ||
|
||
- Execute the following command. | ||
|
||
```shell | ||
git clone [email protected]:linghengqian/hive-server2-jdbc-driver.git -b add-agent | ||
cd ./hive-server2-jdbc-driver/ | ||
sdk use java 22.0.2-graalce | ||
./mvnw -PgenerateMetadata -DskipNativeTests clean test native:metadata-copy | ||
``` | ||
|
||
### How to nativeTest under GraalVM Native Image | ||
|
||
- Execute the following command. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"rules": [ | ||
{"includeClasses": "**"}, | ||
|
||
{"excludeClasses": "io.github.linghengqian.hive.server2.jdbc.driver.**"} | ||
], | ||
"regexRules": [ | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"rules": [ | ||
{"excludeClasses": "**"}, | ||
{"includeClasses": "org.apache.hive.**"} | ||
], | ||
"regexRules": [ | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters