提交 c4be94ed authored 作者: 马晨俊's avatar 马晨俊

收集所有pom中的依赖

上级 544ab609
...@@ -169,6 +169,8 @@ public class Inspector { ...@@ -169,6 +169,8 @@ public class Inspector {
* 对于具体的配置文件对应的处理方法 * 对于具体的配置文件对应的处理方法
* 增加要处理的文件类型需要在这里增加相应的处理方法 * 增加要处理的文件类型需要在这里增加相应的处理方法
*/ */
ArrayList<Dependency> dependencies1 = new ArrayList<>();
for(Map.Entry<String,List<Path>> entry:configFileTypePathsMapping.entrySet()){ for(Map.Entry<String,List<Path>> entry:configFileTypePathsMapping.entrySet()){
//System.out.println(entry.getKey()); //System.out.println(entry.getKey());
switch (entry.getKey()){ switch (entry.getKey()){
...@@ -189,8 +191,7 @@ public class Inspector { ...@@ -189,8 +191,7 @@ public class Inspector {
ProjectPom analysis = AnalysisPom.analysis(path); ProjectPom analysis = AnalysisPom.analysis(path);
//设置依赖 //设置依赖
List<Dependency> dependencies = analysis.getDependencies(); List<Dependency> dependencies = analysis.getDependencies();
report.setDependencies(dependencies); dependencies1.addAll(dependencies1);
SAXReader reader = new SAXReader(); SAXReader reader = new SAXReader();
Document document = null; Document document = null;
...@@ -312,6 +313,7 @@ public class Inspector { ...@@ -312,6 +313,7 @@ public class Inspector {
// e.printStackTrace(); // e.printStackTrace();
// } // }
// } // }
report.setDependencies(dependencies1);
report.setWarnList(warnList); report.setWarnList(warnList);
return report; return report;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论