This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE 8.1 Beta (Build 201508041349) Operating System = Mac OS X version 10.11 running on x86_64 Java; VM; Vendor = 1.8.0_51 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.51-b03 When working with jar projects, the maven jar plugin should save the main class as attribute in the manifest rather than in the nb projects.
Created attachment 155685 [details] IDE log
The POM could contain: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>2.4.1</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <mainClass>org.example.MainApp</mainClass> </transformer> </transformers> </configuration> </execution> </executions> </plugin> </plugins> </build> When running a project, NetBeans should get the main class from the created manifest (or read this plugin’s settings if NetBeans doesn’t execute the package phase).
*** Bug 256193 has been marked as a duplicate of this bug. ***