Skip to content

Checksums not generated #162

@sgammon

Description

@sgammon

I have a project where I am using this plugin. I specified my configuration like this:
pom.xml (root)

  <pluginManagement>
    <plugin>
      <groupId>org.spdx</groupId>
      <artifactId>spdx-maven-plugin</artifactId>
      <version>0.7.3</version>
    </plugin>
  </pluginManagement>

pom.xml (project)

      <plugin>
        <groupId>org.spdx</groupId>
        <artifactId>spdx-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>build-spdx</id>
            <phase>install</phase>
            <goals>
              <goal>createSPDX</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <!-- lots of config... -->
          <checksumAlgorithms>
            <checksumAlgorithm>SHA256</checksumAlgorithm>
          </checksumAlgorithms>
        </configuration>
      </plugin>

But, when the SPDX file is generated:

# lots of stuff omitted
[
  {}, {
    "SPDXID" : "SPDXRef-gnrtd20",
    "checksums" : [ {
      "algorithm" : "SHA1",
      "checksumValue" : "8e0d0d6a6e82a8b532f68ba246cf314c550d3642"
    } ],
]

I don't see SHA256 mentioned anywhere in the file. Is it supposed to show up?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions