Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 the java Java artifacts from the current working directory.
your application. You do so by using the following command:

Code Block
java -jar sl-build-scanner.jar -modules
Info
This command requires to place the Sealights Build Scanner in the same working directory of the java artifacts analyzed.
 <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 parameters

Additional options are available for this command:

1
Code Block
themeConfluence
firstline
titleCommand Reference
java -jar sl-build-scanner.jar -modules <path/to/jars/for/analysis> [-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.*

...

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 used for the scan of this artifact will be: "*com.kuhniverse.*"

Image Removed

Related articles

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@1422e
showSpacefalse
sortmodified
typepage
reversetrue

...

labels

...

java packages
cqllabel in ( "java" , "packages" ) and type = "page" and space = "SUP"

...


Page Properties
hiddentrue


Related issues