Open jjiwooLim opened 2 years ago
I thought this was a limitation of the Open Liberty runtime. Does the runtime support this?
@scottkurz It looks like the install-feature
goal gets the list of server.xml
features from ServerFeatureUtil. getServerFeatures() and send the list to the OL runtime.
@scottkurz It looks like the
install-feature
goal gets the list ofserver.xml
features from ServerFeatureUtil. getServerFeatures() and send the list to the OL runtime.
I didn't realize the variable in this place was substituted by plugin code. Still, though, even if we were to fix the plugin here, the OL runtime still wouldn't be able to handle this server.xml, IIUC. So is it worth fixing then?
@jjiwooLim I don't think the liberty runtime supports variables in the server.xml <feature>
element. This seems like a very odd use case. Can we close this issue?
Hmm...I wonder if there's anything more to say here.
From the runtime perspective, I think I made a mistake in testing to claim the substitution couldn't be done via bootstrap.properties. It seems to even work when substituting with a variable in the configDropins overrides.
However when I tried running through LMP it didn't work. Need to investigate more.
https://github.com/OpenLiberty/ci.maven/issues/1530#issuecomment-1152552628 Use of variables in the server.xml like
<feature>${it.feature}</feature>
cannot be resolved withinstall-feature
goal. User declared the variable using the Maven propertyliberty.var.{var}