Hi Erwin,

It depends of your project packaging and classifier.

In the example, I attach the artifact without classifier, whereas we use 
classifier in "core" Karaf features repo.

Check if you have a classifier -features defined. Don’t hesitate to ping me or 
share your pom.xml, I will take a look.

Regards
JB

> Le 25 janv. 2021 à 02:42, Erwin Hogeweg <[email protected]> a écrit :
> 
> Hi,
> 
> For some reason is the file name format of the installed features.xml file in 
> my environment different from the ’standard’ and as a result the file cannot 
> be found by feature:repo-add.
> 
> I expect the name to be in the format: <feature-name>-<version>-features.xml 
> but in my build the '.features’ suffix is missing.
> 
> I have looked at the 4.3.0 assemblies and code examples and as far as I can 
> see my feature.xml and the pom.xml are functional identical to the examples. 
> When I build the 4.3.0 source the features DO have the .features part.
> 
> I am obviously missing something which is probably staring me right in the 
> face, but after spending a good few hours looking for it I decided that I 
> must have a pretty big blind spot :-)
> 
> Below the maven log for the feature installation part.
> 
>       [INFO] --- maven-install-plugin:3.0.0-M1:install (default-install) @ 
> my-features —
>       ...
>       [INFO] Installing 
> /Users/erwin/work/my-server/src/server/karaf.feature/target/feature/feature.xml
>  to    
> /Users/erwin/.m2/repository/com/xyz/my/server/my-features/1.0.0-SNAPSHOT/my-features-1.0.0-SNAPSHOT.xml
> 
> Expected:
> 
>       …. /my-features-1.0.0-SNAPSHOT-features.xml
> 
> 
> MacOS Big Sur
> Java11
> Karaf-4.3.0
> 
> Any help is greatly appreciated.
> 
> 
> Cheers,
> 
> Erwin

Reply via email to