Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-5423

Fix java 11 usage with kie-pmml-new

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • None
    • None
    • Hide

      1) Set "default" java to 11

      2) compile/execute tests in kie-pmml-new

      Show
      1) Set "default" java to 11 2) compile/execute tests in kie-pmml-new
    • NEW
    • NEW

      Kie-pmml-new is broken when running under Java 11.

      This is due to the missing jaxb api/implementations.

      Solution should be to add a java-11 profile inside kie-pmml-compiler-commons/pom.xml

       

      // <profiles>
        <profile>
          <id>java11-pmml</id>
          <activation>
            <jdk>[11,)</jdk>
          </activation>
          <properties>
            <jaxb.api.version>2.3.2</jaxb.api.version>
          </properties>
          <dependencies>
              <dependency>
            <groupId>org.jboss.spec.javax.xml.bind</groupId>
            <artifactId>jboss-jaxb-api_2.3_spec</artifactId>
          </dependency>
           <dependency>
            <groupId>org.glassfish.jaxb</groupId>
            <artifactId>jaxb-runtime</artifactId>
          </dependency>
          </dependencies>
        </profile>
      </profiles>
      

              gcardosi Gabriele Cardosi (Inactive)
              gcardosi Gabriele Cardosi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: