Sorry,
I never encountered this kind of message so I assumed it had to be related to something specific of ZAP, my bad, I will list you the errors during the copyzapaddon task:
error: warnings found and -Werror specified
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':addOns:migt:compileJava'.
> Compilation failed; see the compiler output below.
C:\Users\Utente\Desktop\ZAP IntelliJ\zap-extensions\addOns\migt\src\main\java\org\zaproxy\addon\migt\ParsingException.java:4: warning: [serial] serializable class ParsingException has no definition of serialVersionUID
public class ParsingException extends Exception {
^
1 error
11 warnings
* Try:
> Run with --scan to get full insights.
It seems to found some warnings, and because of them it stop and returns an error. When compiling the project standalone I don't have any problems and the addon loads and work.
Regards