github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/openapi-generator/templates/java/libraries/rest-assured/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-M3</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>3.0.5</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.22.2</version>
    67                  <configuration>
    68                      <systemProperties>
    69                          <property>
    70                              <name>loggerPath</name>
    71                              <value>conf/log4j.properties</value>
    72                          </property>
    73                      </systemProperties>
    74                      <reuseForks>false</reuseForks>
    75                      <forkCount>1C</forkCount>
    76                  </configuration>
    77              </plugin>
    78              <plugin>
    79                  <artifactId>maven-dependency-plugin</artifactId>
    80                  <executions>
    81                      <execution>
    82                          <phase>package</phase>
    83                          <goals>
    84                              <goal>copy-dependencies</goal>
    85                          </goals>
    86                          <configuration>
    87                              <outputDirectory>${project.build.directory}/lib</outputDirectory>
    88                          </configuration>
    89                      </execution>
    90                  </executions>
    91              </plugin>
    92  
    93              <!-- attach test jar -->
    94              <plugin>
    95                  <groupId>org.apache.maven.plugins</groupId>
    96                  <artifactId>maven-jar-plugin</artifactId>
    97                  <version>2.2</version>
    98                  <executions>
    99                      <execution>
   100                          <goals>
   101                              <goal>jar</goal>
   102                              <goal>test-jar</goal>
   103                          </goals>
   104                      </execution>
   105                  </executions>
   106                  <configuration>
   107                  </configuration>
   108              </plugin>
   109  
   110              <plugin>
   111                  <groupId>org.codehaus.mojo</groupId>
   112                  <artifactId>build-helper-maven-plugin</artifactId>
   113                  <version>3.1.0</version>
   114                  <executions>
   115                      <execution>
   116                          <id>add_sources</id>
   117                          <phase>generate-sources</phase>
   118                          <goals>
   119                              <goal>add-source</goal>
   120                          </goals>
   121                          <configuration>
   122                              <sources>
   123                                  <source>src/main/java</source>
   124                              </sources>
   125                          </configuration>
   126                      </execution>
   127                      <execution>
   128                          <id>add_test_sources</id>
   129                          <phase>generate-test-sources</phase>
   130                          <goals>
   131                              <goal>add-test-source</goal>
   132                          </goals>
   133                          <configuration>
   134                              <sources>
   135                                  <source>src/test/java</source>
   136                              </sources>
   137                          </configuration>
   138                      </execution>
   139                  </executions>
   140              </plugin>
   141              <plugin>
   142                  <groupId>org.apache.maven.plugins</groupId>
   143                  <artifactId>maven-compiler-plugin</artifactId>
   144                  <version>3.8.1</version>
   145                  <configuration>
   146                      <source>1.8</source>
   147                      <target>1.8</target>
   148                  </configuration>
   149              </plugin>
   150              <plugin>
   151                  <groupId>org.apache.maven.plugins</groupId>
   152                  <artifactId>maven-javadoc-plugin</artifactId>
   153                  <version>3.2.0</version>
   154                  <configuration>
   155                      <doclint>none</doclint>
   156                  </configuration>
   157                  <executions>
   158                      <execution>
   159                          <id>attach-javadocs</id>
   160                          <goals>
   161                              <goal>jar</goal>
   162                          </goals>
   163                      </execution>
   164                  </executions>
   165              </plugin>
   166              <plugin>
   167                  <groupId>org.apache.maven.plugins</groupId>
   168                  <artifactId>maven-source-plugin</artifactId>
   169                  <version>3.2.0</version>
   170                  <executions>
   171                      <execution>
   172                          <id>attach-sources</id>
   173                          <goals>
   174                              <goal>jar-no-fork</goal>
   175                          </goals>
   176                      </execution>
   177                  </executions>
   178              </plugin>
   179          </plugins>
   180      </build>
   181  
   182      <profiles>
   183          <profile>
   184              <id>sign-artifacts</id>
   185              <build>
   186                  <plugins>
   187                      <plugin>
   188                          <groupId>org.apache.maven.plugins</groupId>
   189                          <artifactId>maven-gpg-plugin</artifactId>
   190                          <version>1.6</version>
   191                          <executions>
   192                              <execution>
   193                                  <id>sign-artifacts</id>
   194                                  <phase>verify</phase>
   195                                  <goals>
   196                                      <goal>sign</goal>
   197                                  </goals>
   198                              </execution>
   199                          </executions>
   200                      </plugin>
   201                  </plugins>
   202              </build>
   203          </profile>
   204      </profiles>
   205  
   206      {{#jackson}}
   207      <dependencyManagement>
   208          <dependencies>
   209              <dependency>
   210                  <groupId>com.fasterxml.jackson</groupId>
   211                  <artifactId>jackson-bom</artifactId>
   212                  <version>${jackson-version}</version>
   213                  <type>pom</type>
   214                  <scope>import</scope>
   215              </dependency>
   216          </dependencies>
   217      </dependencyManagement>
   218      {{/jackson}}
   219  
   220      <dependencies>
   221          <dependency>
   222              <groupId>io.swagger</groupId>
   223              <artifactId>swagger-annotations</artifactId>
   224              <version>${swagger-annotations-version}</version>
   225          </dependency>
   226          <!-- @Nullable annotation -->
   227          <dependency>
   228              <groupId>com.google.code.findbugs</groupId>
   229              <artifactId>jsr305</artifactId>
   230              <version>3.0.2</version>
   231          </dependency>
   232          {{^hideGenerationTimestamp}}
   233          <dependency>
   234              <groupId>javax.annotation</groupId>
   235              <artifactId>javax.annotation-api</artifactId>
   236              <version>1.3.2</version>
   237              <scope>provided</scope>
   238          </dependency>
   239          {{/hideGenerationTimestamp}}
   240          <dependency>
   241              <groupId>io.rest-assured</groupId>
   242              <artifactId>rest-assured</artifactId>
   243              <version>${rest-assured.version}</version>
   244          </dependency>
   245          {{#gson}}
   246          <dependency>
   247              <groupId>com.google.code.gson</groupId>
   248              <artifactId>gson</artifactId>
   249              <version>${gson-version}</version>
   250          </dependency>
   251          {{/gson}}
   252          {{#joda}}
   253          <dependency>
   254              <groupId>joda-time</groupId>
   255              <artifactId>joda-time</artifactId>
   256              <version>${jodatime-version}</version>
   257          </dependency>
   258          {{/joda}}
   259          {{#threetenbp}}
   260          <dependency>
   261              <groupId>org.threeten</groupId>
   262              <artifactId>threetenbp</artifactId>
   263              <version>${threetenbp-version}</version>
   264          </dependency>
   265          {{/threetenbp}}
   266          {{#gson}}
   267          <dependency>
   268              <groupId>io.gsonfire</groupId>
   269              <artifactId>gson-fire</artifactId>
   270              <version>${gson-fire-version}</version>
   271          </dependency>
   272          {{/gson}}
   273          {{#jackson}}
   274          <!-- JSON processing: jackson -->
   275          <dependency>
   276              <groupId>com.fasterxml.jackson.core</groupId>
   277              <artifactId>jackson-core</artifactId>
   278          </dependency>
   279          <dependency>
   280              <groupId>com.fasterxml.jackson.core</groupId>
   281              <artifactId>jackson-annotations</artifactId>
   282          </dependency>
   283          <dependency>
   284              <groupId>com.fasterxml.jackson.core</groupId>
   285              <artifactId>jackson-databind</artifactId>
   286          </dependency>
   287          <dependency>
   288              <groupId>org.openapitools</groupId>
   289              <artifactId>jackson-databind-nullable</artifactId>
   290              <version>${jackson-databind-nullable-version}</version>
   291          </dependency>
   292          {{#withXml}}
   293          <dependency>
   294              <groupId>com.fasterxml.jackson.dataformat</groupId>
   295              <artifactId>jackson-dataformat-xml</artifactId>
   296          </dependency>
   297          {{/withXml}}
   298          {{#joda}}
   299          <dependency>
   300              <groupId>com.fasterxml.jackson.datatype</groupId>
   301              <artifactId>jackson-datatype-joda</artifactId>
   302          </dependency>
   303          {{/joda}}
   304          {{#java8}}
   305          <dependency>
   306              <groupId>com.fasterxml.jackson.datatype</groupId>
   307              <artifactId>jackson-datatype-jsr310</artifactId>
   308          </dependency>
   309          {{/java8}}
   310          {{#threetenbp}}
   311          <dependency>
   312              <groupId>com.github.joschi.jackson</groupId>
   313              <artifactId>jackson-datatype-threetenbp</artifactId>
   314              <version>${jackson-threetenbp-version}</version>
   315          </dependency>
   316          {{/threetenbp}}
   317          {{/jackson}}
   318          <dependency>
   319              <groupId>com.squareup.okio</groupId>
   320              <artifactId>okio</artifactId>
   321              <version>${okio-version}</version>
   322          </dependency>
   323          {{#useBeanValidation}}
   324          <!-- Bean Validation API support -->
   325          <dependency>
   326              <groupId>javax.validation</groupId>
   327              <artifactId>validation-api</artifactId>
   328              <version>2.0.1.Final</version>
   329              <scope>provided</scope>
   330          </dependency>
   331          {{/useBeanValidation}}
   332          {{#performBeanValidation}}
   333          <!-- Bean Validation Impl. used to perform BeanValidation -->
   334          <dependency>
   335              <groupId>org.hibernate</groupId>
   336              <artifactId>hibernate-validator</artifactId>
   337              <version>6.0.19.Final</version>
   338          </dependency>
   339          {{/performBeanValidation}}
   340          <!-- test dependencies -->
   341          <dependency>
   342              <groupId>junit</groupId>
   343              <artifactId>junit</artifactId>
   344              <version>${junit-version}</version>
   345              <scope>test</scope>
   346          </dependency>
   347      </dependencies>
   348      <properties>
   349          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   350          <swagger-annotations-version>1.5.21</swagger-annotations-version>
   351          <rest-assured.version>4.3.0</rest-assured.version>
   352          <gson-version>2.8.6</gson-version>
   353          <gson-fire-version>1.8.4</gson-fire-version>
   354          {{#joda}}
   355          <jodatime-version>2.10.5</jodatime-version>
   356          {{/joda}}
   357          {{#threetenbp}}
   358          <threetenbp-version>1.4.3</threetenbp-version>
   359          {{/threetenbp}}
   360          {{#jackson}}
   361          <jackson-version>2.10.3</jackson-version>
   362          <jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
   363          {{#threetenbp}}
   364          <jackson-threetenbp-version>2.10.0</jackson-threetenbp-version>
   365          {{/threetenbp}}
   366          {{/jackson}}
   367          <okio-version>1.17.5</okio-version>
   368          <junit-version>4.13</junit-version>
   369      </properties>
   370  </project>