Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-854

Maven repo could be missing additional CXF dependencies

XMLWordPrintable

      Maven repo checker

      I've executed redhat-repository-validator on #21 maven repo (md5sum 8a08e4f2b93b4a8a3436c5f5e57e45cf) with following result:

      Reporter - --- DependencyNotFoundException (found 5 missing dependencies) ---
      Reporter - miss: org.apache.cxf:cxf-rt-rs:pom:3.1.12.redhat-1
      Reporter -     from: org.apache.cxf:cxf-rt-rs-security-jose-parent:pom:3.1.12.redhat-1
      Reporter -     from: org.apache.cxf:cxf-rt-rs-security:pom:3.1.12.redhat-1
      Reporter - miss: org.apache.cxf:cxf-rt-security-saml:jar:3.1.12.redhat-1
      Reporter -     from: org.apache.cxf:cxf-rt-rs-security-oauth2-saml:pom:3.1.12.redhat-1
      Reporter -         path: org.apache.cxf:cxf-rt-rs-security-oauth2-saml:pom:3.1.12.redhat-1 > org.apache.cxf:cxf-rt-rs-security-xml:jar:3.1.12.redhat-1 > org.apache.cxf:cxf-rt-security-saml:jar:3.1.12.redhat-1
      Reporter -     from: org.apache.cxf:cxf-rt-rs-security-sso-saml:pom:3.1.12.redhat-1
      Reporter -         path: org.apache.cxf:cxf-rt-rs-security-sso-saml:pom:3.1.12.redhat-1 > org.apache.cxf:cxf-rt-rs-security-xml:jar:3.1.12.redhat-1 > org.apache.cxf:cxf-rt-security-saml:jar:3.1.12.redhat-1
      Reporter -     from: org.apache.cxf:cxf-rt-rs-security-xml:pom:3.1.12.redhat-1
      Reporter - miss: org.apache.cxf:cxf-rt-security:jar:3.1.12.redhat-1
      Reporter -     from: org.apache.cxf:cxf-rt-rs-security-jose-jaxrs:pom:3.1.12.redhat-1
      Reporter -     from: org.apache.cxf:cxf-rt-rs-security-jose:pom:3.1.12.redhat-1
      Reporter -     from: org.apache.cxf:cxf-rt-rs-security-oauth2-saml:pom:3.1.12.redhat-1
      Reporter -         path: org.apache.cxf:cxf-rt-rs-security-oauth2-saml:pom:3.1.12.redhat-1 > org.apache.cxf:cxf-rt-rs-security-oauth2:jar:3.1.12.redhat-1 > org.apache.cxf:cxf-rt-rs-security-jose-jaxrs:jar:3.1.12.redhat-1 > org.apache.cxf:cxf-rt-security:jar:3.1.12.redhat-1
      Reporter -     from: org.apache.cxf:cxf-rt-rs-security-oauth2:pom:3.1.12.redhat-1
      Reporter -         path: org.apache.cxf:cxf-rt-rs-security-oauth2:pom:3.1.12.redhat-1 > org.apache.cxf:cxf-rt-rs-security-jose-jaxrs:jar:3.1.12.redhat-1 > org.apache.cxf:cxf-rt-security:jar:3.1.12.redhat-1
      Reporter -     from: org.apache.cxf:cxf-rt-rs-security-sso-oidc:pom:3.1.12.redhat-1
      Reporter -         path: org.apache.cxf:cxf-rt-rs-security-sso-oidc:pom:3.1.12.redhat-1 > org.apache.cxf:cxf-rt-rs-security-jose-jaxrs:jar:3.1.12.redhat-1 > org.apache.cxf:cxf-rt-security:jar:3.1.12.redhat-1
      Reporter - miss: org.apache.tomcat:tomcat-juli:jar:8.5.20.redhat-5
      Reporter -     from: org.apache.tomcat:tomcat-dbcp:pom:8.5.20.redhat-5
      Reporter -     from: org.apache.tomcat:tomcat-jdbc:pom:8.5.20.redhat-5
      Reporter - miss: org.jboss:jboss-parent:pom:19.0.0.redhat-2
      Reporter -     from: org.hibernate:hibernate-project:pom:5.1.8.Final-redhat-1
       

      I also did further investigation e.g. missing cxf-rt-security-saml jar. I found out that this jar is really mentioned as a dependency in file org/apache/cxf/cxf-rt-rs-security-jose/3.1.12.redhat-1/cxf-rt-rs-security-jose-3.1.12.redhat-1.pom and we do not have cxf-rt-security-saml directory in org/apache/cxf directory. Similar situation with org.apache.cxf:cxf-rt-rs:pom:3.1.12.redhat-1

      Validator also reported other things but I suppose these are not as critical as above. For example:

       - Reporter - Warning: artifact org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.20.redhat-5 doesn't contain <developers>
       - Reporter - Warning: artifact org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.20.redhat-5 doesn't contain <name>
       - Reporter - Artifact org.apache.tomcat.embed:tomcat-embed-core:8.5.20.redhat-5 is unmanaged, its version is not managed in BOMs
       - Reporter - File org/apache/cxf/cxf-rt-rs-security/maven-metadata.xml is suspicious
       - Reporter - Xml file org/apache/tomcat/embed/tomcat-embed-core/maven-metadata.xml has following errors (2, 11): cvc-elt.1: Cannot find the declaration of element 'metadata'.
      

      CXF JAX-RS demo application

      The demo application, cxf-testsuite, builds and runs with the repo as it is though. The aforementioned warnings and dependencies are not affecting it.

      EAP Maven repo check

      Repository validator also returned a list of DependencyNotFoundException excepsions when it checked jboss-eap-7.1.0.CR4-maven-repository.zip

              rhn-support-csutherl Coty Sutherland
              mmadzin@redhat.com Matus Madzin
              Matus Madzin Matus Madzin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: