Uploaded image for project: 'Active and Available Inventory'
  1. Active and Available Inventory
  2. AAI-601

AAI search-data-service build failing on 1.1 JAX-RS instead of required 2.0 library only on clean Ubuntu 16.04/JDK1.8.0_151


    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: Beijing Release
    • Fix Version/s: Beijing Release
    • Labels:


       building on a clean Ubuntu 16.04 running 151 of the JDK I get a compile failure on a 1.1 JAX-RS library instead of the required 2.0 version

      I am assuming we may need to force the 2.0 version in the pom for some systems

      The following 2 jars are bringing in 2.0.1

      camel-cxf 2.15.5, 

      jersey-test-framework-provider-grizzly2 2.23.2

      no effect


      I do not get this on my OSX system running 1.8.0_121

      I build OK on OSX as well - without the test jar - when I exclude tests obviously - but just to verify the dependency

              <!--  Jersey Test Framework. -->
              <!--  dependency>


      jersey including an old version of JAX-RS (1.1 instead of 2.0) https://docs.oracle.com/javaee/7/api/javax/ws/rs/core/Response.html#getStatusInfo--


      on 151 in ubuntu
      [INFO] ------------------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 01:55 min
      [INFO] Finished at: 2017-12-28T15:45:08-08:00
      [INFO] Final Memory: 632M/6297M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project search-data-service: Compilation failure: Compilation failure:
      [ERROR] /home/ubuntu/onap/aai/search-data-service/src/main/java/org/onap/aai/sa/rest/IndexApi.java:[256,10] 1. ERROR in /home/ubuntu/onap/aai/search-data-service/src/main/java/org/onap/aai/sa/rest/IndexApi.java (at line 256)
      [ERROR] response.getStatusInfo().getReasonPhrase()),
      [ERROR] 	        ^^^^^^^^^^^^^
      [ERROR] The method getStatusInfo() is undefined for the type Response
      [ERROR] Found 1 error and 0 warnings.
      [ERROR] -> [Help 1]
      import javax.ws.rs.core.Response;


          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.



              • Assignee:
                michaelobrien Michael O'Brien
                michaelobrien Michael O'Brien
              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Created: