An example how to run H2 TCP Server by using Maven ang Gradle build tools
see build.gradle.kts and settings.gradle.kts files
gradle copy h2
# gradle copy ; java -cp ./build/lib/*.jar org.h2.tools.Server -tcp -tcpAllowOthers -ifNotExists -web -webAllowOthers -baseDir ./build/
see pom.xml file
mvn dependency:copy exec:exec
# mvn dependency:copy ; java -cp ./target/lib/*.jar org.h2.tools.Server -tcp -tcpAllowOthers -ifNotExists -web -webAllowOthers -baseDir ./target/
See H2 Dockerfile for the reference
NOTE: This project has been based on GitHub: daggerok/main-starter