github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/openapi-generator/templates/java/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-compiler-plugin</artifactId>
    46                  <version>3.8.1</version>
    47                  <configuration>
    48                      <fork>true</fork>
    49                      <meminitial>128m</meminitial>
    50                      <maxmem>512m</maxmem>
    51                      <compilerArgs>
    52                          <arg>-Xlint:all</arg>
    53                          <arg>-J-Xss4m</arg><!-- Compiling the generated JSON.java file may require larger stack size. -->
    54                      </compilerArgs>
    55                  </configuration>
    56              </plugin>
    57  
    58              <plugin>
    59                  <groupId>org.apache.maven.plugins</groupId>
    60                  <artifactId>maven-enforcer-plugin</artifactId>
    61                  <version>3.0.0-M1</version>
    62                  <executions>
    63                      <execution>
    64                          <id>enforce-maven</id>
    65                          <goals>
    66                              <goal>enforce</goal>
    67                          </goals>
    68                          <configuration>
    69                              <rules>
    70                                  <requireMavenVersion>
    71                                      <version>2.2.0</version>
    72                                  </requireMavenVersion>
    73                              </rules>
    74                          </configuration>
    75                      </execution>
    76                  </executions>
    77              </plugin>
    78              <plugin>
    79                  <groupId>org.apache.maven.plugins</groupId>
    80                  <artifactId>maven-surefire-plugin</artifactId>
    81                  <version>2.12</version>
    82                  <configuration>
    83                      <systemProperties>
    84                          <property>
    85                              <name>loggerPath</name>
    86                              <value>conf/log4j.properties</value>
    87                          </property>
    88                      </systemProperties>
    89                      <argLine>-Xms512m -Xmx1500m</argLine>
    90                      <parallel>methods</parallel>
    91                      <forkMode>pertest</forkMode>
    92                  </configuration>
    93              </plugin>
    94              <plugin>
    95                  <artifactId>maven-dependency-plugin</artifactId>
    96                  <executions>
    97                      <execution>
    98                          <phase>package</phase>
    99                          <goals>
   100                              <goal>copy-dependencies</goal>
   101                          </goals>
   102                          <configuration>
   103                              <outputDirectory>${project.build.directory}/lib</outputDirectory>
   104                          </configuration>
   105                      </execution>
   106                  </executions>
   107              </plugin>
   108  
   109              <!-- attach test jar -->
   110              <plugin>
   111                  <groupId>org.apache.maven.plugins</groupId>
   112                  <artifactId>maven-jar-plugin</artifactId>
   113                  <version>2.2</version>
   114                  <executions>
   115                      <execution>
   116                          <goals>
   117                              <goal>jar</goal>
   118                              <goal>test-jar</goal>
   119                          </goals>
   120                      </execution>
   121                  </executions>
   122                  <configuration>
   123                  </configuration>
   124              </plugin>
   125  
   126              <plugin>
   127                  <groupId>org.codehaus.mojo</groupId>
   128                  <artifactId>build-helper-maven-plugin</artifactId>
   129                  <version>1.10</version>
   130                  <executions>
   131                      <execution>
   132                          <id>add_sources</id>
   133                          <phase>generate-sources</phase>
   134                          <goals>
   135                              <goal>add-source</goal>
   136                          </goals>
   137                          <configuration>
   138                              <sources>
   139                                  <source>src/main/java</source>
   140                              </sources>
   141                          </configuration>
   142                      </execution>
   143                      <execution>
   144                          <id>add_test_sources</id>
   145                          <phase>generate-test-sources</phase>
   146                          <goals>
   147                              <goal>add-test-source</goal>
   148                          </goals>
   149                          <configuration>
   150                              <sources>
   151                                  <source>src/test/java</source>
   152                              </sources>
   153                          </configuration>
   154                      </execution>
   155                  </executions>
   156              </plugin>
   157              <plugin>
   158                  <groupId>org.apache.maven.plugins</groupId>
   159                  <artifactId>maven-compiler-plugin</artifactId>
   160                  <version>3.6.1</version>
   161                  <configuration>
   162                      {{#supportJava6}}
   163                          <source>1.6</source>
   164                          <target>1.6</target>
   165                      {{/supportJava6}}
   166                      {{^supportJava6}}
   167                      {{#java8}}
   168                          <source>1.8</source>
   169                          <target>1.8</target>
   170                      {{/java8}}
   171                      {{^java8}}
   172                          <source>1.7</source>
   173                          <target>1.7</target>
   174                      {{/java8}}
   175                      {{/supportJava6}}
   176                  </configuration>
   177              </plugin>
   178              <plugin>
   179                  <groupId>org.apache.maven.plugins</groupId>
   180                  <artifactId>maven-javadoc-plugin</artifactId>
   181                  <version>3.1.1</version>
   182                  <configuration>
   183                      <doclint>none</doclint>
   184                  </configuration>
   185                  <executions>
   186                      <execution>
   187                          <id>attach-javadocs</id>
   188                          <goals>
   189                              <goal>jar</goal>
   190                          </goals>
   191                      </execution>
   192                  </executions>
   193              </plugin>
   194              <plugin>
   195                  <groupId>org.apache.maven.plugins</groupId>
   196                  <artifactId>maven-source-plugin</artifactId>
   197                  <version>2.2.1</version>
   198                  <executions>
   199                      <execution>
   200                          <id>attach-sources</id>
   201                          <goals>
   202                              <goal>jar-no-fork</goal>
   203                          </goals>
   204                      </execution>
   205                  </executions>
   206              </plugin>
   207          </plugins>
   208      </build>
   209  
   210      <profiles>
   211          <profile>
   212              <id>sign-artifacts</id>
   213              <build>
   214                  <plugins>
   215                      <plugin>
   216                          <groupId>org.apache.maven.plugins</groupId>
   217                          <artifactId>maven-gpg-plugin</artifactId>
   218                          <version>1.5</version>
   219                          <executions>
   220                              <execution>
   221                                  <id>sign-artifacts</id>
   222                                  <phase>verify</phase>
   223                                  <goals>
   224                                      <goal>sign</goal>
   225                                  </goals>
   226                              </execution>
   227                          </executions>
   228                      </plugin>
   229                  </plugins>
   230              </build>
   231          </profile>
   232      </profiles>
   233  
   234      <dependencies>
   235          <dependency>
   236              <groupId>io.swagger</groupId>
   237              <artifactId>swagger-annotations</artifactId>
   238              <version>${swagger-annotations-version}</version>
   239          </dependency>
   240  
   241          <!-- @Nullable annotation -->
   242          <dependency>
   243              <groupId>com.google.code.findbugs</groupId>
   244              <artifactId>jsr305</artifactId>
   245              <version>3.0.2</version>
   246          </dependency>
   247  
   248  
   249          <!-- HTTP client: jersey-client -->
   250          <dependency>
   251              <groupId>com.sun.jersey</groupId>
   252              <artifactId>jersey-client</artifactId>
   253              <version>${jersey-version}</version>
   254          </dependency>
   255          <dependency>
   256              <groupId>com.sun.jersey.contribs</groupId>
   257              <artifactId>jersey-multipart</artifactId>
   258              <version>${jersey-version}</version>
   259          </dependency>
   260  
   261          <!-- JSON processing: jackson -->
   262          <dependency>
   263              <groupId>com.fasterxml.jackson.core</groupId>
   264              <artifactId>jackson-core</artifactId>
   265              <version>${jackson-version}</version>
   266          </dependency>
   267          <dependency>
   268              <groupId>com.fasterxml.jackson.core</groupId>
   269              <artifactId>jackson-annotations</artifactId>
   270              <version>${jackson-version}</version>
   271          </dependency>
   272          <dependency>
   273              <groupId>com.fasterxml.jackson.core</groupId>
   274              <artifactId>jackson-databind</artifactId>
   275              <version>${jackson-version}</version>
   276          </dependency>
   277          <dependency>
   278              <groupId>com.fasterxml.jackson.jaxrs</groupId>
   279              <artifactId>jackson-jaxrs-json-provider</artifactId>
   280              <version>${jackson-version}</version>
   281          </dependency>
   282          {{#withXml}}
   283  
   284              <!-- XML processing: Jackson -->
   285              <dependency>
   286                  <groupId>com.fasterxml.jackson.dataformat</groupId>
   287                  <artifactId>jackson-dataformat-xml</artifactId>
   288                  <version>${jackson-version}</version>
   289              </dependency>
   290  
   291          {{/withXml}}
   292          {{#joda}}
   293              <dependency>
   294                  <groupId>com.fasterxml.jackson.datatype</groupId>
   295                  <artifactId>jackson-datatype-joda</artifactId>
   296                  <version>${jackson-version}</version>
   297              </dependency>
   298          {{/joda}}
   299          {{#java8}}
   300              <dependency>
   301                  <groupId>com.fasterxml.jackson.datatype</groupId>
   302                  <artifactId>jackson-datatype-jsr310</artifactId>
   303                  <version>${jackson-version}</version>
   304              </dependency>
   305          {{/java8}}
   306          {{#threetenbp}}
   307              <dependency>
   308                  <groupId>com.github.joschi.jackson</groupId>
   309                  <artifactId>jackson-datatype-threetenbp</artifactId>
   310                  <version>${jackson-threetenbp-version}</version>
   311              </dependency>
   312          {{/threetenbp}}
   313          {{^java8}}
   314              <!-- Base64 encoding that works in both JVM and Android -->
   315              <dependency>
   316                  <groupId>com.brsanthu</groupId>
   317                  <artifactId>migbase64</artifactId>
   318                  <version>2.2</version>
   319              </dependency>
   320          {{/java8}}
   321          {{#supportJava6}}
   322              <dependency>
   323                  <groupId>org.apache.commons</groupId>
   324                  <artifactId>commons-lang3</artifactId>
   325                  <version>${commons_lang3_version}</version>
   326              </dependency>
   327              <dependency>
   328                  <groupId>commons-io</groupId>
   329                  <artifactId>commons-io</artifactId>
   330                  <version>${commons_io_version}</version>
   331              </dependency>
   332          {{/supportJava6}}
   333          {{#useBeanValidation}}
   334              <!-- Bean Validation API support -->
   335              <dependency>
   336                  <groupId>javax.validation</groupId>
   337                  <artifactId>validation-api</artifactId>
   338                  <version>1.1.0.Final</version>
   339                  <scope>provided</scope>
   340              </dependency>
   341          {{/useBeanValidation}}
   342          {{#performBeanValidation}}
   343              <!-- Bean Validation Impl. used to perform BeanValidation -->
   344              <dependency>
   345                  <groupId>org.hibernate</groupId>
   346                  <artifactId>hibernate-validator</artifactId>
   347                  <version>5.4.1.Final</version>
   348              </dependency>
   349          {{/performBeanValidation}}
   350          {{#parcelableModel}}
   351              <!-- Needed for Parcelable support-->
   352              <dependency>
   353                  <groupId>com.google.android</groupId>
   354                  <artifactId>android</artifactId>
   355                  <version>4.1.1.4</version>
   356                  <scope>provided</scope>
   357              </dependency>
   358          {{/parcelableModel}}
   359          <!-- test dependencies -->
   360          <dependency>
   361              <groupId>junit</groupId>
   362              <artifactId>junit</artifactId>
   363              <version>${junit-version}</version>
   364              <scope>test</scope>
   365          </dependency>
   366      </dependencies>
   367      <properties>
   368          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   369          <swagger-annotations-version>1.5.21</swagger-annotations-version>
   370          <jersey-version>1.19.4</jersey-version>
   371          {{#supportJava6}}
   372          <commons_io_version>2.5</commons_io_version>
   373          <commons_lang3_version>3.6</commons_lang3_version>
   374          {{/supportJava6}}
   375          <jackson-version>2.10.3</jackson-version>
   376          {{#threetenbp}}
   377          <jackson-threetenbp-version>2.9.10</jackson-threetenbp-version>
   378          {{/threetenbp}}
   379          <maven-plugin-version>1.0.0</maven-plugin-version>
   380          <junit-version>4.13</junit-version>
   381      </properties>
   382      <distributionManagement>
   383        <repository>
   384          <id>github</id>
   385          <name>GitHub Packages</name>
   386          <url>https://maven.pkg.github.com/phrase/phrase-java</url>
   387        </repository>
   388      </distributionManagement>
   389  </project>