-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[opentelemetry-maven-extension] NoClassDefFoundError while running package #1391
Comments
Sorry for the regression. @vicziani A workaround is to declare the Maven OpenTelemetry Extension through
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
<extension>
<groupId>io.opentelemetry.contrib</groupId>
<artifactId>opentelemetry-maven-extension</artifactId>
<version>1.37.0-alpha</version>
</extension>
</extensions> The cause may be the adoption of JSR 330 in replacement to the deprecated Nexus DI mechanisms: Environment to reproduce:
|
@hboutemy FYI I created MNG-8217 - |
Component(s)
maven-extension
What happened?
Description
Maven throws a NoClassDefFoundError while running package. No trace in Zipkin.
Windows 11, Java version "21.0.1" 2023-10-17 LTS, Maven 3.9.8, extension 1.37.0-alpha.
Same in1.36.0-alpha.
It works with 1.35.0-alpha (it sends an exception, but there is a trace in Zipkin).
Steps to Reproduce
Use an empty project with only a
pom.xml
file.Expected Result
Succesfull build without exception, and trace in Zipkin.
Actual Result
Exception, no trace in Zipkin.
Component version
1.37.0-alpha
Log output
Additional context
docker-compose.yaml
collector-config.yaml
The text was updated successfully, but these errors were encountered: