Apache Karaf 4.3.0 dans Windows 10. J'essaie d'installer une fonctionnalité et j'ai l'erreur ci-dessous, quelqu'un pourrait-il m'aider à trouver ce qui pourrait causer cette erreur. Il sort également de la coque. Après cela, si je recommence, j'obtiens la même erreur et je m'arrête.

...\apache-karaf-4.3.0\bin>karaf
karaf.bat: Ignoring predefined value for KARAF_HOME
karaf.bat: KARAF_LOG doesn't exist: "...\sw\apache-karaf-4.3.0\bin\..\data\log"
karaf.bat: Creating "...\sw\apache-karaf-4.3.0\bin\..\data\log"
karaf.bat: JAVA_HOME not set; results may vary


  Apache Karaf (4.3.0)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()> feature:repo-add mvn:org.apache.karaf.examples/karaf-blueprint-example-features/LATEST/xml
Adding feature url mvn:org.apache.karaf.examples/karaf-blueprint-example-features/LATEST/xml
karaf@root()> feature:install karaf-blueprint-example-provider
Error executing command: Method org/apache/karaf/shell/impl/console/JLineTerminal.getPalette()Lorg/jline/utils/ColorPalette; is abstract
1
user15217367 16 févr. 2021 à 04:44

1 réponse

Meilleure réponse

Selon https://issues.apache.org/jira/browse/KARAF-6996 < / a> vous pouvez essayer d'ajouter les référentiels Karaf 4.3.1-SNAPSHOT aux référentiels sur liste noire.

Ajoutez simplement etc/org.apache.karaf.features.xml contenant:

<?xml version="1.0" encoding="UTF-8"?>
<featuresProcessing xmlns="http://karaf.apache.org/xmlns/features-processing/v1.0.0">

    <!--
        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.
    -->

    <blacklistedRepositories>
        <repository>mvn:org.apache.karaf.features/framework/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/standard/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise-legacy/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring-legacy/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/framework/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/standard/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise-legacy/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring-legacy/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/framework/4.3.0.RC1/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/standard/4.3.0.RC1/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise/4.3.0.RC1/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise-legacy/4.3.0.RC1/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring/4.3.0.RC1/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring-legacy/4.3.0.RC1/xml/features</repository>
    </blacklistedRepositories>

</featuresProcessing> 

Cela a fonctionné pour moi.

0
Michael Brohl 7 mars 2021 à 00:02