[
https://issues.apache.org/jira/browse/CXF-8151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17018862#comment-17018862
]
Dennis Kieselhorst commented on CXF-8151:
-----------------------------------------
As far as I can see only Swagger 1.x is affected. An exclude is probably not
enough to fix the OSGi issue:
{{[ERROR] Failed to execute goal
org.apache.karaf.tooling:karaf-maven-plugin:4.2.7:verify (verify) on project
apache-cxf: Verification failures: Verification failures:}}
{{[ERROR] Feature resolution failed for
[cxf-rs-description-swagger2/3.4.0.SNAPSHOT]}}
{{[ERROR] Message: Unable to resolve root: missing requirement [root]
osgi.identity; osgi.identity=cxf-rs-description-swagger2; type=karaf.feature;
version=3.4.0.SNAPSHOT;
filter:="(&(osgi.identity=cxf-rs-description-swagger2)(type=karaf.feature)(version>=3.4.0.SNAPSHOT))"
[caused by: Unable to resolve cxf-rs-description-swagger2/3.4.0.SNAPSHOT:
missing requirement [cxf-rs-description-swagger2/3.4.0.SNAPSHOT] osgi.identity;
osgi.identity=org.apache.cxf.cxf-rt-rs-service-description-swagger;
type=osgi.bundle; version="[3.4.0.SNAPSHOT,3.4.0.SNAPSHOT]";
resolution:=mandatory [caused by: Unable to resolve
org.apache.cxf.cxf-rt-rs-service-description-swagger/3.4.0.SNAPSHOT: missing
requirement
[org.apache.cxf.cxf-rt-rs-service-description-swagger/3.4.0.SNAPSHOT]
osgi.wiring.package;
filter:="(&(osgi.wiring.package=io.swagger.jaxrs.config)(version>=1.6.0)(!(version>=2.0.0)))"
[caused by: Unable to resolve io.swagger.jaxrs/1.6.0: missing requirement
[io.swagger.jaxrs/1.6.0] osgi.wiring.package;
filter:="(&(osgi.wiring.package=io.swagger.config)(version>=1.6.0)(!(version>=2.0.0)))"
[caused by: Unable to resolve io.swagger.core/1.6.0: missing requirement
[io.swagger.core/1.6.0] osgi.wiring.package;
filter:="(&(osgi.wiring.package=javax.validation.constraints)(version>=1.1.0)(!(version>=2.0.0)))"]]]]}}
We can also think about no longer supporting Swagger 1.x with CXF 3.4. But as
many users still haven't migrated to OpenAPI v3 it's probably to early for
that...
> Upgrade to Bean Validation 2.x
> -------------------------------
>
> Key: CXF-8151
> URL: https://issues.apache.org/jira/browse/CXF-8151
> Project: CXF
> Issue Type: Task
> Reporter: Andriy Redko
> Assignee: Andriy Redko
> Priority: Major
> Fix For: 3.4.0
>
>
> CXF is still using the Bean Validation 1.x API whereas all modern
> implementations support 2.x mostly exlusively (Hibernate Validator 6.x, ...).
> We probably should consider moving the baseline to 2.x at least with CXF
> 3.4.0.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)