在eclipse中 我maven項目依賴了其他項目某個jar A, 但A所依賴的其他包都沒被依賴進來,導致項目飄紅。咋弄呢?反復刪掉重新svn,maven更新啥的都沒變化,求解~
說得不夠詳細,eclipse中依賴樹是可視化的,有子依賴的話 會自動折疊成一個小三角形,但是很奇怪A的依賴旁邊沒有這個小三角形.......但是在其他機器上又是好的...
歡迎選擇我的課程,讓我們一起見證您的進步~~
If you are using a public server instead of a private server, you should consider whether the package that a certain jar A depends on exists on the public server. If it is a private server, upload a copy if it does not exist
mvn dependency:tree -Dverbose
to look at the dependency treeLooking at the poster’s problem, it seems that the local project depends on the local project.
Check if there are any errors in the pom.xml of project A. As long as there is an error, other dependencies will be red.
Usually eclipse has prompts.
That’s because the transitivity of other dependencies in the jar A you depend on is not set up properly