Problem with code bundle component on instance restarts, but the component works when package imports are refreshed or code is redeployed
AEM 6.5 SP13
We have a code bundle with a search component that is in a failed state when the instance is restarted.
Looking around /system/console we see what looks like a conflict with jersey client / jersey core libraries when it's broken (i.e. after instance is restarted).
So far, I have discovered 2 scenarios that seem to fix the issue once the instance has been restarted and the search is broken:
1) If we redeploy the code with mvn clean install -P deploy profile, the search component is fixed
2) If within the /system/console I select the "refresh package imports" button for this bundle, the problem also almost always resolves
Is it possible to refresh package imports for a bundle via cURL?
I imagine the number of the bundle could change making this more difficult that it might already be.
Thanks for any help!