I have a maven project. The application has a class with main method. I am creating a jar file for this application which will be called by a batch. The batch will call the jar file and theoretically it will look for class with main method. But the application is missing manifest file. So I need to create one to make the jar run.
I am not able to find how to create manifest file using maven. Do I need to create the META-INF directory and Manifest.mf file manually and fill it or is there any automatic way using Maven?