[BUG][CLIENT][JAVA] artifactVersion is not taken from specification
Created by: mindhaq
Description
When the options for the generator do not provide artifactVersion
, in the generated pom.xml
, the <version>
is always 1.0.0
. It should be the version provided in the openapi specification file.
openapi-generator version
3.3.4
OpenAPI declaration file content or url
openapi: "3.0.0"
info:
title: Title
description: Description
version: "1.2.0"
Command line used for generation
openapi-generator generate \
--input-spec ./spec.yml \
--output ${outdir} \
--generator-name java \
--config config.client-java.json \
--enable-post-process-file \
--group-id com.minhdaq \
--artifact-id project
{
"java8": true,
"dateLibrary": "java8",
"useBeanValidation": true,
"library": "resttemplate",
}
Steps to reproduce
Create an API with version information. Find 1.0.0 instead of that version in the pom.xml.
Suggest a fix
Use version from YML in pom.xml.