-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support passing -Dverbose to resolve omitted dependencies using maven-dependency-plugin. When verbose is being used execute a specific version of the maven-dependency-plugin. This is becuase on lower version of this plugin outputType=dot is not supported, and it will output a tree. When verbose is on skip pruning and ensure all dependency lines are traversed fully, using breadth first, first in wins for version resolution.
- Loading branch information
Showing
10 changed files
with
1,031 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
238 changes: 238 additions & 0 deletions
238
tests/fixtures/complex-aggregate-project/verbose-scan-result.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,238 @@ | ||
{ | ||
"scannedProjects": [ | ||
{ | ||
"depGraph": { | ||
"schemaVersion": "1.2.0", | ||
"pkgManager": { | ||
"name": "maven" | ||
}, | ||
"pkgs": [ | ||
{ | ||
"id": "io.snyk:[email protected]", | ||
"info": { | ||
"name": "io.snyk:aggregate-project", | ||
"version": "1.0.0" | ||
} | ||
} | ||
], | ||
"graph": { | ||
"rootNodeId": "root-node", | ||
"nodes": [ | ||
{ | ||
"nodeId": "root-node", | ||
"pkgId": "io.snyk:[email protected]", | ||
"deps": [] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"depGraph": { | ||
"schemaVersion": "1.2.0", | ||
"pkgManager": { | ||
"name": "maven" | ||
}, | ||
"pkgs": [ | ||
{ | ||
"id": "io.snyk:[email protected]", | ||
"info": { | ||
"name": "io.snyk:core", | ||
"version": "1.0.0" | ||
} | ||
}, | ||
{ | ||
"id": "org.apache.logging.log4j:[email protected]", | ||
"info": { | ||
"name": "org.apache.logging.log4j:log4j-api", | ||
"version": "2.17.2" | ||
} | ||
}, | ||
{ | ||
"id": "org.apache.logging.log4j:[email protected]", | ||
"info": { | ||
"name": "org.apache.logging.log4j:log4j-core", | ||
"version": "2.17.2" | ||
} | ||
} | ||
], | ||
"graph": { | ||
"rootNodeId": "root-node", | ||
"nodes": [ | ||
{ | ||
"nodeId": "root-node", | ||
"pkgId": "io.snyk:[email protected]", | ||
"deps": [ | ||
{ | ||
"nodeId": "org.apache.logging.log4j:log4j-api:jar:2.17.2:compile" | ||
}, | ||
{ | ||
"nodeId": "org.apache.logging.log4j:log4j-core:jar:2.17.2:compile" | ||
} | ||
] | ||
}, | ||
{ | ||
"nodeId": "org.apache.logging.log4j:log4j-api:jar:2.17.2:compile", | ||
"pkgId": "org.apache.logging.log4j:[email protected]", | ||
"deps": [] | ||
}, | ||
{ | ||
"nodeId": "org.apache.logging.log4j:log4j-core:jar:2.17.2:compile", | ||
"pkgId": "org.apache.logging.log4j:[email protected]", | ||
"deps": [ | ||
{ | ||
"nodeId": "org.apache.logging.log4j:log4j-api:jar:2.17.2:compile" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"depGraph": { | ||
"schemaVersion": "1.2.0", | ||
"pkgManager": { | ||
"name": "maven" | ||
}, | ||
"pkgs": [ | ||
{ | ||
"id": "io.snyk:[email protected]", | ||
"info": { | ||
"name": "io.snyk:web", | ||
"version": "1.0.0" | ||
} | ||
}, | ||
{ | ||
"id": "io.snyk:[email protected]", | ||
"info": { | ||
"name": "io.snyk:core", | ||
"version": "1.0.0" | ||
} | ||
}, | ||
{ | ||
"id": "org.springframework:[email protected]", | ||
"info": { | ||
"name": "org.springframework:spring-web", | ||
"version": "5.3.21" | ||
} | ||
}, | ||
{ | ||
"id": "org.apache.logging.log4j:[email protected]", | ||
"info": { | ||
"name": "org.apache.logging.log4j:log4j-api", | ||
"version": "2.17.2" | ||
} | ||
}, | ||
{ | ||
"id": "org.apache.logging.log4j:[email protected]", | ||
"info": { | ||
"name": "org.apache.logging.log4j:log4j-core", | ||
"version": "2.17.2" | ||
} | ||
}, | ||
{ | ||
"id": "org.springframework:[email protected]", | ||
"info": { | ||
"name": "org.springframework:spring-beans", | ||
"version": "5.3.21" | ||
} | ||
}, | ||
{ | ||
"id": "org.springframework:[email protected]", | ||
"info": { | ||
"name": "org.springframework:spring-core", | ||
"version": "5.3.21" | ||
} | ||
}, | ||
{ | ||
"id": "org.springframework:[email protected]", | ||
"info": { | ||
"name": "org.springframework:spring-jcl", | ||
"version": "5.3.21" | ||
} | ||
} | ||
], | ||
"graph": { | ||
"rootNodeId": "root-node", | ||
"nodes": [ | ||
{ | ||
"nodeId": "root-node", | ||
"pkgId": "io.snyk:[email protected]", | ||
"deps": [ | ||
{ | ||
"nodeId": "io.snyk:core:jar:1.0.0:compile" | ||
}, | ||
{ | ||
"nodeId": "org.springframework:spring-web:jar:5.3.21:compile" | ||
} | ||
] | ||
}, | ||
{ | ||
"nodeId": "io.snyk:core:jar:1.0.0:compile", | ||
"pkgId": "io.snyk:[email protected]", | ||
"deps": [ | ||
{ | ||
"nodeId": "org.apache.logging.log4j:log4j-api:jar:2.17.2:compile" | ||
}, | ||
{ | ||
"nodeId": "org.apache.logging.log4j:log4j-core:jar:2.17.2:compile" | ||
} | ||
] | ||
}, | ||
{ | ||
"nodeId": "org.springframework:spring-web:jar:5.3.21:compile", | ||
"pkgId": "org.springframework:[email protected]", | ||
"deps": [ | ||
{ | ||
"nodeId": "org.springframework:spring-beans:jar:5.3.21:compile" | ||
}, | ||
{ | ||
"nodeId": "org.springframework:spring-core:jar:5.3.21:compile" | ||
} | ||
] | ||
}, | ||
{ | ||
"nodeId": "org.apache.logging.log4j:log4j-api:jar:2.17.2:compile", | ||
"pkgId": "org.apache.logging.log4j:[email protected]", | ||
"deps": [] | ||
}, | ||
{ | ||
"nodeId": "org.apache.logging.log4j:log4j-core:jar:2.17.2:compile", | ||
"pkgId": "org.apache.logging.log4j:[email protected]", | ||
"deps": [ | ||
{ | ||
"nodeId": "org.apache.logging.log4j:log4j-api:jar:2.17.2:compile" | ||
} | ||
] | ||
}, | ||
{ | ||
"nodeId": "org.springframework:spring-beans:jar:5.3.21:compile", | ||
"pkgId": "org.springframework:[email protected]", | ||
"deps": [ | ||
{ | ||
"nodeId": "org.springframework:spring-core:jar:5.3.21:compile" | ||
} | ||
] | ||
}, | ||
{ | ||
"nodeId": "org.springframework:spring-core:jar:5.3.21:compile", | ||
"pkgId": "org.springframework:[email protected]", | ||
"deps": [ | ||
{ | ||
"nodeId": "org.springframework:spring-jcl:jar:5.3.21:compile" | ||
} | ||
] | ||
}, | ||
{ | ||
"nodeId": "org.springframework:spring-jcl:jar:5.3.21:compile", | ||
"pkgId": "org.springframework:[email protected]", | ||
"deps": [] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
|
Oops, something went wrong.