Fraction detection mode
Swarm Maven plugin can work in different fraction detection modes. If you do not provide fraction dependencies manually, it runs in the when-missing mode. We have already seen the behavior of this mode in our previous examples: when no direct fraction dependency is provided, the plugin performs auto-detection. On the other hand, if we provide at least one fraction dependency manually, the auto-detection mode is turned off. This is the reason why our last example wasn't built with the CDI fraction included: adding the JAX-RS fraction manually turned auto-detection off.
Is there something we can do about it? Yup, we can use a different detection mode: force. This mode makes auto-detection work every time. After detecting ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access