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
This isn't directly a Quarkus bug, but the GRPC library it uses in relation to Nexus/Maven.
We use a corporate Nexus proxy of Maven central as well as our internal libraries.
When trying to build with GRPC libraries in Quarkus I got the following error which ultimately caused Nexus to not store the artifact in the repo.
Turning off strict meta/mime-type validation on the Nexus repo fixes it, but it looks like the mimetype of GRPC is incorrect?
I know most people probably don't use a Nexus Proxy and go straight to Maven Central, I just thought I'd bring it up to help those of us that do and save a day of troublshooting like it took me.
org.sonatype.nexus.repository.view.handlers.ExceptionHandler - Invalid content: GET /io/grpc/protoc-gen-grpc-java/1.65.1/protoc-gen-grpc-java-1.65.1-linux-aarch_64.exe: org.sonatype.nexus.repository.InvalidContentException: Detected content type [application/x-sharedlib], but expected [application/x-executable, application/x-dosexec, application/x-msdownload]: io/grpc/protoc-gen-grpc-java/1.65.1/protoc-gen-grpc-java-1.65.1-linux-aarch_64.exe
Expected behavior
Looks like Nexus thinks the mimetype should be one of: expected [application/x-executable, application/x-dosexec, application/x-msdownload]
Actual behavior
It Detected content type [application/x-sharedlib]
How to Reproduce?
Turn on Validation of mimetype for your repository storage for the Maven Central repo and try to build and you should see an error similiar to:
[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:3.17.7:generate-code (default) on project code-with-quarkus-temporal: Quarkus code generation phase has failed: Failed to bootstrap application in NORMAL mode: Failed to resolve artifact io.grpc:protoc-gen-grpc-java:exe:linux-aarch_64:1.65.1: The following artifacts could not be resolved: io.grpc:protoc-gen-grpc-java:exe:linux-aarch_64:1.65.1 (absent): Could not find artifact io.grpc:protoc-gen-grpc-java:exe:linux-aarch_64:1.65.1 in nexus-mirror
Output of uname -a or ver
linux and osX
Output of java -version
No response
Quarkus version or git rev
3.17.5
Build tool (ie. output of mvnw --version or gradlew --version)
maven
Additional information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
This isn't directly a Quarkus bug, but the GRPC library it uses in relation to Nexus/Maven.
We use a corporate Nexus proxy of Maven central as well as our internal libraries.
When trying to build with GRPC libraries in Quarkus I got the following error which ultimately caused Nexus to not store the artifact in the repo.
Turning off
strict
meta/mime-type validation on the Nexus repo fixes it, but it looks like the mimetype of GRPC is incorrect?I know most people probably don't use a Nexus Proxy and go straight to Maven Central, I just thought I'd bring it up to help those of us that do and save a day of troublshooting like it took me.
Expected behavior
Looks like Nexus thinks the mimetype should be one of:
expected [application/x-executable, application/x-dosexec, application/x-msdownload]
Actual behavior
It Detected content type [application/x-sharedlib]
How to Reproduce?
Turn on
Validation of mimetype
for your repository storage for the Maven Central repo and try to build and you should see an error similiar to:Output of
uname -a
orver
linux and osX
Output of
java -version
No response
Quarkus version or git rev
3.17.5
Build tool (ie. output of
mvnw --version
orgradlew --version
)maven
Additional information
No response
The text was updated successfully, but these errors were encountered: