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