1. Add the dependency
<!-- pom.xml -->
<repositories>
<repository>
<id>gudusoft</id>
<url>https://www.sqlparser.com/maven/</url>
</repository>
</repositories>
<dependency>
<groupId>com.gudusoft</groupId>
<artifactId>gsqlparser</artifactId>
<version>4.1.6</version>
</dependency>
This is the trial build: it parses statements up to 10,000 characters and
refuses anything longer — fine for individual queries, not for a real stored procedure.
See below for an evaluation build without the limit. Gradle: add
maven { url 'https://www.sqlparser.com/maven/' } and
implementation 'com.gudusoft:gsqlparser:4.1.6'.