There are 6 values for the Scope attribute
The scope of action when packaging the project:
1. compile (the default value when the scope is not actively set):
The project compiles, tests, and runs.
2、provided
Compile, test.
Supplement: There are two points to note in the subtag <optional> under <dependency>
If this tag is set to true, the package will not be packaged into the jar package, and there will be no dependency transfer effect of parent-child projects.
3、runtime
run
4、test
Only test compile and test run
5、system
The jar package under the local system needs to be used in conjunction with the systemPath tag, that is, <systemPath>.
6、import
Only in the <dependencyManagement> of the pom file, its function is to import other pom files (that is, the sub-project imports the parent project), and the specific classic operation can be easily found on csdn.
Today's micro language:
The will of life should not be weakened by the pressure of society, nor can it be shrunk by the pressure of nature. It should stand upright and majestic every day, but not proud~
From Peng Xiangshan.