I have created a build plan in Bamboo for a Spring-Boot application I am developing. When I deploy and try to start the application I get the following error.
no main manifest attribute, in MyApp.jar
I checked my Manifest.MF file from version control:
Manifest-Version: 1.0
Main-Class: com.applications.MyApplication
Then I checked the Manifest.MF after the build:
Manifest-Version: 1.0
Implementation-Title: Spring Boot Data REST Starter
Implementation-Version: 1.4.0.RELEASE
Archiver-Version: Plexus Archiver
Built-By: bamboo
Specification-Vendor: Pivotal Software, Inc.
Specification-Title: Spring Boot Data REST Starter
Implementation-Vendor-Id: org.springframework.boot
Implementation-Vendor: Pivotal Software, Inc.
Created-By: Apache Maven 3.2.1
Build-Jdk: 1.8.0_60
Specification-Version: 1.4.0.RELEASE
Implementation-URL: http://projects.spring.io/spring-boot/
Note that the Main-Class property is missing.
I am new to *Bamboo by Atlassian and I am using the Bob Swift Atlassian Add-ons - Groovy Tasks which includes the a task for Gradle builds.
Has anyone seen this behavior before? Any ideas on a solution or work around?
spring-boot-starter-data-rest
. You mention that you're using Gradle but the manifest has been created by Maven. Have you tried a local build and checking what's inside the built jar? – Phil Webb