openapi2java
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>io.github.torand</groupId> <artifactId>openapi2java</artifactId> <version>1.2.3</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Copyright (c) 2024 Tore Eide Andersen ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>io.github.torand</groupId> <artifactId>openapi2java</artifactId> <version>1.2.3</version> <packaging>maven-plugin</packaging> <name>OpenAPI2Java</name> <description>Maven plugin to generate Java models and REST clients from an OpenAPI specification</description> <inceptionYear>2024</inceptionYear> <url>https://github.com/torand/openapi2java</url> <organization> <name>Tore Eide Andersen</name> <url>https://github.com/torand</url> </organization> <licenses> <license> <name>Apache License Version 2.0</name> <url>https://www.apache.org/licenses/LICENSE-2.0</url> <distribution>repo</distribution> </license> </licenses> <developers> <developer> <id>torand</id> <name>Tore Eide Andersen</name> <email>tore at nordmyrvegen.net</email> </developer> </developers> <scm> <connection>scm:git:https://github.com/torand/openapi2java.git</connection> <developerConnection>scm:git:https://github.com/torand/openapi2java.git</developerConnection> <url>https://github.com/torand/openapi2java.git</url> <tag>HEAD</tag> </scm> <issueManagement> <system>github</system> <url>https://github.com/torand/openapi2java/issues</url> </issueManagement> <properties> <maven.compiler.parameters>true</maven.compiler.parameters> <maven.compiler.source>17</maven.compiler.source> <maven.compiler.target>17</maven.compiler.target> <maven.compiler.release>17</maven.compiler.release> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version> <maven-surefire-plugin.version>3.5.3</maven-surefire-plugin.version> <maven-plugin-plugin.version>3.15.1</maven-plugin-plugin.version> <maven-plugin-api.version>3.9.10</maven-plugin-api.version> <maven-model.version>3.9.10</maven-model.version> <maven-artifact.version>3.9.10</maven-artifact.version> <maven-plugin-annotations.version>3.15.1</maven-plugin-annotations.version> <maven-source-plugin.version>3.3.1</maven-source-plugin.version> <maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version> <maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version> <central-publishing-maven-plugin.version>0.7.0</central-publishing-maven-plugin.version> <swagger-parser.version>2.1.29</swagger-parser.version> <java-commons.version>1.1.0</java-commons.version> <slf4j-simple.version>2.0.17</slf4j-simple.version> <junit.jupiter.version>5.13.1</junit.jupiter.version> <assertj.version>3.27.3</assertj.version> <jacoco-maven-plugin.version>0.8.13</jacoco-maven-plugin.version> </properties> <dependencies> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-plugin-api</artifactId> <version>${maven-plugin-api.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-model</artifactId> <version>${maven-model.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-artifact</artifactId> <version>${maven-artifact.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven.plugin-tools</groupId> <artifactId>maven-plugin-annotations</artifactId> <version>${maven-plugin-annotations.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>io.swagger.parser.v3</groupId> <artifactId>swagger-parser</artifactId> <version>${swagger-parser.version}</version> </dependency> <dependency> <groupId>io.github.torand</groupId> <artifactId>java-commons</artifactId> <version>${java-commons.version}</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>${slf4j-simple.version}</version> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>${junit.jupiter.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> <version>${assertj.version}</version> <scope>test</scope> </dependency> </dependencies> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>${maven-compiler-plugin.version}</version> <configuration> <parameters>${maven.compiler.parameters}</parameters> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>${maven-surefire-plugin.version}</version> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> <version>${maven-plugin-plugin.version}</version> <configuration> <goalPrefix>openapi2java</goalPrefix> <skipErrorNoDescriptorsFound>false</skipErrorNoDescriptorsFound> </configuration> <executions> <execution> <id>mojo-descriptor</id> <goals> <goal>descriptor</goal> </goals> </execution> <execution> <id>help-goal</id> <goals> <goal>helpmojo</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>${jacoco-maven-plugin.version}</version> <configuration> <excludes> <exclude>**/*Mojo.class</exclude> </excludes> </configuration> <executions> <execution> <id>prepare-agent</id> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>report</id> <phase>test</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>${maven-javadoc-plugin.version}</version> <executions> <execution> <id>javadoc</id> <phase>compile</phase> <goals> <goal>javadoc</goal> </goals> </execution> </executions> <configuration> <failOnWarnings>false</failOnWarnings> <excludePackageNames>io.github.torand.openapi2java.utils.*</excludePackageNames> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>release</id> <build> <plugins> <plugin> <groupId>org.sonatype.central</groupId> <artifactId>central-publishing-maven-plugin</artifactId> <version>${central-publishing-maven-plugin.version}</version> <extensions>true</extensions> <configuration> <deploymentName>${project.groupId}:${project.artifactId}@${project.version}</deploymentName> <publishingServerId>central</publishingServerId> <tokenAuth>true</tokenAuth> <autoPublish>true</autoPublish> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>${maven-source-plugin.version}</version> <executions> <execution> <id>attach-sources</id> <phase>package</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>${maven-javadoc-plugin.version}</version> <executions> <execution> <id>attach-javadocs</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> <configuration> <windowtitle>${project.name} ${project.version}</windowtitle> <doctitle>${project.name} ${project.version}</doctitle> <addStylesheets> <addStylesheet>dark-theme.css</addStylesheet> </addStylesheets> <doclint>none</doclint> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>${maven-gpg-plugin.version}</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> <configuration> <gpgArguments> <arg>--pinentry-mode</arg> <arg>loopback</arg> </gpgArguments> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>