github.com/GoogleContainerTools/skaffold/v2@v2.13.2/examples/jib/pom.xml (about)

     1  <?xml version="1.0" encoding="UTF-8"?>
     2  <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">
     3    <modelVersion>4.0.0</modelVersion>
     4  
     5    <groupId>org.skaffold</groupId>
     6    <artifactId>hello-spring-boot</artifactId>
     7    <version>0.1.0</version>
     8    <description>Spring Boot with Skaffold and Jib</description>
     9  
    10    <properties>
    11      <java.version>1.8</java.version>
    12      <jib.maven-plugin-version>3.3.1</jib.maven-plugin-version>
    13    </properties>
    14  
    15    <parent>
    16      <groupId>org.springframework.boot</groupId>
    17      <artifactId>spring-boot-starter-parent</artifactId>
    18      <version>2.7.4</version>
    19    </parent>
    20  
    21    <dependencyManagement>
    22      <dependencies>
    23        <!-- SnakeYAML 1.32 addresses CVE-2022-25857 and CVE-2022-38752 -->
    24        <dependency>
    25          <groupId>org.yaml</groupId>
    26          <artifactId>snakeyaml</artifactId>
    27          <version>2.0</version>
    28        </dependency>
    29      </dependencies>
    30    </dependencyManagement>
    31  
    32    <dependencies>
    33      <dependency>
    34        <groupId>org.springframework.boot</groupId>
    35        <artifactId>spring-boot-starter-web</artifactId>
    36      </dependency>
    37    </dependencies>
    38  
    39    <build>
    40      <finalName>hello</finalName>
    41      <plugins>
    42        <plugin>
    43          <groupId>org.springframework.boot</groupId>
    44          <artifactId>spring-boot-maven-plugin</artifactId>
    45        </plugin>
    46        <plugin>
    47          <groupId>com.google.cloud.tools</groupId>
    48          <artifactId>jib-maven-plugin</artifactId>
    49          <version>${jib.maven-plugin-version}</version>
    50          <configuration>
    51            <from>
    52              <image>openjdk:8</image>
    53            </from>
    54            <container>
    55              <jvmFlags>
    56                <jvmFlag>-Djava.security.egd=file:/dev/./urandom</jvmFlag>
    57              </jvmFlags>
    58            </container>
    59          </configuration>
    60        </plugin>
    61      </plugins>
    62    </build>
    63  </project>