github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/openapi-generator/templates/java/libraries/retrofit/pom.mustache (about) 1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 3 <modelVersion>4.0.0</modelVersion> 4 <groupId>{{groupId}}</groupId> 5 <artifactId>{{artifactId}}</artifactId> 6 <packaging>jar</packaging> 7 <name>{{artifactId}}</name> 8 <version>{{artifactVersion}}</version> 9 <url>{{artifactUrl}}</url> 10 <description>{{artifactDescription}}</description> 11 <scm> 12 <connection>{{scmConnection}}</connection> 13 <developerConnection>{{scmDeveloperConnection}}</developerConnection> 14 <url>{{scmUrl}}</url> 15 </scm> 16 {{#parentOverridden}} 17 <parent> 18 <groupId>{{{parentGroupId}}}</groupId> 19 <artifactId>{{{parentArtifactId}}}</artifactId> 20 <version>{{{parentVersion}}}</version> 21 </parent> 22 {{/parentOverridden}} 23 24 <licenses> 25 <license> 26 <name>{{licenseName}}</name> 27 <url>{{licenseUrl}}</url> 28 <distribution>repo</distribution> 29 </license> 30 </licenses> 31 32 <developers> 33 <developer> 34 <name>{{developerName}}</name> 35 <email>{{developerEmail}}</email> 36 <organization>{{developerOrganization}}</organization> 37 <organizationUrl>{{developerOrganizationUrl}}</organizationUrl> 38 </developer> 39 </developers> 40 41 <build> 42 <plugins> 43 <plugin> 44 <groupId>org.apache.maven.plugins</groupId> 45 <artifactId>maven-enforcer-plugin</artifactId> 46 <version>3.0.0-M1</version> 47 <executions> 48 <execution> 49 <id>enforce-maven</id> 50 <goals> 51 <goal>enforce</goal> 52 </goals> 53 <configuration> 54 <rules> 55 <requireMavenVersion> 56 <version>2.2.0</version> 57 </requireMavenVersion> 58 </rules> 59 </configuration> 60 </execution> 61 </executions> 62 </plugin> 63 <plugin> 64 <groupId>org.apache.maven.plugins</groupId> 65 <artifactId>maven-surefire-plugin</artifactId> 66 <version>2.12</version> 67 <configuration> 68 <systemProperties> 69 <property> 70 <name>loggerPath</name> 71 <value>conf/log4j.properties</value> 72 </property> 73 </systemProperties> 74 <argLine>-Xms512m -Xmx1500m</argLine> 75 <parallel>methods</parallel> 76 <forkMode>pertest</forkMode> 77 </configuration> 78 </plugin> 79 <plugin> 80 <artifactId>maven-dependency-plugin</artifactId> 81 <executions> 82 <execution> 83 <phase>package</phase> 84 <goals> 85 <goal>copy-dependencies</goal> 86 </goals> 87 <configuration> 88 <outputDirectory>${project.build.directory}/lib</outputDirectory> 89 </configuration> 90 </execution> 91 </executions> 92 </plugin> 93 94 <!-- attach test jar --> 95 <plugin> 96 <groupId>org.apache.maven.plugins</groupId> 97 <artifactId>maven-jar-plugin</artifactId> 98 <version>2.2</version> 99 <executions> 100 <execution> 101 <goals> 102 <goal>jar</goal> 103 <goal>test-jar</goal> 104 </goals> 105 </execution> 106 </executions> 107 <configuration> 108 </configuration> 109 </plugin> 110 111 <plugin> 112 <groupId>org.codehaus.mojo</groupId> 113 <artifactId>build-helper-maven-plugin</artifactId> 114 <version>1.10</version> 115 <executions> 116 <execution> 117 <id>add_sources</id> 118 <phase>generate-sources</phase> 119 <goals> 120 <goal>add-source</goal> 121 </goals> 122 <configuration> 123 <sources> 124 <source>src/main/java</source> 125 </sources> 126 </configuration> 127 </execution> 128 <execution> 129 <id>add_test_sources</id> 130 <phase>generate-test-sources</phase> 131 <goals> 132 <goal>add-test-source</goal> 133 </goals> 134 <configuration> 135 <sources> 136 <source>src/test/java</source> 137 </sources> 138 </configuration> 139 </execution> 140 </executions> 141 </plugin> 142 <plugin> 143 <groupId>org.apache.maven.plugins</groupId> 144 <artifactId>maven-compiler-plugin</artifactId> 145 <version>3.6.1</version> 146 <configuration> 147 {{#supportJava6}} 148 <source>1.6</source> 149 <target>1.6</target> 150 {{/supportJava6}} 151 {{^supportJava6}} 152 {{#java8}} 153 <source>1.8</source> 154 <target>1.8</target> 155 {{/java8}} 156 {{^java8}} 157 <source>1.7</source> 158 <target>1.7</target> 159 {{/java8}} 160 {{/supportJava6}} 161 </configuration> 162 </plugin> 163 <plugin> 164 <groupId>org.apache.maven.plugins</groupId> 165 <artifactId>maven-javadoc-plugin</artifactId> 166 <version>3.1.1</version> 167 <configuration> 168 <doclint>none</doclint> 169 </configuration> 170 <executions> 171 <execution> 172 <id>attach-javadocs</id> 173 <goals> 174 <goal>jar</goal> 175 </goals> 176 </execution> 177 </executions> 178 </plugin> 179 <plugin> 180 <groupId>org.apache.maven.plugins</groupId> 181 <artifactId>maven-source-plugin</artifactId> 182 <version>2.2.1</version> 183 <executions> 184 <execution> 185 <id>attach-sources</id> 186 <goals> 187 <goal>jar-no-fork</goal> 188 </goals> 189 </execution> 190 </executions> 191 </plugin> 192 </plugins> 193 </build> 194 195 <profiles> 196 <profile> 197 <id>sign-artifacts</id> 198 <build> 199 <plugins> 200 <plugin> 201 <groupId>org.apache.maven.plugins</groupId> 202 <artifactId>maven-gpg-plugin</artifactId> 203 <version>1.5</version> 204 <executions> 205 <execution> 206 <id>sign-artifacts</id> 207 <phase>verify</phase> 208 <goals> 209 <goal>sign</goal> 210 </goals> 211 </execution> 212 </executions> 213 </plugin> 214 </plugins> 215 </build> 216 </profile> 217 </profiles> 218 219 <dependencies> 220 <dependency> 221 <groupId>io.swagger</groupId> 222 <artifactId>swagger-annotations</artifactId> 223 <version>${swagger-annotations-version}</version> 224 </dependency> 225 <!-- @Nullable annotation --> 226 <dependency> 227 <groupId>com.google.code.findbugs</groupId> 228 <artifactId>jsr305</artifactId> 229 <version>3.0.2</version> 230 </dependency> 231 <dependency> 232 <groupId>com.squareup.retrofit</groupId> 233 <artifactId>retrofit</artifactId> 234 <version>${retrofit-version}</version> 235 </dependency> 236 <dependency> 237 <groupId>org.apache.oltu.oauth2</groupId> 238 <artifactId>org.apache.oltu.oauth2.client</artifactId> 239 <version>${oltu-version}</version> 240 </dependency> 241 <dependency> 242 <groupId>com.squareup.okhttp</groupId> 243 <artifactId>okhttp</artifactId> 244 <version>${okhttp-version}</version> 245 </dependency> 246 <dependency> 247 <groupId>joda-time</groupId> 248 <artifactId>joda-time</artifactId> 249 <version>${jodatime-version}</version> 250 </dependency> 251 {{#threetenbp}} 252 <dependency> 253 <groupId>org.threeten</groupId> 254 <artifactId>threetenbp</artifactId> 255 <version>${threetenbp-version}</version> 256 </dependency> 257 {{/threetenbp}} 258 {{#parcelableModel}} 259 <!-- Needed for Parcelable support--> 260 <dependency> 261 <groupId>com.google.android</groupId> 262 <artifactId>android</artifactId> 263 <version>4.1.1.4</version> 264 <scope>provided</scope> 265 </dependency> 266 {{/parcelableModel}} 267 <!-- test dependencies --> 268 <dependency> 269 <groupId>junit</groupId> 270 <artifactId>junit</artifactId> 271 <version>${junit-version}</version> 272 <scope>test</scope> 273 </dependency> 274 </dependencies> 275 <properties> 276 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 277 <swagger-annotations-version>1.5.21</swagger-annotations-version> 278 <retrofit-version>1.9.0</retrofit-version> 279 <okhttp-version>2.7.5</okhttp-version> 280 <jodatime-version>2.9.9</jodatime-version> 281 {{#threetenbp}} 282 <threetenbp-version>1.4.0</threetenbp-version> 283 {{/threetenbp}} 284 <oltu-version>1.0.1</oltu-version> 285 <maven-plugin-version>1.0.0</maven-plugin-version> 286 <junit-version>4.13</junit-version> 287 </properties> 288 </project>