Details
Description
The jar file created by clean build (right-click on project, select clean build) does not create a proper jar file with manifest that can be run outside of the IDE.
This seems to me to be a fundamental element of developing applications. How can it not work out of the box?
Create a simple HelloWorld as a Maven Project. Add a Main class. Add System.out.println("Hello World"); to the main class.
Clean and Build.
Copy the resulting jar from ../target folder to any other folder.
Open a command window, CD to folder, type the usual java ...
(I can't type the command because this bizarre editor starts striking through characters).
Java complains there is no manifest in the jar file.
With respect, I use an IDE precisely to avoid having to deal with maven for basic things like a deployable jar file. I have used NetBeans for years, with default Ant builds, I did not expect this aggravation starting a new simple maven project.