plsql-formatter-settings: Building native image on Windows 11 - mvn failure
I have followed your instructions for building native image but when running it on Windows 11 platform I face some issues,
I run the command from windows CMD.
C:\Users\JacekGebal\DataGripProjects\plsql-formatter-settings\standalone>mvn -X -Dskip.native=false -DskipTests=true -Ddisable.logging=true clean package > clean_package.log
See the clean_package.log file for full log.
The error is:
Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 109: C:\Users\JacekGebal\DataGripProjects\plsql-formatter-settings\standalone\target/tvdformat-22.2.2-SNAPSHOT.jar:C:\Users\JacekGebal\.m2\repository/oracle/dbtools/dbtools-common/22.2.1/dbtools-common-22.2.1.jar:C:\Users\JacekGebal\.m2\repository/org/reflections/reflections/0.10.2/reflections-0.10.2.jar:C:\Users\JacekGebal\.m2\repository/org/javassist/javassist/3.29.0-GA/javassist-3.29.0-GA.jar:C:\Users\JacekGebal\.m2\repository/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar:C:\Users\JacekGebal\.m2\repository/org/slf4j/slf4j-jdk14/1.7.36/slf4j-jdk14-1.7.36.jar:C:\Users\JacekGebal\.m2\repository/org/graalvm/js/js-scriptengine/22.2.0/js-scriptengine-22.2.0.jar
It could be due to a mix of windows style \ and linux/mac style / path delimiters in the path as mentioned here
Do you have any suggestion on how to solve this?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (5 by maintainers)
https://github.com/Trivadis/plsql-formatter-settings/blob/sqlcl-22.2.1/standalone/src/main/resources/format.js is a symbolic link.
Should work under Windows. But not per default. See https://github.com/git-for-windows/git/wiki/Symbolic-Links for more information.
I’ve run
git clone -c core.symlinks=true https://github.com/Trivadis/plsql-formatter-settings.gitas Administrator in a command window. Works.Yes. It should work out-of-the box.
And it actually formats.
The start-up speed is amazing!
Not it can be used as a pre-commit hook actually.
Looks like comma (
,) works The <classpath> property is defined as java.util.List(String)