Since version 5 SOLR has been distributed as a stand-alone server running within Jetty. Some (like me) would prefer to run it within Tomcat which requires the creation of a WAR file.
Below are the steps to take do achieve this. I have successfully done this with SOLR 5 through SOLR 8.
Please note that this is not officially supported so may stop working at any time.