# Which Packages to Configure?

I don't know what packages to configure

## Problem <a href="#problem" id="problem"></a>

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.

## Solution <a href="#solution" id="solution"></a>

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:

{% code overflow="wrap" lineNumbers="true" %}

```sh
java -jar sl-build-scanner.jar -modules <path/to/jars/for/analysis>
```

{% endcode %}

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.*"`

<figure><img src="/files/M2zoDJmFMac7sUX5Dt91" alt=""><figcaption></figcaption></figure>

### Additional parameters <a href="#additional-parameters" id="additional-parameters"></a>

Additional options are available for this command:

{% code overflow="wrap" lineNumbers="true" %}

```sh
java -jar sl-build-scanner.jar -modules <path/to/jars/for/analysis> [-r] [-modulePathLength <arg>]
```

{% endcode %}

| `r`                | Recursive search all folders under the workspace path                                                                                                                                        |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `modulePathLength` | <p>Print modules with the length provided as a parameter (default value is 2).<br>For example, two significant names will appear as <em>io.sealights. and single will appear as io.</em></p> |

## Related articles <a href="#related-articles" id="related-articles"></a>

* [Pivotal Cloud Foundry (PCF) Support](/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/java-agent/pivotal-cloud-foundry-pcf-support.md)
* [NodeJS - JavaScript heap out of memory](/knowledgebase/setup-and-configuration/troubleshooting-faq/node-javascript/nodejs-javascript-heap-out-of-memory.md)
* [Testing Frameworks Integration](/knowledgebase/setup-and-configuration/integrations/testing-frameworks-integration.md)
* [Installing the Coverage Listener as a JVM Java Agent](/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/java-agent/default-usage-cli/installing-the-coverage-listener-as-a-jvm-java-agent.md)
* [CD Agent for Java Application](/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/cd-agent/cd-agent-for-java-application.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sealights.io/knowledgebase/setup-and-configuration/troubleshooting-faq/java/which-packages-to-configure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
