Problem
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.
Solution
The Sealights build scanner provides the ability to can show you a list of prefixes in a specific java artifact.
the Java artifacts from your application. You do so by using the following command:
Code Block |
---|
java -jar sl-build-scanner.jar -modules <path/to/pathjars/tofor/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.analysis> |
If you do not provide a path to the command it will analyze the files from the current working directory.
In the screenshot below, you'll see an illustration of the result from the modules
command. for this specific artifact analyzed the relevant packages are highlighted.
The packages included parameter (-pi
or -packagesincluded
) used for the scan
command of this artifact will be: "*com.kuhniverse.*"
...
Additional parameters
Additional options are available for this command:
Code Block |
---|
java -jar sl-build-scanner.jar -modules <path/to/jars/for/analysis> [-r] [-modulePathLength <arg>] |
Parameter | Description |
---|---|
| Recursive search all folders under the workspace path |
| Print modules with the length provided as a parameter (default value is 2). |
Related articles
Filter by label (Content by label) | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
|
...
|
...
Page Properties | ||
---|---|---|
| ||
|