Reason: the meta-inf/manifest.mf file in the jar package is missing the key value pair of “main class”
terms of settlement:
<build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifest> <mainClass>com.u1w2.sla.App</mainClass> </manifest> </archive> </configuration> </plugin>
logo
Similar Posts:
- no main manifest attribute, in demo-1.0.jar
- Run jar file under Linux system, prompt: no main manifest attribute, in xxx.jar [How to Solve]
- Maven warnning: ‘build.plugins.plugin.version’ is missing [How to Solve]
- Maven no main manifest attribute when generate jar for project
- [Solved] Spring Boot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0
- [Solved] SpringBoot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-res
- Intellij Pack the jar file error: “java.lang.SecurityException: Invalid signature file digest for Manifest main attrib
- Springboot 2.4 package error, missing web.xml
- Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace
- Remove dependency-reduced-pom.xml file when packaging Maven project