Skip to content

Commit

Permalink
Fix dependency issue
Browse files Browse the repository at this point in the history
This issue was introduced with PR #85.  The dependency project was
set to the top level project and not to the dependency project leading
to the dependency information getting lost.

Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
  • Loading branch information
goneall committed Mar 29, 2023
1 parent f0f76da commit f04324f
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ private SpdxElement createSpdxPackage( Artifact artifact,
try
{
ProjectBuildingRequest request = new DefaultProjectBuildingRequest( session.getProjectBuildingRequest() );
request.setProject( mavenProject );
request.setRemoteRepositories( mavenProject.getRemoteArtifactRepositories() );
for (ArtifactRepository ar:request.getRemoteRepositories()) {
log.debug( "request Remote repository ID: " + ar.getId() );
Expand Down

0 comments on commit f04324f

Please sign in to comment.