Open ikonkere opened 5 years ago
It isn't currently possible to install custom features using the Liberty maven plugin. This is something we want to address, but haven't been able to so far. It might be possible to manually install it by copying the SUBSYSTEM.MF
to the usr/extension/lib/features
folder (I'd recommend renaming it to be com.acme.mycompany.test-feature-1.0.0.mf
) and putting the jar file into usr/extension/lib
I vote for custom feature support in the maven plugin ....
There has been no progress for more than a year on this somewhat major enhancement that is also quite trivial to implement. I don't see it done any time soon or most probably not at all due to IBM's paradigm shift. WAS/Liberty is clearly legacy and nobody's been using it for anything for some time now.
Hi,
any updates on this issue?
Hello. I stumbled on this, and think this blog post has instructions for doing what you want: https://openliberty.io/blog/2022/07/06/user-feature-install.html
We try to install a custom OL feature that we built and packaged as ESA with OSGI-INF/SUBSYSTEM.MF present, but we get the following error during Maven build:
[ERROR] Failed to execute goal net.wasdev.wlp.maven.plugins:liberty-maven-plugin:2.7:install-feature (install-feature) on project : com.ibm.ws.install.InstallException: CWWKF1299E: The following features could not be obtained: servlet-4.0 test-feature jaxrs-2.1. Ensure that the features are valid for Open Liberty. -> [Help 1]
I've studied lots of manuals on the internet about custom OL features and i'm at a loss with this one, what do i miss in my feature?
SUBSYSTEM.MF of the feature:
pom.xml of the app: