[BUILD-300] Builds failing on JDK9+ due to javax.annotations-api and javax.xml.bind Created: 16/Apr/18  Updated: 21/May/18  Resolved: 09/May/18

Status: Closed
Project: Build
Component/s: Poms
Affects Version/s: POMs 34
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Sang Ngo Huu Assignee: Sang Ngo Huu
Resolution: Won't Do Votes: 0
Labels: java9, maven
Remaining Estimate: 0d
Time Spent: 4d
Original Estimate: 2d

Issue Links:
Cloners
clones BUILD-298 Maven checkstyle plugin execution fai... Closed
is cloned by BUILD-303 Build on JDK11+ Selected
Template:
Acceptance criteria:
Empty
Date of First Response:
Epic Link: Java 10
Sprint: Saigon 143, Saigon 144, Saigon 145
Story Points: 5

 Description   

Because these package has change in Java 9, so we have to add it to our module to avoid the ClassNotFoundException. There are 3 ways to fix:

  • Using --add-modules param, but this just support java 9. Our pom should be compatibility with java 1.6+
  • Find a solution to add missing library globaly
  • Add dependencies manually module by module
          <dependency>
            <groupId>javax.annotation</groupId>
            <artifactId>javax.annotation-api</artifactId>
            <version>1.3.1</version>
          </dependency>
          <dependency>
            <groupId>javax.xml.bind</groupId>
            <artifactId>jaxb-api</artifactId>
            <version>2.2</version>
          </dependency>
    

refer link for more information



 Comments   
Comment by Mikaël Geljić [ 17/Apr/18 ]
Comment by Mikaël Geljić [ 09/May/18 ]

General impression is that we don't need to provide additional jdk9 modules from parent poms; most of these issues are addressed one by one in 3rd-party libraries (other tickets to follow for upgrades).

Generated at Sun Feb 11 23:40:39 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.