We are using Sonarqube V8.9 and our developers are using Java 1.8 for their code compilation . In IBM Urban Code Build we are using openjdk11 for Sonarqube Scanner. During Sonarqube analysis in Urban Code Build for Java 1.8 applications code compilations we are getting java compatibility issues.
Error:-
> Configure project :
ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2
Lint disabled for CI Server Run
> Task :compileJava NO-SOURCE
> Task :compileGroovy NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :compileTestJava NO-SOURCE
> Task :compileTestGroovy NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :test NO-SOURCE
/p01/app/ibm/ucb/agent/var/work/project/com_hmhs_medical_shoppingexperience/sxesvc/sxesvc-common/src/main/java/com/hmhs/sxe/messages/BaseMessage.java:6: error: package javax.xml.bind.annotation does not exist
import javax.xml.bind.annotation.XmlAccessType;
/p01/app/ibm/ucb/agent/var/work/project/com_hmhs_medical_shoppingexperience/sxesvc/sxesvc-common/src/main/java/com/hmhs/sxe/messages/BaseMessage.java:7: error: package javax.xml.bind.annotation does not exist
import javax.xml.bind.annotation.XmlAccessorType;
/p01/app/ibm/ucb/agent/var/work/project/com_hmhs_medical_shoppingexperience/sxesvc/sxesvc-common/src/main/java/com/hmhs/sxe/messages/BaseMessage.java:8: error: package javax.xml.bind.annotation does not exist
import javax.xml.bind.annotation.XmlType;
/p01/app/ibm/ucb/agent/var/work/project/com_hmhs_medical_shoppingexperience/sxesvc/sxesvc-common/src/main/java/com/hmhs/sxe/messages/BaseMessage.java:22: error: cannot find symbol
XmlAccessorType(XmlAccessType.FIELD)
symbol: class XmlAccessorType
/p01/app/ibm/ucb/agent/var/work/project/com_hmhs_medical_shoppingexperience/sxesvc/sxesvc-common/src/main/java/com/hmhs/sxe/messages/BaseMessage.java:23: error: cannot find symbol
XmlType(
symbol: class XmlType
/p01/app/ibm/ucb/agent/var/work/project/com_hmhs_medical_shoppingexperience/sxesvc/sxesvc-common/src/main/java/com/hmhs/sxe/util/HMUtility.java:20: error: package javax.xml.bind does not exist
import javax.xml.bind.DatatypeConverter;
Task :sxesvc-common:compileJava
/p01/app/ibm/ucb/agent/var/work/project/com_hmhs_medical_shoppingexperience/sxesvc/sxesvc-common/src/main/java/com/hmhs/sxe/messages/highview/ImageStoreResponse.java:3: error: package javax.xml.bind.annotation does not exist
import javax.xml.bind.annotation.XmlAccessType;
/p01/app/ibm/ucb/agent/var/work/project/com_hmhs_medical_shoppingexperience/sxesvc/sxesvc-common/src/main/java/com/hmhs/sxe/messages/highview/ImageStoreResponse.java:4: error: package javax.xml.bind.annotation does not exist
import javax.xml.bind.annotation.XmlAccessorType;
/p01/app/ibm/ucb/agent/var/work/project/com_hmhs_medical_shoppingexperience/sxesvc/sxesvc-common/src/main/java/com/hmhs/sxe/messages/highview/ImageStoreResponse.java:5: error: package javax.xml.bind.annotation does not exist
import javax.xml.bind.annotation.XmlRootElement;
/p01/app/ibm/ucb/agent/var/work/project/com_hmhs_medical_shoppingexperience/sxesvc/sxesvc-common/src/main/java/com/hmhs/sxe/messages/highview/ImageStoreResponse.java:6: error: package javax.xml.bind.annotation does not exist
import javax.xml.bind.annotation.XmlSchemaType