Ok. I copied JAR dependencies from WEB-INF/lib to the module.
Since this JAR is not required, it will be interested to no have this transitive dependency by default.
WDYT about that :
- create 2 maven modules : asciidoctorj-core and asciidoctorj-cli
- asciidoctorj-cli depends on asciidoctorj-core
- asciidoctorj-core would be the dependency for WAR/EAR application
- asciidoctorj-cli would be built with maven-shade-plugin in order to include asciidoctorj-core classes and so to have only one standalone JAR
- the specific configuration in pom.xml for the cli (I mean Manifest entries) would no longer be a problem for EAR/WAR classloader