Scope means that the test scope is valid, and this dependency will not be used during compilation and packaging.
Scope means that the scope of the compilation is valid, and the dependencies will be stored in the compilation and packaging.
Dependencies are valid during compilation and testing, and the last generated war package will not be added. For example:
servlet-api, because the servlet-api tomcat server already exists, and if packaged, it will conflict.
Depend on runtime, not on compile time
The default dependency range is compile
Scope means that the scope of the compilation is valid, and the dependencies will be stored in the compilation and packaging.
Dependencies are valid during compilation and testing, and the last generated war package will not be added. For example:
servlet-api, because the servlet-api tomcat server already exists, and if packaged, it will conflict.
Depend on runtime, not on compile time
The default dependency range is compile