Uploaded image for project: '[Read Only] - Hippo Essentials'
  1. [Read Only] - Hippo Essentials
  2. ESSENTIALS-656

Conflicting jax-rs api dependencies causes essentials cannot start

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • CMS-10.0-alpha-1
    • 1.03.00, CMS-10.0-FCS
    • None
    • None

    Description

      Reproduction path:

      1. Generate a project using archetype 2.01.00-alpha-1:
        mvn archetype:generate -DarchetypeGroupId=org.onehippo.cms7 -DarchetypeArtifactId=hippo-project-archetype -DarchetypeVersion=2.01.00-alpha-1 -DarchetypeRepository=http://maven.onehippo.com/maven2
        
      2. Run the project, start the essentials at http://localhost:8080/essentials

      Expected result: essential wizard starts

      Actual result: an empty page. Tomcat log is attachted.

      Cause: the dependency javax.ws.rs:jsr311-api:jar:1.1.1 is used in com.wordnik:swagger-core_2.10:jar:1.3.0, which conflicts with javax.ws.rs:javax.ws.rs-api:jar:2.0.1.
      Fix:

      • Exclude jsr311-api from the swagger-jaxrs_2.10 in essentials/plugin-sdk/pom.xml
              <dependency>
                <groupId>com.wordnik</groupId>
                <artifactId>swagger-jaxrs_2.10</artifactId>
                <version>${swagger-jaxrs_2.10.version}</version>
                <exclusions>
                  <exclusion>
                      <groupId>javax.ws.rs</groupId>
                      <artifactId>jsr311-api</artifactId>             
                  </exclusion>
                </exclusions>
              </dependency>
        
      • Update to plugin-sdk/implementation/pom.xml
            <dependency>
              <groupId>javax.ws.rs</groupId>
              <artifactId>javax.ws.rs-api</artifactId>
              <version>2.0.1</version>
            </dependency>
        

      Attachments

        Activity

          People

            pgupta Pankaj Gupta (Inactive)
            cngo Canh Ngo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: