Why do you re-download the dependency package when starting the server service in cmd?

recently learned that cas currently starts a config service in idea and then the server service runs through build.cmd run on the cmd command line

the question is why I already have a local jar package. Why do I have to download it again when I build.cmd run?

when I was in the company yesterday, I directly typed it into a war package and then successfully deployed
to solve

.
Cas
Mar.06,2021

I wish you all a happy May Day. I took the subway to have dinner with my buddies. I sorted out the problem. When I was in the company, I did not configure the setting.xml path of maven and the export path of the jar package. So the jar package managed by maven is in the default folder of disk c. M2 points to this default address when running the project on the cmd command line, so there is no need to download the jar package at home. At that time, I idea configured the export path of maven under disk d so that the relevant jar can be found in idea, but the default in the cmd command is to look for jar under disk c, so there are two ways to solve the problem: first, to set up setting.xml to specify the storage address of the project jar package; second, to copy the jar under my disk d to disk c and try to wish you all a happy May Day again

.
Menu