I’ve compiled a maven-on web application, now the war can be downloaded to any web server, and everything is successful (1). But in maven, it is also possible to automatically start the server using mvn compile tomcat:run
, for example (2).
In the first case, the application does not configure the server, i.e. it turns out the customer (let's say) will have to configure it himself before launch.
And in the second situation, the web application is tightly bound to some server, which is also not good, and you also need to have a maven.
So, how to act in such cases?