Skip to content

[REQ] i want to change the goal in my parent to share just the common config with all modules and generate the target in the child module #15829

@ghost

Description

in my parent my goal is not the generate i have my parent project and inside it there's many modules that main object is generating the target for my swagger yaml
in my parent, i have this code :
<executions> <execution> <goals> <goal>generate</goal> </goals> <configuration> <skipValidateSpec>true</skipValidateSpec> <inputSpec>./src/main/resources/*****.yaml</inputSpec> <output>${project.build.directory}/generated-sources/api</output> <generatorName>spring</generatorName> <configOptions> <openApiNullable>false</openApiNullable> <useJakartaEe>true</useJakartaEe> <skipDefaultInterface>false</skipDefaultInterface> <useOneOfInterfaces>ture</useOneOfInterfaces> <hideGenerationTimestamp>true</hideGenerationTimestamp> <useSwaggerUI>true</useSwaggerUI> <documentationProvider>springdoc</documentationProvider> <useTags>true</useTags> <delegatePattern>true</delegatePattern> <basePackage>****</basePackage> <useSpringController>true</useSpringController> <requestMappingMode>api_interface</requestMappingMode> <configPackage>****</configPackage> <testOutput>****</testOutput> </configOptions> </configuration> </execution> </executions>

in my module child

<plugin> <groupId>org.openapitools</groupId> <artifactId>openapi-generator-maven-plugin</artifactId> <version>6.2.1</version> <executions> <execution> <goals> <goal>generate</goal> </goals> <configuration> <inputSpec>./src/main/resources/Promotion/api-promotion-swagger.yaml</inputSpec> </configuration> </execution> </executions> </plugin>

i want to change the goal in my parent to share just the common config with all modules and generate the target

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions