Feature not loading anymore

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Feature not loading anymore

Matthias
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Feature not loading anymore

jbonofre
Hi

What?s the output of feature:install -v -t ?

Regards 
JB

Le dim. 16 f?vr. 2020 ? 13:14, Matthias <[hidden email]> a ?crit :
Hi,

since months i am using karaf 4.2.5 - 4.2.8. Now - sowhow - i can't load my
own features anymore. I change nothing in the code sinced it worked the last
time ! I not can even rin "mvn clean install" because the integrations tests
fail (in reason of unloadable features):

PLEASE HELP.

Normally i start it with

feature:install
mvn:org.rogatio.circlead.sunray/circlead-core-features/LATEST/xml

The pom is

<?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">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.rogatio.circlead.sunray</groupId>
<artifactId>circlead-core</artifactId>
<version>0.7.16-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>circlead-core-features</artifactId>
<name>Circlead :: Core :: Features</name>
<packaging>pom</packaging>
<description>
Provides the circlead core-feature for karaf. Installs all artefacts
circlead-core-*

INSTALLATION NOTICE:
karaf@root> feature:repo-add
mvn:org.rogatio.circlead.sunray/circlead-core-features/LATEST/xml
karaf@root> feature:install circlead-core
</description>

<build>
<resources>
<resource>
<directory>src/main/feature</directory>
<filtering>true</filtering>
<targetPath>${project.build.directory}/feature</targetPath>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>resources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven-plugin.version}</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>target/feature/feature.xml</file>
<type>xml</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>


the feature.xml is

<?xml version="1.0" encoding="UTF-8"?>

<features name="circlead-core-${project.version}"
xmlns="http://karaf.apache.org/xmlns/features/v1.4.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.4.0">

<feature name="circlead-core-common" version="${project.version}">

<bundle>mvn:org.rogatio.circlead.sunray/circlead-core-api/${project.version}</bundle>
</feature>


<feature name="circlead-core-log" version="${project.version}">
<feature version="${project.version}">circlead-core-common</feature>
<feature prerequisite="true">scr</feature>

<bundle>mvn:org.rogatio.circlead.sunray/circlead-core-log/${project.version}</bundle>
</feature>

<feature name="circlead-core-util" version="${project.version}">
<feature version="${project.version}">circlead-core-log</feature>

<bundle>mvn:org.rogatio.circlead.sunray/circlead-core-util/${project.version}</bundle>
</feature>

<feature name="circlead-core-config" version="${project.version}">
<feature version="${project.version}">circlead-core-util</feature>

<bundle>mvn:org.rogatio.circlead.sunray/circlead-core-config/${project.version}</bundle>
</feature>

<feature name="circlead-core-provider" version="${project.version}">
<feature version="${project.version}">circlead-core-config</feature>

<bundle>mvn:org.rogatio.circlead.sunray/circlead-core-provider/${project.version}</bundle>

<bundle>mvn:org.rogatio.circlead.sunray/circlead-synchronizer-memory/${project.version}</bundle>
</feature>

<feature name="circlead-core" version="${project.version}">
<feature
version="${project.version}">circlead-core-provider</feature>
<conditional>
<condition>shell</condition>

<bundle>mvn:org.rogatio.circlead.sunray/circlead-core-command/${project.version}</bundle>
</conditional>
</feature>

</features>





--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html