Failed to execute goal net.sourceforge.czt:maven-cup-plugin:1.6.4:generate (cup) on project impala-frontend: Execution cup of goal net.sourceforge.czt:maven-cup-plugin:1.6.4:generate failed: A required class was missing while executing net.sourceforge.czt:maven-cup-plugin:1.6.4:generate: java_cup/MainRun "mvn -X package" command and it showed that the error was caused by the following error.
Caused by: java.lang.NoClassDefFoundError: java_cup/MainApparently, the java_cup.jar could be found by this plugin. As a result, I added the following dependency to maven-cup-plugin.
<plugin> <groupId>net.sourceforge.czt</groupId> <artifactId>maven-cup-plugin$lt;/artifactId> <version>1.6.4$lt;/version> <dependencies> <dependency> <groupId>net.sf.squirrel-sql.thirdparty-non-maven$lt;/groupId> <artifactId>java-cup$lt;/artifactId> <version>0.11a$lt;/version> </dependency> </dependencies>After that, the problem was resolved. To check the dependencies of a plugin, you could run the following command.