You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which overrides micronaut-http-client dependency with runtime scope that comes via micronaut-oraclecloud-httpclient-netty, so the application fails to start with the following exception
Caused by: java.lang.ClassNotFoundException: io.micronaut.http.client.HttpClient
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 57 common frames omitted
Task List
Steps to reproduce provided
Stacktrace (if present) provided
Example that reproduces the problem uploaded to Github
Full description of the issue provided (see below)
Description
Micronaut launcher generates a maven project with the following dependency
which overrides
micronaut-http-client
dependency withruntime
scope that comes viamicronaut-oraclecloud-httpclient-netty
, so the application fails to start with the following exceptionTask List
Steps to Reproduce
The error can be reproduced using the following project: https://github.com/msupic/maven-http-client-bug or by executing the following steps
oracle-cloud-sdk
feature using the Micronaut Launch pageExpected Behaviour
The application should be successfully started
Actual Behaviour
The application fails to start
If
micronaut-http-client
dependency with thetest
scope is removed, the app is successfully started.Environment Information
Example Application
https://github.com/msupic/maven-http-client-bug
The text was updated successfully, but these errors were encountered: