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

    • Bug
    • Resolution: Won't Do
    • Neutral
    • None
    • POMs 34
    • Poms
    • Saigon 143, Saigon 144, Saigon 145
    • 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

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

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