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