Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use system properties in Maven plugin? #1822

Open
morettileo opened this issue May 3, 2024 · 1 comment
Open

How to use system properties in Maven plugin? #1822

morettileo opened this issue May 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@morettileo
Copy link
Contributor

With reference to #1063, I tried to specify some properties but they are ignored.

<plugin>
  <artifactId>smallrye-open-api-maven-plugin</artifactId>
  <groupId>io.smallrye</groupId>
  <version>3.10.0</version>
  <executions>
	  <execution>
		  <id>generate-openapi</id>
		  <phase>process-classes</phase>
		  <goals>
			  <goal>generate-schema</goal>
		  </goals>
		  <configuration>
			  <scanDependenciesDisable>true</scanDependenciesDisable>
			  <systemPropertyVariables>
				  <mp.openapi.extensions.smallrye.defaultConsumes>*/*</mp.openapi.extensions.smallrye.defaultConsumes>
				  <mp.openapi.extensions.smallrye.auto-inheritance>BOTH</mp.openapi.extensions.smallrye.auto-inheritance>
			  </systemPropertyVariables>
		  </configuration>
	  </execution>
  </executions>
</plugin>

Neither mp.openapi.extensions.smallrye.defaultConsumes or mp.openapi.extensions.smallrye.auto-inheritance has effect on generation.

@MikeEdgar
Copy link
Member

I think this is a bug that was fixed with #1774, which will be in the next release soon.

@MikeEdgar MikeEdgar added the bug Something isn't working label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants