Closed Nick-The-Uncharted closed 5 years ago
Which project are you compiling? Maybe your network can not access some common maven repositories or maven settings is not correct.
Just following the instrutions of quick-start to compile the whole project. And I am sure that my maven setting is corrent or I wont be able to run mvn install com.fasterxml.jackson.core.
mvn install only install artifacts to local repository. and mvn will connect external repositories to download 3rdparty dependencies.
It seams you are compiling java-chassis, and we compile this project every day, It's not possible that some code error.
Thats not code error, its maven dependency issue, if you clone this project in a whole new environment (or just delete your local repo) it wont compile because somehow it refuse to download com.fasterxml.jackson.core.
Can you provide the download information and error? I tried to delete jackson and download successfully. (BTW, I use a maven mirror provided by huawei, because a frequently network errors will happen using maven central)
<mirror>
<id>huaweicloud</id>
<mirrorOf>*</mirrorOf>
<url>https://repo.huaweicloud.com/repository/maven/</url>
</mirror>
I deleted my local repo and download successfully too. That's strange because it happened on two environment, maybe the mirror I use had some problem then?
找到原因了,我从windows把settings.xml复制过去, 然后 localRepo的路径被设置成了D:/repo, 然后不知道怎么就会引发maven的bug
需要跑一下
才能成功编译