This is an automated email from the ASF dual-hosted git repository.
hello-stephen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new bb512df16f4 [doc](fe-sql-parser) Fix CLI jar name and Java version in
README (#68459)
bb512df16f4 is described below
commit bb512df16f45b375134dd0626cef0aeb0789fad2
Author: Zain Qureshi <[email protected]>
AuthorDate: Thu Sep 24 04:33:25 2026 +0200
[doc](fe-sql-parser) Fix CLI jar name and Java version in README (#68459)
Issue Number: None
Related PR: None
Problem Summary:
`fe/fe-sql-parser/README.md` names the CLI jar
`fe-sql-parser-1.2-SNAPSHOT-cli.jar`, but `fe-sql-parser/pom.xml` sets
`<finalName>doris-fe-sql-parser</finalName>` and its own comment says
the build produces `target/doris-fe-sql-parser-cli.jar`. So the
documented `java -jar` commands fail with "Unable to access jarfile"
after a successful build. The README also says the jar runs on JRE 8+,
but `fe/pom.xml` compiles with `maven.compiler.source/target` 17, so
anything below Java 17 gets an UnsupportedClassVersionError.
This fixes the four jar-name references and the Java version.
Prepared with AI assistance: Claude Code (Claude Opus 5.5) and Codex
(gpt-5.6-sol) found and checked it against the code; I reviewed the
change.
---
fe/fe-sql-parser/README.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/fe/fe-sql-parser/README.md b/fe/fe-sql-parser/README.md
index afc3dd8fa4e..e8a79450c5c 100644
--- a/fe/fe-sql-parser/README.md
+++ b/fe/fe-sql-parser/README.md
@@ -90,11 +90,11 @@ The `flatten` profile is required so the installed POM has
`${revision}` resolve
mvn -pl fe-sql-parser -Pcli package -DskipTests
```
-Output: `fe/fe-sql-parser/target/fe-sql-parser-1.2-SNAPSHOT-cli.jar` (~1.7 MB).
+Output: `fe/fe-sql-parser/target/doris-fe-sql-parser-cli.jar` (~1.7 MB).
This is a self-contained executable jar produced by `maven-shade-plugin`:
-- Bundles `antlr4-runtime` so the jar runs anywhere with a JRE 8+
+- Bundles `antlr4-runtime` so the jar runs anywhere with a JRE 17+
- Manifest sets `Main-Class: org.apache.doris.sqlparser.DorisSqlParserCli`
- `<minimizeJar>true</minimizeJar>` strips unused classes
(transitively-inherited logging, test utilities, etc.) so the final jar
contains only the parser plus its actual reachable dependencies
@@ -103,7 +103,7 @@ The CLI profile is gated so default Doris builds do not pay
the shading cost. Th
## CLI Usage
```
-java -jar fe-sql-parser-1.2-SNAPSHOT-cli.jar [OPTIONS] [SQL]
+java -jar doris-fe-sql-parser-cli.jar [OPTIONS] [SQL]
```
### Input sources (mutually exclusive)
@@ -220,7 +220,7 @@ For frequent use, drop a wrapper on your `PATH`:
```bash
# ~/bin/doris-sql-parse
#!/usr/bin/env bash
-exec java -jar /path/to/fe-sql-parser-1.2-SNAPSHOT-cli.jar "$@"
+exec java -jar /path/to/doris-fe-sql-parser-cli.jar "$@"
```
```bash
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]