I have a
Spring Boot app that is in a Module within a project.
The module has its own pom.xml and the outer project has its own
pom.xml has the
<mainClass>...</mainClass> annotation pointing to the main class of the app.
It also has a reference to the parent
pom.xml with the
<parent>...</parent> property, pointing to the parent
artifactId, groupId & version.
When running the app within Intellij, it runs OK.
The problem is when trying to run the app from the jar:
java -jar myApp.jar
Then we get and error of
Error: Could not find or load main class com.example.application
What are we missing here?