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
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