Previous hack for gems didn't work
Weirdly enough, it seems to work ... well, excepted for releases, where
[INFO] WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.getConstantPool()
[INFO] WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.getEnumConstantsShared()
[INFO] WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.casAnnotationType(sun.reflect.annotation.AnnotationType,sun.reflect.annotation.AnnotationType)
[INFO] WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.getAnnotationType()
[INFO] WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.getDeclaredAnnotationMap()
[INFO] ERROR: While executing gem ... (Errno::ESRCH)
[INFO] No such process - No message available
[INFO]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Reactor Summary for Aadarchi : root POM 0.1.2:
[INFO] [INFO]
[INFO] [INFO] Aadarchi : root POM ................................ SUCCESS [ 5.641 s]
[INFO] [INFO] Aadarchi : CDI Config extension .................... SUCCESS [ 9.342 s]
[INFO] [INFO] Markdown to Asciidoc converter ..................... SUCCESS [ 10.068 s]
[INFO] [INFO] Aadarchi : Base module ............................. SUCCESS [ 9.535 s]
[INFO] [INFO] Aadarchi : GitHub SCM handler ...................... SUCCESS [ 7.387 s]
[INFO] [INFO] Aadarchi : Gitlab SCM Handler ...................... SUCCESS [ 8.465 s]
[INFO] [INFO] Aadarchi : ADR ticket extractor .................... SUCCESS [ 8.256 s]
[INFO] [INFO] Aadarchi : Structurizr components detector ......... SUCCESS [ 8.078 s]
[INFO] [INFO] Aadarchi : CDI in Maven helper ..................... SUCCESS [ 8.191 s]
[INFO] [INFO] Aadarchi : Maven metadata inferer .................. SUCCESS [ 10.479 s]
[INFO] [INFO] Aadarchi : Maven plugin ............................ FAILURE [ 11.523 s]
[INFO] [INFO] Aadarchi : System documentation generator .......... SKIPPED
[INFO] [INFO] Aadarchi : Spring components detector .............. SKIPPED
[INFO] [INFO] Aadarchi : Sequence diagram generator .............. SKIPPED
[INFO] [INFO] Aadarchi : Archetype ............................... SKIPPED
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 01:38 min
[INFO] [INFO] Finished at: 2022-10-03T19:02:07+02:00
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] Failed to execute goal de.saumya.mojo:gem-maven-plugin:2.0.1:initialize (install-gems) on project aadarchi-maven-plugin: Execution install-gems of goal de.saumya.mojo:gem-maven-plugin:2.0.1:initialize failed: Java returned: 1 -> [Help 1]
[INFO] [ERROR]
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[INFO] [ERROR]
[INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[INFO] [ERROR]
[INFO] [ERROR] After correcting the problems, you can resume the build with the command
[INFO] [ERROR] mvn <args> -rf :aadarchi-maven-plugin
[INFO] ------------------------------------------------------------
I guess there maybe a way to turn around that one by providing a custom pom for release profile ... but I have to check that first.