github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/openapi-generator/templates/java/libraries/jersey2/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.6</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                  <executions>
   168                      <execution>
   169                          <id>attach-javadocs</id>
   170                          <goals>
   171                              <goal>jar</goal>
   172                          </goals>
   173                      </execution>
   174                  </executions>
   175                  <configuration>
   176                      <doclint>none</doclint>
   177                      <tags>
   178                          <tag>
   179                              <name>http.response.details</name>
   180                              <placement>a</placement>
   181                              <head>Http Response Details:</head>
   182                          </tag>
   183                      </tags>
   184                  </configuration>
   185              </plugin>
   186              <plugin>
   187                  <groupId>org.apache.maven.plugins</groupId>
   188                  <artifactId>maven-source-plugin</artifactId>
   189                  <version>2.2.1</version>
   190                  <executions>
   191                      <execution>
   192                          <id>attach-sources</id>
   193                          <goals>
   194                              <goal>jar-no-fork</goal>
   195                          </goals>
   196                      </execution>
   197                  </executions>
   198              </plugin>
   199          </plugins>
   200      </build>
   201  
   202      <profiles>
   203          <profile>
   204              <id>sign-artifacts</id>
   205              <build>
   206                  <plugins>
   207                      <plugin>
   208                          <groupId>org.apache.maven.plugins</groupId>
   209                          <artifactId>maven-gpg-plugin</artifactId>
   210                          <version>1.5</version>
   211                          <executions>
   212                              <execution>
   213                                  <id>sign-artifacts</id>
   214                                  <phase>verify</phase>
   215                                  <goals>
   216                                      <goal>sign</goal>
   217                                  </goals>
   218                              </execution>
   219                          </executions>
   220                      </plugin>
   221                  </plugins>
   222              </build>
   223          </profile>
   224      </profiles>
   225  
   226      <dependencies>
   227          <dependency>
   228              <groupId>io.swagger</groupId>
   229              <artifactId>swagger-annotations</artifactId>
   230              <version>${swagger-annotations-version}</version>
   231          </dependency>
   232  
   233          <!-- @Nullable annotation -->
   234          <dependency>
   235              <groupId>com.google.code.findbugs</groupId>
   236              <artifactId>jsr305</artifactId>
   237              <version>3.0.2</version>
   238          </dependency>
   239          
   240          <!-- HTTP client: jersey-client -->
   241          <dependency>
   242              <groupId>org.glassfish.jersey.core</groupId>
   243              <artifactId>jersey-client</artifactId>
   244              <version>${jersey-version}</version>
   245          </dependency>
   246          {{^supportJava6}}
   247          <dependency>
   248              <groupId>org.glassfish.jersey.inject</groupId>
   249              <artifactId>jersey-hk2</artifactId>
   250              <version>${jersey-version}</version>
   251          </dependency>
   252          {{/supportJava6}}
   253          <dependency>
   254              <groupId>org.glassfish.jersey.media</groupId>
   255              <artifactId>jersey-media-multipart</artifactId>
   256              <version>${jersey-version}</version>
   257          </dependency>
   258          <dependency>
   259              <groupId>org.glassfish.jersey.media</groupId>
   260              <artifactId>jersey-media-json-jackson</artifactId>
   261              <version>${jersey-version}</version>
   262          </dependency>
   263  
   264          <!-- JSON processing: jackson -->
   265          <dependency>
   266              <groupId>com.fasterxml.jackson.core</groupId>
   267              <artifactId>jackson-core</artifactId>
   268              <version>${jackson-version}</version>
   269          </dependency>
   270          <dependency>
   271              <groupId>com.fasterxml.jackson.core</groupId>
   272              <artifactId>jackson-annotations</artifactId>
   273              <version>${jackson-version}</version>
   274          </dependency>
   275          <dependency>
   276              <groupId>com.fasterxml.jackson.core</groupId>
   277              <artifactId>jackson-databind</artifactId>
   278              <version>${jackson-databind-version}</version>
   279          </dependency>
   280          <dependency>
   281              <groupId>org.openapitools</groupId>
   282              <artifactId>jackson-databind-nullable</artifactId>
   283              <version>${jackson-databind-nullable-version}</version>
   284          </dependency>
   285          {{#withXml}}
   286  
   287              <!-- XML processing: JAXB -->
   288              <dependency>
   289                  <groupId>org.glassfish.jersey.media</groupId>
   290                  <artifactId>jersey-media-jaxb</artifactId>
   291                  <version>${jersey-version}</version>
   292              </dependency>
   293  
   294          {{/withXml}}
   295          {{#joda}}
   296              <dependency>
   297                  <groupId>com.fasterxml.jackson.datatype</groupId>
   298                  <artifactId>jackson-datatype-joda</artifactId>
   299                  <version>${jackson-version}</version>
   300              </dependency>
   301          {{/joda}}
   302          {{#java8}}
   303              <dependency>
   304                  <groupId>com.fasterxml.jackson.datatype</groupId>
   305                  <artifactId>jackson-datatype-jsr310</artifactId>
   306                  <version>${jackson-version}</version>
   307              </dependency>
   308          {{/java8}}
   309          {{#threetenbp}}
   310              <dependency>
   311                  <groupId>com.github.joschi.jackson</groupId>
   312                  <artifactId>jackson-datatype-threetenbp</artifactId>
   313                  <version>${threetenbp-version}</version>
   314              </dependency>
   315          {{/threetenbp}}
   316          {{^java8}}
   317              <!-- Base64 encoding that works in both JVM and Android -->
   318              <dependency>
   319                  <groupId>com.brsanthu</groupId>
   320                  <artifactId>migbase64</artifactId>
   321                  <version>2.2</version>
   322              </dependency>
   323          {{/java8}}
   324          {{#supportJava6}}
   325              <dependency>
   326                  <groupId>org.apache.commons</groupId>
   327                  <artifactId>commons-lang3</artifactId>
   328                  <version>${commons_lang3_version}</version>
   329              </dependency>
   330              <dependency>
   331                  <groupId>commons-io</groupId>
   332                  <artifactId>commons-io</artifactId>
   333                  <version>${commons_io_version}</version>
   334              </dependency>
   335          {{/supportJava6}}
   336          {{#useBeanValidation}}
   337              <!-- Bean Validation API support -->
   338              <dependency>
   339                  <groupId>javax.validation</groupId>
   340                  <artifactId>validation-api</artifactId>
   341                  <version>1.1.0.Final</version>
   342                  <scope>provided</scope>
   343              </dependency>
   344          {{/useBeanValidation}}
   345          <!-- test dependencies -->
   346          <dependency>
   347              <groupId>junit</groupId>
   348              <artifactId>junit</artifactId>
   349              <version>${junit-version}</version>
   350              <scope>test</scope>
   351          </dependency>
   352      </dependencies>
   353      <properties>
   354          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   355          <swagger-annotations-version>1.6.1</swagger-annotations-version>
   356          {{^supportJava6}}
   357          <jersey-version>2.27</jersey-version>
   358          {{/supportJava6}}
   359          {{#supportJava6}}
   360          <jersey-version>2.6</jersey-version>
   361          <commons_io_version>2.5</commons_io_version>
   362          <commons_lang3_version>3.6</commons_lang3_version>
   363          {{/supportJava6}}
   364          <jackson-version>2.10.3</jackson-version>
   365          <jackson-databind-version>2.10.3</jackson-databind-version>
   366          <jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
   367          {{#threetenbp}}
   368          <threetenbp-version>2.9.10</threetenbp-version>
   369          {{/threetenbp}}
   370          <maven-plugin-version>1.0.0</maven-plugin-version>
   371          <junit-version>4.13</junit-version>
   372      </properties>
   373  </project>