-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transitive dependency support for Maven pom.xml (#1002)
Issue #35 In this PR, the new Maven extractor invokes Maven resolver to compute the transitive dependencies of a Maven pom.xml. Since managed dependencies are not actually being depended on, they are not in the resolved dependency graph, and thus they are not included in the scan results.
- Loading branch information
Showing
9 changed files
with
195 additions
and
168 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<project> | ||
<groupId>com.mycompany.app</groupId> | ||
<artifactId>my-app</artifactId> | ||
<version>1.0</version> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.direct</groupId> | ||
<artifactId>alice</artifactId> | ||
<version>1.0.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.direct</groupId> | ||
<artifactId>bob</artifactId> | ||
<version>2.0.0</version> | ||
</dependency> | ||
</dependencies> | ||
</project> |
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
4 changes: 4 additions & 0 deletions
4
internal/manifest/fixtures/maven/with-dependency-management.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
<project> | ||
<groupId>com.mycompany.app</groupId> | ||
<artifactId>my-app</artifactId> | ||
<version>1.0</version> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.12</version> | ||
<scope>test</scope> | ||
<scope>runtime</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
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,42 @@ | ||
system: maven | ||
schema: | | ||
com.google.code.findbugs:jsr305 | ||
3.0.2 | ||
io.netty:netty-all | ||
4.1.9 | ||
4.1.42.Final | ||
junit:junit | ||
4.12 | ||
org.apache.maven:maven-artifact | ||
1.0.0 | ||
org.direct:alice | ||
1.0.0 | ||
org.transitive:[email protected] | ||
org.transitive:[email protected] | ||
org.direct:bob | ||
2.0.0 | ||
org.transitive:[email protected] | ||
org.mine:my.package | ||
2.3.4 | ||
org.mine:mypackage | ||
1.0.0 | ||
org.mine:ranged-package | ||
9.4.35 | ||
9.4.36 | ||
9.4.37 | ||
9.5 | ||
org.slf4j:slf4j-log4j12 | ||
1.7.25 | ||
org.transitive:chuck | ||
1.1.1 | ||
2.2.2 | ||
org.transitive:[email protected] | ||
3.3.3 | ||
org.transitive:dave | ||
1.1.1 | ||
2.2.2 | ||
3.3.3 | ||
org.transitive:eve | ||
1.1.1 | ||
2.2.2 | ||
3.3.3 |
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
Oops, something went wrong.