Issue deploying Spring Boot app
faddieHOBBY
9 months ago
I am trying to deploy my spring boot app and it fails bc:
Starting Container
no main manifest attribute, in target/demos-0.0.1-SNAPSHOT.jar
container event container died
This is a maven project and I have specified the main class on pom.xml
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>17</source>
<target>17</target>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.notify.demos</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
Any idea why it is failing to start?
Thanks
0 Replies