github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/openapi-generator/templates/java/libraries/google-api-client/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.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.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                  <configuration>
   168                      <doclint>none</doclint>
   169                  </configuration>
   170                  <executions>
   171                      <execution>
   172                          <id>attach-javadocs</id>
   173                          <goals>
   174                              <goal>jar</goal>
   175                          </goals>
   176                      </execution>
   177                  </executions>
   178              </plugin>
   179              <plugin>
   180                  <groupId>org.apache.maven.plugins</groupId>
   181                  <artifactId>maven-source-plugin</artifactId>
   182                  <version>2.2.1</version>
   183                  <executions>
   184                      <execution>
   185                          <id>attach-sources</id>
   186                          <goals>
   187                              <goal>jar-no-fork</goal>
   188                          </goals>
   189                      </execution>
   190                  </executions>
   191              </plugin>
   192          </plugins>
   193      </build>
   194  
   195      <profiles>
   196          <profile>
   197              <id>sign-artifacts</id>
   198              <build>
   199                  <plugins>
   200                      <plugin>
   201                          <groupId>org.apache.maven.plugins</groupId>
   202                          <artifactId>maven-gpg-plugin</artifactId>
   203                          <version>1.5</version>
   204                          <executions>
   205                              <execution>
   206                                  <id>sign-artifacts</id>
   207                                  <phase>verify</phase>
   208                                  <goals>
   209                                      <goal>sign</goal>
   210                                  </goals>
   211                              </execution>
   212                          </executions>
   213                      </plugin>
   214                  </plugins>
   215              </build>
   216          </profile>
   217      </profiles>
   218  
   219      <dependencies>
   220          <dependency>
   221              <groupId>io.swagger</groupId>
   222              <artifactId>swagger-annotations</artifactId>
   223              <version>${swagger-annotations-version}</version>
   224          </dependency>
   225          <!-- @Nullable annotation -->
   226          <dependency>
   227              <groupId>com.google.code.findbugs</groupId>
   228              <artifactId>jsr305</artifactId>
   229              <version>3.0.2</version>
   230          </dependency>
   231          <!-- HTTP client: google-api-client -->
   232          <dependency>
   233              <groupId>com.google.api-client</groupId>
   234              <artifactId>google-api-client</artifactId>
   235              <version>${google-api-client-version}</version>
   236          </dependency>
   237          <!-- Jersey common to get an implementation of javax.ws.rs.core.UriBuilder for building URLs from templates -->
   238          <dependency>
   239              <groupId>org.glassfish.jersey.core</groupId>
   240              <artifactId>jersey-common</artifactId>
   241              <version>${jersey-common-version}</version>
   242          </dependency>
   243          <!-- JSON processing: jackson -->
   244          <dependency>
   245              <groupId>com.fasterxml.jackson.core</groupId>
   246              <artifactId>jackson-core</artifactId>
   247              <version>${jackson-version}</version>
   248          </dependency>
   249          <dependency>
   250              <groupId>com.fasterxml.jackson.core</groupId>
   251              <artifactId>jackson-annotations</artifactId>
   252              <version>${jackson-version}</version>
   253          </dependency>
   254          <dependency>
   255              <groupId>com.fasterxml.jackson.core</groupId>
   256              <artifactId>jackson-databind</artifactId>
   257              <version>${jackson-version}</version>
   258          </dependency>
   259          <dependency>
   260              <groupId>org.openapitools</groupId>
   261              <artifactId>jackson-databind-nullable</artifactId>
   262              <version>${jackson-databind-nullable-version}</version>
   263          </dependency>
   264          {{#withXml}}
   265              <!-- XML processing: Jackson -->
   266              <dependency>
   267                  <groupId>com.fasterxml.jackson.dataformat</groupId>
   268                  <artifactId>jackson-dataformat-xml</artifactId>
   269                  <version>${jackson-version}</version>
   270              </dependency>
   271          {{/withXml}}
   272          {{#java8}}
   273              <dependency>
   274                  <groupId>com.fasterxml.jackson.datatype</groupId>
   275                  <artifactId>jackson-datatype-jsr310</artifactId>
   276                  <version>${jackson-version}</version>
   277              </dependency>
   278          {{/java8}}
   279          {{#joda}}
   280              <dependency>
   281                  <groupId>com.fasterxml.jackson.datatype</groupId>
   282                  <artifactId>jackson-datatype-joda</artifactId>
   283                  <version>${jackson-version}</version>
   284              </dependency>
   285              <dependency>
   286                  <groupId>joda-time</groupId>
   287                  <artifactId>joda-time</artifactId>
   288                  <version>${jodatime-version}</version>
   289              </dependency>
   290          {{/joda}}
   291          {{#threetenbp}}
   292              <dependency>
   293                  <groupId>com.github.joschi.jackson</groupId>
   294                  <artifactId>jackson-datatype-threetenbp</artifactId>
   295                  <version>${jackson-threetenbp-version}</version>
   296              </dependency>
   297          {{/threetenbp}}
   298  
   299          <!-- test dependencies -->
   300          <dependency>
   301              <groupId>junit</groupId>
   302              <artifactId>junit</artifactId>
   303              <version>${junit-version}</version>
   304              <scope>test</scope>
   305          </dependency>
   306      </dependencies>
   307      <properties>
   308          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   309          <swagger-annotations-version>1.5.22</swagger-annotations-version>
   310          <google-api-client-version>1.30.2</google-api-client-version>
   311          <jersey-common-version>2.25.1</jersey-common-version>
   312          <jackson-version>2.10.3</jackson-version>
   313          <jackson-databind-version>2.10.3</jackson-databind-version>
   314          <jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
   315          {{#joda}}
   316          <jodatime-version>2.9.9</jodatime-version>
   317          {{/joda}}
   318          {{#threetenbp}}
   319          <jackson-threetenbp-version>2.9.10</jackson-threetenbp-version>
   320          {{/threetenbp}}
   321          <maven-plugin-version>1.0.0</maven-plugin-version>
   322          <junit-version>4.13</junit-version>
   323      </properties>
   324  </project>