If you add maven in the scope tag is in the configuration and compile range may lead to jar package conflicts such as servlet-api have in tomcat server
<scope>complie</scope>
complie range can be changed provided
scope scope of the following three situations
It is valid for the main program | It is valid for the test program | Whether to participate pack | |
compile | effective | effective | Participation package |
test | invalid | effective | Not involved in packaging |
provided | effective | effective | Not involved in packaging |