Configuring Maven
How to configure the Maven package manager
This page explains how to configure the Maven package manager to pull packages from the Seal artifact server based on your existing setup.
Make sure you have the access token for the server ready.
Pull directly from the global Maven repository
Open the project's
pom.xml
file.If there's no
<repositories>
tag then create one.Add to the
<repositories>
tag the Seal Security repository as the first one, as in the following example:
Open the Maven settings file, usually located in
~/.m2/settings.xml
in unix-based systems, and%userprofile%\.m2\settings.xml
in Windows.Add a
<server>
section to the settings file. Note that the<id>
value must be the same as the value provided in thepom.xml
:
Build your project, setting your token to the artifact server in the
SEAL_TOKEN
environment variable, and putting the project's ID in thePROJECT_ID
.
Pull from JFrog's Artifactory
Go to JFrog's Artifactory configuration and create a new remote Maven repository.
In the Basic configuration, use
seal-mvn
as your Repository Key.In both the URL field set
https://maven.sealsecurity.io
.In the User Name field use
jfrog
.In the Password / Access Token field paste the Production token you created earlier.
Turn off the Handle Snapshots option.
Save the new repository, and set it as the top priority remote repository in the virtual repository you're using.
Last updated