I'm doing a small project to learn swagger-codegen. When I'm executing "mvn clean install" the next errors appear:
Unable to make public boolean java.util.Collections$EmptyMap.isEmpty() accessible: module java.base does not "opens java.util" to unnamed module @1e1b061
and then
Failed to execute goal io.swagger.codegen.v3:swagger-codegen-maven-plugin:3.0.18:generate (default) on project swgtst-api: Code generation failed. See above for the full exception.
When i'm trying to solve it with java --add-opens=java.base/java.util=ALL-UNNAMED
as written here https://docs.oracle.com/javase/9/migrate/toc.htm#JSMIG-GUID-2F61F3A9-0979-46A4-8B49-325BA0EE8B66
Nothing happens, just java help is shown.
For sure the last command has problem with syntax, but I have no Idea what exactly... What am I doing wrong?