# 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="https://4057366433-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAjqTCMRYvHhDgsdPLUnc%2Fuploads%2F8mhXIaLpS83aWkfzAmsU%2Fimage2019-9-22_12-57-54.png?alt=media&#x26;token=5a85cd4d-9c87-49e8-ab2f-61b24373e54c" 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.*</em> and single will appear as <em>io.*</em></p> |

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

* [pivotal-cloud-foundry-pcf-support](https://docs.sealights.io/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/java-agent/pivotal-cloud-foundry-pcf-support "mention")
* [nodejs-javascript-heap-out-of-memory](https://docs.sealights.io/knowledgebase/setup-and-configuration/troubleshooting-faq/node-javascript/nodejs-javascript-heap-out-of-memory "mention")
* [testing-frameworks-integration](https://docs.sealights.io/knowledgebase/setup-and-configuration/integrations/testing-frameworks-integration "mention")
* [installing-the-coverage-listener-as-a-jvm-java-agent](https://docs.sealights.io/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/java-agent/default-usage-cli/installing-the-coverage-listener-as-a-jvm-java-agent "mention")
* [cd-agent-for-java-application](https://docs.sealights.io/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/cd-agent/cd-agent-for-java-application "mention")
