This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Description
You will get:
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.15.RELEASE:repackage (default) on project springProj02: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.5.15.RELEASE:repackage failed: Unable to find a single main class from the following candidates [application.SBApplication, org.openapitools.OpenAPI2SpringBoot] -> [Help 1]
Possible solutions:
- Add the mainClass element to the codewind template and specify the application.SBApplication class
<configuration>
<mainClass>application.SBApplication</mainClass>
</configuration>
- Programmatically add the mainClass element and set the org.openapitools.OpenAPI2SpringBoot value. This solution is preferred, to get the Open Application action to work with the generated code.
<configuration>
<mainClass>org.openapitools.OpenAPI2SpringBoot</mainClass>
</configuration>