-
Notifications
You must be signed in to change notification settings - Fork 129
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
[maven-extension] Failure using the Otel Maven extension declared as an <extension>
in pom.xml
because the pom.xml
of the Otel Maven extension lists dependencies even though they are bundled
#86
Comments
The problem seems to be the collaboration between the Gradle Shadow Plugin and the Gradle Maven Publish plugin. I didn't find yet a path forward to fix the problem. The cause seems to be related to Gradle Shadow Plugin > Publishing Shadow Jars > Shadow Configuration and Publishing
|
pom.xml
because the pom.xml
of the Maven extension lists dependencies even though they are bundled
pom.xml
because the pom.xml
of the Maven extension lists dependencies even though they are bundled<extension>
in pom.xml
because the pom.xml
of the Maven extension lists dependencies even though they are bundled
<extension>
in pom.xml
because the pom.xml
of the Maven extension lists dependencies even though they are bundled<extension>
in pom.xml
because the pom.xml
of the Otel Maven extension lists dependencies even though they are bundled
hey @cyrille-leclerc! we have an undocumented practice of only patching for regressions, memory leaks and deadlocks (thanks for the reminder tho 😄, documenting that now: https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/4198/files) we can always make exceptions, but try to keep those to a minimum the normal release cadence is monthly, with the Java SDK releasing generally end of the 2nd week of the month, followed "shortly" after by Java Instrumentation and Java Contrib (shortly tends to be a few days to a week) |
Thanks for the explanation, it's perfect for me. |
Problem fixed in 1.7.0-alpha |
Description
Failure using the Maven extension declared as a in
pom.xml
because thepom.xml
of the Maven extension lists dependencies even though they are bundled in the opentelemetry-maven-extension jar (which is a uber-jar).The
pom.xml
ofio.opentelemetry.contrib:opentelemetry-maven-extension:1.6.0-alpha
is wrong as it lists as runtime dependencies the OpenTelemetry and GRPC jars that have been integrated in the opentelemetry-maven-extension jar thanks to the Gradle Shadow Plugin.https://repo1.maven.org/maven2/io/opentelemetry/contrib/opentelemetry-maven-extension/1.6.0-alpha/opentelemetry-maven-extension-1.6.0-alpha.pom
opentelemetry-maven-extension-1.6.0-alpha.pom
Steps to reproduce
Provide a (runnable) recipe for reproducing the error.
Add the
io.opentelemetry.contrib:opentelemetry-maven-extension:1.6.0-alpha
extension to apom.xml
(example here)Run you build
We expect the build to succeed but Maven reports a problem of dependencies of the
io.opentelemetry.contrib:opentelemetry-maven-extension:jar:1.6.0-alpha
extension that should not have any extensionExpectation
The
pom.xml
ofio.opentelemetry.contrib:opentelemetry-maven-extension:jar:1.6.0-alpha
should not list anycompile
orruntime
dependencyWhat applicable config did you use?
N/A
Relevant Environment Information
Version:
io.opentelemetry.contrib:opentelemetry-maven-extension:jar:1.6.0-alpha
, Maven 3.8.2Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: