Я создал настроенный стартовый проект с начальной загрузкой и хочу развернуть его в удаленном репозитории Maven.Когда я запускаю mvn clean package deploy
, я получаю сообщение об ошибке:
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.2.RELEASE:repackage (repackage) on project jcr-service-spring-boot-starter: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.1.2.RELEASE: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
На самом деле, я не думаю, что для проекта с начальной загрузкой необходимо иметь основной класс, потому что он будетникогда не бегать один.
Не могли бы все помочь объяснить, как я могу упаковать проект, пожалуйста?