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
While using apicurio-registry-maven-plugin maven plugin with register goal, it fails with 405 response code while it should return 404 - as the OpenApi is for the first time registered.
Exactly same file (swagger.json) can be successfully added via UI.
Here is complete info from maven build
[INFO] --- apicurio-registry-maven-plugin:1.2.2.Final:register (default) @ individual-product-service ---
jul 06, 2020 9:40:13 FM org.jboss.resteasy.microprofile.client.ProxyInvocationHandler getBeanManager
WARN: CDI container is not available - interceptor bindings declared on ArtifactsResource will be ignored
[ERROR] Exception while registering id [product-info-api]
java.lang.IllegalStateException: Error [Unknown error, status code 405] retrieving artifact: product-info-api
at io.apicurio.registry.maven.RegisterRegistryMojo.register (RegisterRegistryMojo.java:58)
at io.apicurio.registry.maven.RegisterRegistryMojo.executeInternal (RegisterRegistryMojo.java:82)
at io.apicurio.registry.maven.AbstractRegistryMojo.execute (AbstractRegistryMojo.java:58)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
In addition, I tried to register it first so it will only update it but it fails exactly the same way.
I use locally deployed apicurio-registry as runner jar.
The text was updated successfully, but these errors were encountered:
Glad you figured this out. @smccarthy-ie I assume the link above is to the Tech Preview documentation? If yes, then that URL was correct at the time but was changed from the TP to the GA release.
While using apicurio-registry-maven-plugin maven plugin with register goal, it fails with 405 response code while it should return 404 - as the OpenApi is for the first time registered.
Here is a plugin configuration
Exactly same file (swagger.json) can be successfully added via UI.
Here is complete info from maven build
In addition, I tried to register it first so it will only update it but it fails exactly the same way.
I use locally deployed apicurio-registry as runner jar.
The text was updated successfully, but these errors were encountered: