Solving java.net.MalformedURLException Error During Quarkus Native Image Build
Solving the MalformedURLException exception:
java.net.MalformedURLException: Accessing an URL protocol that was not enabled. The URL protocol https is supported but not enabled by default. It must be enabled by adding the --enable-url-protocols=https option to the native-image command.
When this issue occurs, you might be tempted to add --enable-url-protocols=http directly to the GraalVM plugin, but that's actually wrong. You just need to add quarkus.ssl.native=true to Quarkus's application.properties.
Then run mvn clean -DskipTests package -Pnative and the resulting executable will be able to access https content.
Official solution here: https://cn.quarkus.io/guides/native-and-ssl