Maven Integration
Getting Started
1
Create a Lineaje Personal Access Token (PAT)
Authentication2
3
Configure Maven settings.xml
settings.xml<settings>
<servers>
<server>
<id>lineaje-fortknox-artifactory</id>
<username>${env.ARTIFACTORY_CREDS_USR}</username>
<password>${env.ARTIFACTORY_CREDS_PSW}</password>
</server>
</servers>
<mirrors>
<mirror>
<id>lineaje-fortknox-artifactory</id>
<name>Lineaje FortKnox Maven Proxy</name>
<url>https://observe.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
<profiles>
<profile>
<id>lineaje-fortknox</id>
<repositories>
<repository>
<id>lineaje-fortknox-artifactory</id>
<name>Lineaje FortKnox Maven Proxy</name>
<url>https://observe.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>lineaje-fortknox-artifactory</id>
<name>Lineaje FortKnox Maven Plugin Proxy</name>
<url>https://observe.fortknox.v2.prod.veedna.com/artifactory/gos-all-proxy-maven</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>lineaje-fortknox</activeProfile>
</activeProfiles>
</settings>Sample Configurations
GitHub Actions
1. Create GitHub Secrets
2. Add the GitHub Actions Workflow
Jenkins
1. Configure Java and Maven in Jenkins
2. Add Artifactory Credentials in Jenkins
3. Add the Jenkinsfile
4. Validate the Jenkins Pipeline
Verifying Proxy Routing
Common Issues
Authentication failure or HTTP 401 during Maven build
Server ID does not match mirror or repository ID
Dependencies do not resolve through Lineaje Proxy
Maven Central is still being used directly
Last updated