Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6462

Unresolvable dependency to org.knopflerfish.kf6:log-API:jar:5.0.0 using karaf-maven-plugin:

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.2.7
    • 4.3.0, 4.2.8
    • None
    • None

    Description

      Building a custom Karaf 4.2.7 dist. using karaf maven plugin results in an error as dependency

      [ERROR] Failed to execute goal on project karaf-maven-example-assembly: Could not resolve dependencies for project karaf-demo:karaf-assembly-demo:1: Failed to collect dependencies at 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
      

      Artifact org.knopflerfish.kf6:log-API:jar does not exist in version 5.0.0. Dependency is delcared in org.ops4j.pax.logging:pax-logging-log4j2:jar:1.11.2.

      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns="http://maven.apache.org/POM/4.0.0"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
      
          <!--
      
              Licensed to the Apache Software Foundation (ASF) under one or more
              contributor license agreements.  See the NOTICE file distributed with
              this work for additional information regarding copyright ownership.
              The ASF licenses this file to You under the Apache License, Version 2.0
              (the "License"); you may not use this file except in compliance with
              the License.  You may obtain a copy of the License at
      
                 http://www.apache.org/licenses/LICENSE-2.0
      
              Unless required by applicable law or agreed to in writing, software
              distributed under the License is distributed on an "AS IS" BASIS,
              WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
              See the License for the specific language governing permissions and
              limitations under the License.
          -->
      
          <modelVersion>4.0.0</modelVersion>
      
          <groupId>karaf-demo</groupId>
          <version>0.0.1-SNAPSHOT</version>
          <artifactId>karaf-assembly-demo</artifactId>
          <name>Apache Karaf :: Examples :: Maven :: Assembly</name>
          <packaging>karaf-assembly</packaging>
      
          <dependencies>
              <dependency>
                  <groupId>org.apache.karaf.features</groupId>
                  <artifactId>framework</artifactId>
                    <version>4.2.7</version>
                  <type>kar</type>
              </dependency>
              <dependency>
                  <groupId>org.apache.karaf.features</groupId>
                  <artifactId>standard</artifactId>
                    <version>4.2.7</version>
                  <classifier>features</classifier>
                  <type>xml</type>
                  <scope>compile</scope>
              </dependency>
          </dependencies>
      
          <build>
              <plugins>
                  <plugin>
                      <groupId>org.apache.karaf.tooling</groupId>
                      <artifactId>karaf-maven-plugin</artifactId>
                      <version>4.2.7</version>
                      <extensions>true</extensions>
                      <configuration>
                          <finalName>${project.artifactId}</finalName>
                          <bootFeatures>
                              <feature>standard</feature>
                              <feature>bundle</feature>
                              <feature>config</feature>
                              <feature>diagnostic</feature>
                              <feature>feature</feature>
                              <feature>shell</feature>
                              <feature>log</feature>
                              <feature>management</feature>
                              <feature>package</feature>
                              <feature>shell-compat</feature>
                              <feature>ssh</feature>
                              <feature>system</feature>
                              <feature>wrap</feature>
      
                              <feature>http-whiteboard</feature>
                              <feature>deployer</feature>
                              <feature>service</feature>
                              <feature>kar</feature>
                              <feature>scr</feature>
                              <feature>aries-blueprint</feature>
                              <feature>eventadmin</feature>
                          </bootFeatures>
                          <archiveZip>false</archiveZip>
                      </configuration>
                  </plugin>
              </plugins>
          </build>
      </project>
      

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            timo.e.aus.e Timo E aus E
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: