github.com/google/osv-scalibr@v0.4.1/guidedremediation/internal/manifest/maven/testdata/my-app/pom.xml (about) 1 <?xml version="1.0" encoding="UTF-8"?> 2 3 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 5 <modelVersion>4.0.0</modelVersion> 6 7 <groupId>com.mycompany.app</groupId> 8 <artifactId>my-app</artifactId> 9 <version>1.0</version> 10 11 <name>my-app</name> 12 <!-- FIXME change it to the project's website --> 13 <url>http://www.example.com</url> 14 15 <parent> 16 <groupId>org.parent</groupId> 17 <artifactId>parent-pom</artifactId> 18 <version>1.1.1</version> 19 <relativePath>../parent/pom.xml</relativePath> 20 </parent> 21 22 <properties> 23 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 24 <maven.compiler.source>1.7</maven.compiler.source> 25 <maven.compiler.target>1.7</maven.compiler.target> 26 <junit.version>4.12</junit.version> 27 <zeppelin.daemon.package.base> 28 ../bin 29 </zeppelin.daemon.package.base> 30 </properties> 31 32 <dependencies> 33 <dependency> 34 <groupId>junit</groupId> 35 <artifactId>junit</artifactId> 36 <version>${junit.version}</version> 37 <scope>test</scope> 38 </dependency> 39 <dependency> 40 <groupId>org.example</groupId> 41 <artifactId>abc</artifactId> 42 <version>1.0.1</version> 43 <optional/> 44 </dependency> 45 <dependency> 46 <groupId>org.example</groupId> 47 <artifactId>no-version</artifactId> 48 </dependency> 49 <dependency> 50 <groupId>org.example</groupId> 51 <artifactId>exclusions</artifactId> 52 <version>1.0.0</version> 53 <exclusions> 54 <exclusion> 55 <groupId>org.exclude</groupId> 56 <artifactId>exclude</artifactId> 57 </exclusion> 58 </exclusions> 59 </dependency> 60 </dependencies> 61 62 <dependencyManagement> 63 <dependencies> 64 <dependency> 65 <groupId>org.example</groupId> 66 <artifactId>xyz</artifactId> 67 <version>2.0.0</version> 68 </dependency> 69 <dependency> 70 <groupId>org.example</groupId> 71 <artifactId>no-version</artifactId> 72 <version>2.0.0</version> 73 </dependency> 74 <dependency> 75 <groupId>org.import</groupId> 76 <artifactId>import</artifactId> 77 <version>1.0.0</version> 78 <type>pom</type> 79 <scope>import</scope> 80 </dependency> 81 </dependencies> 82 </dependencyManagement> 83 84 <profiles> 85 <profile> 86 <id>profile-one</id> 87 <activation> 88 <activeByDefault>true</activeByDefault> 89 </activation> 90 <properties> 91 <def.version>2.3.4</def.version> 92 </properties> 93 <dependencies> 94 <dependency> 95 <groupId>org.profile</groupId> 96 <artifactId>abc</artifactId> 97 <version>1.2.3</version> 98 </dependency> 99 <dependency> 100 <groupId>org.profile</groupId> 101 <artifactId>def</artifactId> 102 <version>${def.version}</version> 103 </dependency> 104 </dependencies> 105 </profile> 106 <profile> 107 <id>profile-two</id> 108 <dependencyManagement> 109 <dependencies> 110 <dependency> 111 <groupId>org.import</groupId> 112 <artifactId>xyz</artifactId> 113 <version>6.6.6</version> 114 <scope>import</scope> 115 <type>pom</type> 116 </dependency> 117 </dependencies> 118 </dependencyManagement> 119 </profile> 120 </profiles> 121 122 <build> 123 <pluginManagement> 124 <plugins> 125 <plugin> 126 <groupId>org.plugin</groupId> 127 <artifactId>plugin</artifactId> 128 <version>1.0.0</version> 129 <dependencies> 130 <dependency> 131 <groupId>org.dep</groupId> 132 <artifactId>plugin-dep</artifactId> 133 <version>2.3.3</version> 134 </dependency> 135 </dependencies> 136 </plugin> 137 </plugins> 138 </pluginManagement> 139 </build> 140 141 </project>