springframeworkguru / sfg-pet-clinic

SFT Pet Clinic
230 stars 2k forks source link

Create multi-module project for data model #114

Open mlofol opened 5 years ago

nitesla commented 5 years ago

I have a slight issue with multi-module maven build. my package under maven is given me this error Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.6.RELEASE:repackage (repackage) on project pet-clinic-data: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.1.6.RELEASE:repackage failed: Unable to find main class ->

thomas-pk commented 5 years ago

I'm getting a related error from the maven build: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project pet-clinic-data: Fatal error compiling: invalid target release: 11 -> [Help 1] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Attaching screen shot hoping it helps shed more light on the issue. image

dixitdesire commented 5 years ago

I have a slight issue with multi-module maven build. my package under maven is given me this error Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.6.RELEASE:repackage (repackage) on project pet-clinic-data: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.1.6.RELEASE:repackage failed: Unable to find main class ->

solution available on stackoverflow: https://stackoverflow.com/questions/57187588/spring-boot-multi-module-maven-project-repackage-failed/57349692#57349692

stoptherock1 commented 4 years ago

I have a slight issue with multi-module maven build. my package under maven is given me this error Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.6.RELEASE:repackage (repackage) on project pet-clinic-data: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.1.6.RELEASE:repackage failed: Unable to find main class ->

solution available on stackoverflow: https://stackoverflow.com/questions/57187588/spring-boot-multi-module-maven-project-repackage-failed/57349692#57349692

Cheers mate! That helped me!