Uploaded image for project: 'Build'
  1. Build
  2. BUILD-300

Builds failing on JDK9+ due to javax.annotations-api and javax.xml.bind

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Won't Do
    • Affects Version/s: POMs 34
    • Fix Version/s: None
    • Component/s: Poms
    • Labels:
    • Epic Link:
    • 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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sang.ngo Sang Ngo Huu
              Reporter:
              sang.ngo Sang Ngo Huu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2d Original Estimate - 2d
                  2d
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 4d
                  4d