IT/Java
[error]Failed to execute goal org.springframework.boot:spring-boot-maven-plugin
성준하이
2023. 5. 3. 21:31
반응형
포스팅에서 작성한 module project를 생성하다가 에러가 났다.
module 프로젝트 관련해서는 아래 참고 포스팅을 참고 바란다.
발생한 에러는 다음과 같다.
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.6:repackage (repackage) on project client: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:3.0.6:repackage failed: Unable to find main class -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [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/PluginExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :client |
모듈 프로젝트를 생성하면 pom.xml 은 만들어지지만 src 폴더가 비어있기에 발생한 에러이다.
main method를 만들어주면 해당 에러는 사라진다.
참고 포스팅
https://thenicesj.tistory.com/552
반응형