I have a project with multiple modules when I compile the project globally it works but when I try to compile certaint modules it gives me this error:
Error: Could not find or load main class %
Caused by: java.lang.ClassNotFoundException: %
Example usage :
app:~/Documenten/GitHub/project/article-module$ mvn clean compile
Error: Could not find or load main class %
Caused by: java.lang.ClassNotFoundException: %
I have no idea what class is missing. I went through and checked for missing classes and everything is there. I check the pom files and they seem ok. I dont know what its missing and I cant make it give a more detailed error message. Any suggestions ?
2
Have you checked your module declarations? Have the modules been exported/imported correctly, as required?
marcof is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.