Maven compilation error: package does not exist

Maven compilation error: package does not exist

When building a multi-module Maven project, everything works fine for the first two modules, but compilation fails for module 3 with errors like: [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR]…