This snippet configures a special resource transformer which sets the Main-Class entry in the MANIFEST.MF of the shaded JAR. Most Java projects need dependency, and it can define in manifest file easily. build后manifest文件信息 . This happens because the project is being built by Maven and the Main Class you specified in the Netbeans properties is not exported by Netbeans to Maven’s pom.xml file; in other words: Netbeans knows what your main class is but Maven doesn’t. anifest-Version: 1.0 Built-By: mkyong Build-Jdk: 1.6.0_35 Created-By: Apache Maven Main-Class: com.mkyong.core.App Archiver-Version: Plexus Archiver Add project dependency classpath. @ line 52, column 12 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the … Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: ${user.name} Build-Jdk: ${java.version} Main-Class: fully.qualified.MainClass Class-Path: plexus-utils-1.1.jar commons-lang-2.1.jar Unlike in conventional Java applications, the main class discussed in this tutorial does not appear as the Main-Class metadata property in META-INF/MANIFEST.MF of the resulting JAR or WAR file.. Spring Boot expects the artifact's Main-Class metadata property to be set to org.springframework.boot.loader.JarLauncher (or WarLauncher) which means that passing our main class … you get “no main manifest attribute”. 即把程序入口(含main方法的类)添加进manifest中. The MANIFEST.MF file that was generated by default did not contain Main-Class property in this case. Quando uso o mvn install recebo: [WARNING] [WARNING] Some problems were encountered while building the effective model for com.app:ClasseMain:jar:0.0.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. Other entries can be added to the MANIFEST.MF as well via key-value pairs in the section: java -jar yourjar.jar my.package.Main. Manifest-Version: 1.0 Main-Class: HelloWorldSwing Created-By: 1.8.0_91 (Oracle Corporation) //this run swing normally تحقق direcory المحلي الخاص بك .m2 لدليل فرعي من هذه الأداة. Let’s have a look at the generated default manifest file.