You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Above mentioned missing entry for jakarta.validation.constraints in jakarta-versions.properties is root cause for problem described in issue #4354, opened close to 9 months ago. That is what I discovered when I was asked to fix this problem in a commercial project which was blocked due to this problem - i.e. transformed Swagger Jakarta EE 9 artifacts were using wrong jakarta.validation.constraints version, merged from original 'swagger' Java EE modules, making those impossible to use in OSGi environment.
This problem could not be fixed on Swagger project side – it needed to be addressed in "Eclipse Transformer" itself. That missing configuration for jakarta.validation.constraints=[3.0,4.0) was added in jakarta-versions.properties configuration file of transformer 0.2.0 (https://github.com/eclipse/transformer/releases/tag/0.2.0), transformer rebuild and resulting artifact used to rebuild (transform) https://github.com/swagger-api/swagger-core artifacts.
Because that problem still exists in the https://github.com/swagger-api/swagger-core project itself, we temporarily use those rebuilt (fixed) Swagger Jakarta EE9 artifacts in our commercial project.
Back when swagger-eclipse-transformer-maven-plugin was added (#3889), as per io.swagger.v3.oas.transformer.TransformMojo Javadoc, it was "Adapted from https://github.com/eclipse/transformer/blob/main/org.eclipse.transformer.maven not to add the transformed JAR as an attached artifact to the project." and that it was "To be replaced with Eclipse original Transformer plugin when/if optional attachment is supported."
It looks like "Eclipse Transformer" (https://github.com/eclipse/transformer) already provides such optional attachment - i.e. attach configuration parameter is already present in org.eclipse.transformer.maven.TransformerJarMojo and documented in maven-plugins/transformer-maven-plugin/README.md. That version of "Eclipse Transformer" already contains jakarta.validation.constraints entry in its jakarta-versions.properties configuration file.
Are there any plans to upgrade to latest version of "Eclipse Transformer"? As it stands right now, due to #4354, Swagger Jakarta EE 9 artifacts cannot be used in OSGi environment (hence above mentioned fix was applied in our project).
The text was updated successfully, but these errors were encountered:
Above mentioned missing entry for
jakarta.validation.constraints
injakarta-versions.properties
is root cause for problem described in issue #4354, opened close to 9 months ago. That is what I discovered when I was asked to fix this problem in a commercial project which was blocked due to this problem - i.e. transformed Swagger Jakarta EE 9 artifacts were using wrongjakarta.validation.constraints
version, merged from original 'swagger' Java EE modules, making those impossible to use in OSGi environment.This problem could not be fixed on Swagger project side – it needed to be addressed in "Eclipse Transformer" itself. That missing configuration for
jakarta.validation.constraints=[3.0,4.0)
was added injakarta-versions.properties
configuration file of transformer0.2.0
(https://github.com/eclipse/transformer/releases/tag/0.2.0), transformer rebuild and resulting artifact used to rebuild (transform) https://github.com/swagger-api/swagger-core artifacts.Because that problem still exists in the https://github.com/swagger-api/swagger-core project itself, we temporarily use those rebuilt (fixed) Swagger Jakarta EE9 artifacts in our commercial project.
https://github.com/swagger-api/swagger-core project is currently using old version of "Eclipse Transformer" (
org.eclipse.transformer:org.eclipse.transformer.cli:0.2.0
) - https://github.com/eclipse/transformer project itself is currently at version 0.5.0 (released) 0.6.0 (repository).Back when
swagger-eclipse-transformer-maven-plugin
was added (#3889), as perio.swagger.v3.oas.transformer.TransformMojo
Javadoc, it was "Adapted from https://github.com/eclipse/transformer/blob/main/org.eclipse.transformer.maven not to add the transformed JAR as an attached artifact to the project." and that it was "To be replaced with Eclipse original Transformer plugin when/if optional attachment is supported."It looks like "Eclipse Transformer" (https://github.com/eclipse/transformer) already provides such optional attachment - i.e.
attach
configuration parameter is already present inorg.eclipse.transformer.maven.TransformerJarMojo
and documented inmaven-plugins/transformer-maven-plugin/README.md
. That version of "Eclipse Transformer" already containsjakarta.validation.constraints
entry in itsjakarta-versions.properties
configuration file.Are there any plans to upgrade to latest version of "Eclipse Transformer"? As it stands right now, due to #4354, Swagger Jakarta EE 9 artifacts cannot be used in OSGi environment (hence above mentioned fix was applied in our project).
The text was updated successfully, but these errors were encountered: