github.com/GoogleContainerTools/skaffold/v2@v2.13.2/integration/testdata/debug/java/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-java</artifactId> 7 <version>0.1.0</version> 8 <description>Simple Java server with Skaffold and Jib</description> 9 10 <properties> 11 <jib.maven-plugin-version>3.3.1</jib.maven-plugin-version> 12 <maven.compiler.source>1.8</maven.compiler.source> 13 <maven.compiler.target>1.8</maven.compiler.target> 14 </properties> 15 16 <build> 17 <finalName>hello</finalName> 18 <plugins> 19 <plugin> 20 <groupId>com.google.cloud.tools</groupId> 21 <artifactId>jib-maven-plugin</artifactId> 22 <version>${jib.maven-plugin-version}</version> 23 <configuration> 24 <from> 25 <image>openjdk:8</image> <!-- has jdb --> 26 </from> 27 <container> 28 <jvmFlags> 29 <jvmFlag>-Djava.security.egd=file:/dev/./urandom</jvmFlag> 30 </jvmFlags> 31 <workingDirectory>/app</workingDirectory> 32 </container> 33 <extraDirectories> 34 <paths> 35 <path> 36 <from>scripts</from> 37 <into>/workspace/scripts</into> 38 </path> 39 </paths> 40 </extraDirectories> 41 </configuration> 42 </plugin> 43 44 <plugin> 45 <groupId>org.apache.maven.plugins</groupId> 46 <artifactId>maven-jar-plugin</artifactId> 47 <configuration> 48 <archive> 49 <manifest> 50 <addClasspath>true</addClasspath> 51 <classpathPrefix>libs/</classpathPrefix> 52 <mainClass>hello.Application</mainClass> 53 </manifest> 54 </archive> 55 </configuration> 56 </plugin> 57 </plugins> 58 </build> 59 </project>