Hello to all,

I have a 300+ java modules [0] which takes about 2 min to build without
tests.  The build randomly failing once a while(%5) where I am able to
chase it to the root cause mentioned in the title

Further guessing[2] takes me to the removal of one module which
uses openapi-generator-maven-plugin-4.3.1[1] and the issue completely
disappears.

Looking at the plugin source, iI could not figure out anything standing out.

Looking for more set of eyes to see if that plugin is thread-safe

Appreciate all advice and helps

-D

[0] error is reproducible with maven 3.6.3 and latest 3.7.0-SNAPSHOT

[1]
https://github.com/OpenAPITools/openapi-generator/blob/v4.3.1/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java

[2] I used to face this type of issue before where a none threadsafe plugin
can corrupted classpath in reactor mode ( for example:
build-number-maven-plugin)

Reply via email to