i have application and when i want to run use java -jar myjar.jar i got error like that
here my pom.xml
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>id.myapp.App</mainClass>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
</plugins>
</build>
i have define where is the main class. and i also have try to use
java -cp java -cp Myjar.jar com.somepackage.App(class App)
but when i use that i still got error with no main manifest attribute. my apps use Springboot application. how to fix it ? this problem is on my configuration or something in spring apps ?