github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/openapi-generator/templates/java/libraries/feign/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>3.0.0-M4</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                      <threadCount>10</threadCount>
    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.8.1</version>
   146                  <configuration>
   147                          <source>1.8</source>
   148                          <target>1.8</target>
   149                      <fork>true</fork>
   150                      <meminitial>128m</meminitial>
   151                      <maxmem>512m</maxmem>
   152                      <compilerArgs>
   153                          <arg>-Xlint:all</arg>
   154                          <arg>-J-Xss4m</arg><!-- Compiling the generated JSON.java file may require larger stack size. -->
   155                      </compilerArgs>
   156                  </configuration>
   157              </plugin>
   158              <plugin>
   159                  <groupId>org.apache.maven.plugins</groupId>
   160                  <artifactId>maven-javadoc-plugin</artifactId>
   161                  <version>3.1.1</version>
   162                  <configuration>
   163                      <doclint>none</doclint>
   164                  </configuration>
   165                  <executions>
   166                      <execution>
   167                          <id>attach-javadocs</id>
   168                          <goals>
   169                              <goal>jar</goal>
   170                          </goals>
   171                      </execution>
   172                  </executions>
   173              </plugin>
   174              <plugin>
   175                  <groupId>org.apache.maven.plugins</groupId>
   176                  <artifactId>maven-source-plugin</artifactId>
   177                  <version>2.2.1</version>
   178                  <executions>
   179                      <execution>
   180                          <id>attach-sources</id>
   181                          <goals>
   182                              <goal>jar-no-fork</goal>
   183                          </goals>
   184                      </execution>
   185                  </executions>
   186              </plugin>
   187          </plugins>
   188      </build>
   189  
   190      <profiles>
   191          <profile>
   192              <id>sign-artifacts</id>
   193              <build>
   194                  <plugins>
   195                      <plugin>
   196                          <groupId>org.apache.maven.plugins</groupId>
   197                          <artifactId>maven-gpg-plugin</artifactId>
   198                          <version>1.5</version>
   199                          <executions>
   200                              <execution>
   201                                  <id>sign-artifacts</id>
   202                                  <phase>verify</phase>
   203                                  <goals>
   204                                      <goal>sign</goal>
   205                                  </goals>
   206                              </execution>
   207                          </executions>
   208                      </plugin>
   209                  </plugins>
   210              </build>
   211          </profile>
   212      </profiles>
   213  
   214      <dependencies>
   215          <dependency>
   216              <groupId>io.swagger</groupId>
   217              <artifactId>swagger-annotations</artifactId>
   218              <version>${swagger-annotations-version}</version>
   219          </dependency>
   220  
   221          <!-- @Nullable annotation -->
   222          <dependency>
   223              <groupId>com.google.code.findbugs</groupId>
   224              <artifactId>jsr305</artifactId>
   225              <version>3.0.2</version>
   226          </dependency>
   227          
   228          <!-- HTTP client: Netflix Feign -->
   229          <dependency>
   230              <groupId>io.github.openfeign</groupId>
   231              <artifactId>feign-core</artifactId>
   232              <version>${feign-version}</version>
   233          </dependency>
   234          <dependency>
   235              <groupId>io.github.openfeign</groupId>
   236              <artifactId>feign-jackson</artifactId>
   237              <version>${feign-version}</version>
   238          </dependency>
   239          <dependency>
   240              <groupId>io.github.openfeign</groupId>
   241              <artifactId>feign-slf4j</artifactId>
   242              <version>${feign-version}</version>
   243          </dependency>
   244          <dependency>
   245              <groupId>io.github.openfeign.form</groupId>
   246              <artifactId>feign-form</artifactId>
   247              <version>${feign-form-version}</version>
   248          </dependency>
   249  
   250          <!-- JSON processing: jackson -->
   251          <dependency>
   252              <groupId>com.fasterxml.jackson.core</groupId>
   253              <artifactId>jackson-core</artifactId>
   254              <version>${jackson-version}</version>
   255          </dependency>
   256          <dependency>
   257              <groupId>com.fasterxml.jackson.core</groupId>
   258              <artifactId>jackson-annotations</artifactId>
   259              <version>${jackson-version}</version>
   260          </dependency>
   261          <dependency>
   262              <groupId>com.fasterxml.jackson.core</groupId>
   263              <artifactId>jackson-databind</artifactId>
   264              <version>${jackson-databind-version}</version>
   265          </dependency>
   266          <dependency>
   267              <groupId>org.openapitools</groupId>
   268              <artifactId>jackson-databind-nullable</artifactId>
   269              <version>${jackson-databind-nullable-version}</version>
   270          </dependency>
   271          {{#withXml}}
   272  
   273              <!-- XML Support -->
   274              <dependency>
   275                  <groupId>com.fasterxml.jackson.dataformat</groupId>
   276                  <artifactId>jackson-dataformat-xml</artifactId>
   277                  <version>${jackson-version}</version>
   278              </dependency>
   279  
   280          {{/withXml}}
   281          {{#joda}}
   282              <dependency>
   283                  <groupId>com.fasterxml.jackson.datatype</groupId>
   284                  <artifactId>jackson-datatype-joda</artifactId>
   285                  <version>${jackson-version}</version>
   286              </dependency>
   287          {{/joda}}
   288          {{#java8}}
   289              <dependency>
   290                  <groupId>com.fasterxml.jackson.datatype</groupId>
   291                  <artifactId>jackson-datatype-jsr310</artifactId>
   292                  <version>${jackson-version}</version>
   293              </dependency>
   294          {{/java8}}
   295          {{#threetenbp}}
   296              <dependency>
   297                  <groupId>com.github.joschi.jackson</groupId>
   298                  <artifactId>jackson-datatype-threetenbp</artifactId>
   299                  <version>${jackson-threetenbp-version}</version>
   300              </dependency>
   301          {{/threetenbp}}
   302          <dependency>
   303              <groupId>org.apache.oltu.oauth2</groupId>
   304              <artifactId>org.apache.oltu.oauth2.client</artifactId>
   305              <version>${oltu-version}</version>
   306          </dependency>
   307  
   308          <!-- test dependencies -->
   309          <dependency>
   310              <groupId>junit</groupId>
   311              <artifactId>junit</artifactId>
   312              <version>${junit-version}</version>
   313              <scope>test</scope>
   314          </dependency>
   315          <dependency>
   316              <groupId>com.squareup.okhttp3</groupId>
   317              <artifactId>mockwebserver</artifactId>
   318              <version>3.6.0</version>
   319              <scope>test</scope>
   320          </dependency>
   321          <dependency>
   322              <groupId>org.assertj</groupId>
   323              <artifactId>assertj-core</artifactId>
   324              <version>1.7.1</version>
   325              <scope>test</scope>
   326          </dependency>
   327      </dependencies>
   328      <properties>
   329          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   330          <java.version>{{#supportJava6}}1.6{{/supportJava6}}{{^supportJava6}}{{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}{{/supportJava6}}</java.version>
   331          <maven.compiler.source>${java.version}</maven.compiler.source>
   332          <maven.compiler.target>${java.version}</maven.compiler.target>
   333          <swagger-annotations-version>1.5.24</swagger-annotations-version>
   334          <feign-version>{{#useFeign10}}11.0{{/useFeign10}}{{^useFeign10}}9.7.0{{/useFeign10}}</feign-version>
   335          <feign-form-version>{{#useFeign10}}3.8.0{{/useFeign10}}{{^useFeign10}}2.1.0{{/useFeign10}}</feign-form-version>
   336          <jackson-version>2.10.3</jackson-version>
   337          <jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
   338          <jackson-databind-version>2.10.3</jackson-databind-version>
   339          {{#threetenbp}}
   340          <jackson-threetenbp-version>2.9.10</jackson-threetenbp-version>
   341          {{/threetenbp}}
   342          <junit-version>4.13</junit-version>
   343          <maven-plugin-version>1.0.0</maven-plugin-version>
   344          <oltu-version>1.0.1</oltu-version>
   345      </properties>
   346  </project>