Which Packages to Configure?
Problem
Solution
java -jar sl-build-scanner.jar -modules <path/to/jars/for/analysis>
Additional parameters
Related articles
Last updated
Was this helpful?
I don't know what packages to configure
The SeaLights build scan needs the prefix of the packages 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 can show you a list of prefixes in the Java artifacts from your application. You do so by using the following command:
java -jar sl-build-scanner.jar -modules <path/to/jars/for/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 options are available for this command:
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.
Last updated
Was this helpful?
Was this helpful?
java -jar sl-build-scanner.jar -modules <path/to/jars/for/analysis> [-r] [-modulePathLength <arg>]
