---
updatedAt: 2026-10-22T08:52:16.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/security/llms.txt
---

# How to Create an Uber JAR for Contextual Analysis

Create an Uber JAR for contextual analysis with the Spring Boot Maven plugin.

You can use `spring-boot-maven-plugin` to create the Uber JAR for [Contextual Analysis of CVEs](https://docs.jfrog.com/security/docs/contextual-analysis-of-cves-1).

Here is an example of how to use it in a `pom.xml`:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.example</groupId>
    <artifactId>MavenTest</artifactId>
    <version>1.0-SNAPSHOT</version>

    <properties>
        <maven.compiler.source>11</maven.compiler.source>
        <maven.compiler.target>11</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.apache.tomcat.embed</groupId>
            <artifactId>log4j-core</artifactId>
            <version>2.14.0</version>
        </dependency>

    </dependencies>

    <build>
        <finalName>my-project-name</finalName>
        <plugins>
             <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>2.7.14</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>    
        </plugins>
    </build>

</project>
```

For more information, see [Package Applications in Docker for Contextual Analysis](https://docs.jfrog.com/security/docs/package-applications-in-docker-for-contextual-analysis).

## Related Topics

* [Supported Technologies](https://docs.jfrog.com/security/docs/supported-technologies-advanced-security)
* [Create a Contextual Analysis Policy](https://docs.jfrog.com/security/docs/contextual-analysis-policy)