Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration has no javadoc #208

Closed
bmarwell opened this issue Sep 12, 2022 · 3 comments
Closed

Configuration has no javadoc #208

bmarwell opened this issue Sep 12, 2022 · 3 comments

Comments

@bmarwell
Copy link

I added this to my pom.xml:

  <configuration>
            <projectType>library</projectType>
            <schemaVersion>1.4</schemaVersion>
            <includeBomSerialNumber>true</includeBomSerialNumber>
            <includeCompileScope>true</includeCompileScope>
            <includeProvidedScope>true</includeProvidedScope>
            <includeRuntimeScope>true</includeRuntimeScope>
            <includeSystemScope>true</includeSystemScope>
            <includeTestScope>false</includeTestScope>
            <includeLicenseText>false</includeLicenseText>
            <outputReactorProjects>true</outputReactorProjects>
            <outputFormat>all</outputFormat>
            <outputName>bom</outputName>
        </configuration>

I hovered over each value, but it does not contain or onlyvery little javadoc.
For example, projectType should list all possible valid project types AND WHEN TO USE WHICH.
The warning on the console is somewhat helpful as it lists valid values, but still does not mention when to use which.

This is slightly related to #206, but #206 is about the goal descriptions which will generate the "Goals" site. Without this issue, there would be no description of parameters.

@breun
Copy link

breun commented Nov 25, 2022

I'm also wondering what some of these configuration options do. Is projectType a free-form field, or is there a predefined list of types? What is the effect of overriding projectType exactly?

What does outputReactorProjects do?

I think the valid values for outputFormat are all, xml and json?

@stevespringett
Copy link
Member

@breun projectType must match one of the enums for the version of the CycloneDX spec being used. For v1.4 of the spec, see https://cyclonedx.org/docs/1.4/json/#components_items_type

Maven reactors are described in the Maven documentation. See https://maven.apache.org/guides/mini/guide-multiple-modules.html. Therefore outputReactorProjects will output a BOM for every module in a multi-module Maven project.

@hboutemy
Copy link
Contributor

documentation added in #230

@hboutemy hboutemy closed this as completed Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants