File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
src/main/kotlin/org/skgroup/securityinspector/utils Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,19 @@ class Decompiler(private val project: Project) {
28
28
mavenReader.read(reader)
29
29
}
30
30
31
- val dependencies1 = model.dependencies
31
+ var dependencies : MutableList < Dependency > = mutableListOf ()
32
32
33
- val dependencies2 = model.dependencyManagement.dependencies
33
+ try {
34
+ dependencies + = model.dependencies
35
+ } catch (e: Exception ) {
36
+ println (" Dependencies from pom.xml not found" )
37
+ }
34
38
35
- var dependencies = dependencies1 + dependencies2
39
+ try {
40
+ dependencies + = model.dependencyManagement.dependencies
41
+ } catch (e: Exception ) {
42
+ println (" DependencyManagement dependencies of pom.xml not found" )
43
+ }
36
44
37
45
// 需要考虑moudle嵌套的情况
38
46
dependencies = resolveModules(projectBaseDir, model, dependencies as ArrayList <Dependency >)
You can’t perform that action at this time.
0 commit comments