Current weld version (3.1.1) has WELD-2662  bug, which causes an illegal access which prevents tests executions in JDK16+ due to an stronger encapsulation implemented by JEP 396 .
It gets fixed by updating weld: 3.1.1 -> 3.1.7
Note the following transitive dependencies are not included:
- weld-probe-core: it is a tool for developers
- jboss-el-api: not required (inclued in src-test as a dependency for arquillian).
- jboss-logging: included in core's lib/runtime as Hibernate dependency