You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Markus Rathgeb <ma...@gmail.com> on 2020/02/03 12:23:43 UTC

Re: Karaf 4.2.7 and PaxLogging/Knopflerfish

Hi,

shouldn't this be solved with Karaf 4.2.8?
Becuase of https://issues.apache.org/jira/projects/KARAF/issues/KARAF-6462?filter=allissues
I removed

<exclusions>
  <exclusion>
    <groupId>org.knopflerfish.kf6</groupId>
    <artifactId>log-API</artifactId>
  </exclusion>
</exclusions>

from my pom files after updating from 4.2.7 to 4.2.8.

Today I need to build a release.
I tried to trigger a Maven release of my custom distribution, that
also brings custom features and bundles.

The release build fails because of:

[INFO] [ERROR] Failed to execute goal on project runtime: Could not
resolve dependencies for project
my-group-id:my-artifact-id-of-a-feature:feature:x.y.z: Failed to
collect dependencies at
org.ops4j.pax.jdbc:pax-jdbc-features:xml:features:1.4.4 ->
org.apache.karaf.features:framework:kar:4.2.7 ->
org.ops4j.pax.logging:pax-logging-log4j2:jar:1.11.2 ->
org.knopflerfish.kf6:log-API:jar:5.0.0: Failed to read artifact
descriptor for org.knopflerfish.kf6:log-API:jar:5.0.0: Could not
transfer artifact org.knopflerfish.kf6:log-API:pom:5.0.0 from/to ...

Karaf 4.2.8 is using the Pax JDBC 1.4.4 feature.
Pax JDBC seems to depend on the 4.2.7 framework kar but misses the exclusion...

So it seems we need this exclusion also while using Karaf 4.2.8
(otherwise Karaf would need to add this exclusion while depending on
dependencies that brings it into the dependency chain again).

Best regards,
Markus