非 maven 應(yīng)用依賴掃描
- 下載 dependency-check-6.1.6-release .zip
群里分享的應(yīng)用,解壓后藏杖,進(jìn)入 bin 文件夾 - 根據(jù)系統(tǒng)執(zhí)行命令
-project代表工程名
–s代表檢查的jar包文件夾啊掏,把需要檢查的jar包放到該目錄下即可,也可以指向 lib 包
–o代表報(bào)表輸出的路徑
--disableRetireJS不檢查js,
--disableNodeJS不檢查nodejs
linux/mac
bash dependency-check.sh --disableRetireJS --disableNodeJS --project 1111 -s /Users/zhouxu/Downloads/lib -o /Users/zhouxu/Downloads/
- win
dependency-check.bat --disableRetireJS --disableNodeJS --project cc -s D:\Users\Administrator\Documents\nxsftoaxt\WebRoot\WEB-INF\lib\ -o D:\report\