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