The SeaLights build scan needs the prefix of the packages in order to focus the scan only on your code and not include third party code.
Sometimes you don't know what the package prefix is.
...
The Sealights build scanner provides the ability to show you a list of prefixes in a specific java artifactthe java artifacts from the current working directory.
You do so by using the following command:
Code Block |
---|
java -jar sl-build-scanner.jar -modules /path/to/artifact.jar |
Note |
---|
To avoid scanning unnecessary artifacts that could potentially create background noise, it is recommended to run the above command from the directory in which your artifact is located. |
Command reference
Code Block |
---|
|
java -jar sl-build-scanner.jar -modules [-r] [-modulePathLength <arg>]
|
Parameter | Description |
---|
r | Recursive search all folders under the workspace path |
modulePathLength | Print modules with the length provided as a parameter (default value is 2). For example, two significant names will appear as io.sealights.* and single will appear as io.* |
Related articles
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@1422e |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ( "java" , "packages" ) and type = "page" and space = "SUP" |
---|
labels | java packages |
---|
|
...