> For the complete documentation index, see [llms.txt](https://docs.sealsecurity.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sealsecurity.io/using-platform/working-with-seal-apps/artifact-server/maven.md).

# Editing Maven dependencies

## Direct dependencies

The Maven manifest is `pom.xml`. Update the `<version>` element of the dependency:

```xml
<dependency>
  <groupId>org.apache.commons</groupId>
  <artifactId>commons-text</artifactId>
  <version>1.10.0+sp1</version>
</dependency>
```

JVM ecosystems use `+` as the sealed-version separator instead of `-`. See [Naming & versioning conventions](/reference/naming-and-versioning.md) for the full per-ecosystem suffix table.

Run `mvn package` (or whichever Maven goal your build uses) and the resolved artifact is the sealed version.

## Transitive dependencies (`<dependencyManagement>`)

To force a transitive to a sealed version regardless of what your direct dependencies declare, use a `<dependencyManagement>` block in `pom.xml`. Maven resolves transitive versions against this block before falling back to the depending package's declaration:

```xml
<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-text</artifactId>
      <version>1.10.0+sp1</version>
    </dependency>
  </dependencies>
</dependencyManagement>
```

`<dependencyManagement>` only sets the version for inherited usage; it does not add a direct dependency by itself. The depending package still chooses whether to use `commons-text`, but if it does, the version comes from this block.

## Related

* [Configuring Maven](/setup-apps-os/artifact-server/configuring-package-managers/maven.md): the package-manager setup that points Maven at the Seal Artifact Server.
* [Editing Gradle dependencies](/using-platform/working-with-seal-apps/artifact-server/gradle.md): the Gradle equivalent for direct dependencies in the JVM ecosystem.
