Here is the pom.xml
:
<plugin>
<artifactId>openapi-generator-maven-plugin</artifactId>
<executions>
<execution>
<configuration>
<configOptions>
<apiPackage>com.core.client</apiPackage>
<dateLibrary>java8</dateLibrary>
<modelPackage>com.core.client.model</modelPackage>
<packageName>co.core</packageName>
<sourceFolder>restclient</sourceFolder>
<useLombok>true</useLombok>
<useOptional>true</useOptional>
<useTags>true</useTags>
</configOptions>
<generateApiDocumentation>false</generateApiDocumentation>
<generateApiTests>false</generateApiTests>
<generateModelDocumentation>false</generateModelDocumentation>
<generateModelTests>false</generateModelTests>
<generatorName>java</generatorName>
<inputSpec>
GitHub link
</inputSpec>
<library>jersey2</library>
</configuration>
<goals>
<goal>generate</goal>
</goals>
<id>Generate client</id>
</execution>
</executions>
<groupId>org.openapitools</groupId>
<version>6.2.1</version>
</plugin>
I am using 6.2.1 version of the OpenAPI Generator Maven plugin.
I want to pull the <inputSpec>
from a private GitHub repo and without giving the password/token in my pom.xml
. Is there a way to pick it from settings.xml
?