github.com/google/osv-scalibr@v0.4.1/guidedremediation/internal/manifest/maven/testdata/my-app/write_want.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.13.2</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.2</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>extra-one</artifactId> 67 <version>6.6.6</version> 68 </dependency> 69 <dependency> 70 <groupId>org.example</groupId> 71 <artifactId>extra-two</artifactId> 72 <version>9.9.9</version> 73 </dependency> 74 <dependency> 75 <groupId>org.example</groupId> 76 <artifactId>xyz</artifactId> 77 <version>2.0.1</version> 78 </dependency> 79 <dependency> 80 <groupId>org.example</groupId> 81 <artifactId>no-version</artifactId> 82 <version>2.0.0</version> 83 </dependency> 84 <dependency> 85 <groupId>org.import</groupId> 86 <artifactId>import</artifactId> 87 <version>1.0.0</version> 88 <type>pom</type> 89 <scope>import</scope> 90 </dependency> 91 </dependencies> 92 </dependencyManagement> 93 94 <profiles> 95 <profile> 96 <id>profile-one</id> 97 <activation> 98 <activeByDefault>true</activeByDefault> 99 </activation> 100 <properties> 101 <def.version>2.3.5</def.version> 102 </properties> 103 <dependencies> 104 <dependency> 105 <groupId>org.profile</groupId> 106 <artifactId>abc</artifactId> 107 <version>1.2.4</version> 108 </dependency> 109 <dependency> 110 <groupId>org.profile</groupId> 111 <artifactId>def</artifactId> 112 <version>${def.version}</version> 113 </dependency> 114 </dependencies> 115 </profile> 116 <profile> 117 <id>profile-two</id> 118 <dependencyManagement> 119 <dependencies> 120 <dependency> 121 <groupId>org.import</groupId> 122 <artifactId>xyz</artifactId> 123 <version>7.0.0</version> 124 <scope>import</scope> 125 <type>pom</type> 126 </dependency> 127 </dependencies> 128 </dependencyManagement> 129 </profile> 130 </profiles> 131 132 <build> 133 <pluginManagement> 134 <plugins> 135 <plugin> 136 <groupId>org.plugin</groupId> 137 <artifactId>plugin</artifactId> 138 <version>1.0.0</version> 139 <dependencies> 140 <dependency> 141 <groupId>org.dep</groupId> 142 <artifactId>plugin-dep</artifactId> 143 <version>2.3.4</version> 144 </dependency> 145 </dependencies> 146 </plugin> 147 </plugins> 148 </pluginManagement> 149 </build> 150 151 </project>