Coder Social home page Coder Social logo

[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 about opentelemetry-java-contrib HOT 5 CLOSED

open-telemetry avatar open-telemetry commented on August 15, 2024
[maven-extension] Failure using the Otel Maven extension declared as an `` in `pom.xml` because the `pom.xml` of the Otel Maven extension lists dependencies even though they are bundled

from opentelemetry-java-contrib.

Comments (5)

cyrille-leclerc avatar cyrille-leclerc commented on August 15, 2024

The problem seems to be the collaboration between the Gradle Shadow Plugin and the Gradle Maven Publish plugin.
We expect the Maven Publish plugin to not add as dependencies in pom.xml the dependencies that have been added to the "uber jar" by the Shadow 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

When configuring publishing with the Shadow plugin, the dependencies in the shadow configuration, are translated to become RUNTIME scoped dependencies of the published artifact.

from opentelemetry-java-contrib.

cyrille-leclerc avatar cyrille-leclerc commented on August 15, 2024

Fixed by

@anuraaga @trask could we consider cutting a 1.6.1 release to ship the fix of this bug of the Otel Maven Extension?

from opentelemetry-java-contrib.

trask avatar trask commented on August 15, 2024

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)

from opentelemetry-java-contrib.

cyrille-leclerc avatar cyrille-leclerc commented on August 15, 2024

Thanks for the explanation, it's perfect for me.

from opentelemetry-java-contrib.

cyrille-leclerc avatar cyrille-leclerc commented on August 15, 2024

Problem fixed in 1.7.0-alpha

from opentelemetry-java-contrib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.