Details
-
Bug
-
Status: Closed
-
Medium
-
Resolution: Done
-
Beijing Release
Description
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
<dependency> <groupId>javax.ws.rs</groupId> <artifactId>javax.ws.rs-api</artifactId> <version>2.0.1</version> </dependency>
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> <groupId>org.glassfish.jersey.test-framework.providers</groupId> <artifactId>jersey-test-framework-provider-grizzly2</artifactId> <version>2.23.2</version> <scope>test</scope> </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] BUILD FAILURE [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] [ERROR] Found 1 error and 0 warnings. [ERROR] -> [Help 1] import javax.ws.rs.core.Response;
Attachments
Issue Links
- blocks
-
INT-372 Jenkins/IDE Build Issues
-
- Closed
-