github.com/noqcks/syft@v0.0.0-20230920222752-a9e2c4e288e5/test/integration/test-fixtures/image-pkg-coverage/pkgs/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" 3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4 <modelVersion>4.0.0</modelVersion> 5 6 <groupId>org.anchore</groupId> 7 <artifactId>example-java-app-maven</artifactId> 8 <packaging>jar</packaging> 9 <version>0.1.0</version> 10 11 <properties> 12 <maven.compiler.source>1.8</maven.compiler.source> 13 <maven.compiler.target>1.8</maven.compiler.target> 14 </properties> 15 16 <dependencies> 17 <!-- tag::joda[] --> 18 <dependency> 19 <groupId>joda-time</groupId> 20 <artifactId>joda-time</artifactId> 21 <version>2.9.2</version> 22 </dependency> 23 <!-- end::joda[] --> 24 <!-- tag::junit[] --> 25 <dependency> 26 <groupId>junit</groupId> 27 <artifactId>junit</artifactId> 28 <version>4.12</version> 29 <scope>test</scope> 30 </dependency> 31 <!-- end::junit[] --> 32 </dependencies> 33 34 <build> 35 <plugins> 36 <plugin> 37 <groupId>org.apache.maven.plugins</groupId> 38 <artifactId>maven-shade-plugin</artifactId> 39 <version>2.1</version> 40 <executions> 41 <execution> 42 <phase>package</phase> 43 <goals> 44 <goal>shade</goal> 45 </goals> 46 <configuration> 47 <transformers> 48 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> 49 <mainClass>hello.HelloWorld</mainClass> 50 </transformer> 51 </transformers> 52 </configuration> 53 </execution> 54 </executions> 55 </plugin> 56 </plugins> 57 </build> 58 59 </project>