1. There is no need to create a EAR file for masthead. You can go ahead with the war file itself and check whether there is a portalapp.xml file exists in your project or not.
![portalapp.xml file.jpg]()
2. Libraries:
First three jar files are needed later three are on need basis if in case you want use UME.