This is an automated email from the ASF dual-hosted git repository.

tzimanyi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-drools.git


The following commit(s) were added to refs/heads/main by this push:
     new c72dafa287 [incubator-kie-issues#2055] Java 21 and Java 17 support
c72dafa287 is described below

commit c72dafa2878c440b1d1eafaa93856c61fc67bc8a
Author: ChinchuAjith <[email protected]>
AuthorDate: Mon Aug 11 13:59:02 2025 +0530

    [incubator-kie-issues#2055] Java 21 and Java 17 support
    
    Updates the configuration so the repository builds and runs on both Java 21 
and Java 17.
---
 build-parent/pom.xml                               |   4 +-
 kie-api/pom.xml                                    |   4 +-
 kie-ci/kie-ci-test-jars/kie-ci-test-bom/pom.xml    |   2 -
 .../kie-ci-test-jar-with-dep/pom.xml               |   2 -
 kie-ci/kie-ci-test-jars/kie-ci-test-jar/pom.xml    |   2 -
 kie-ci/kie-ci-test-jars/pom.xml                    |   2 -
 kie-internal/pom.xml                               |   2 +-
 .../src/test/resources/unit/pmml/pom.xml           | 167 ---------------------
 .../air-conditioning-weather-scorecard.pmml        | 113 --------------
 .../categoricalVariablesRegression.pmml            |  57 -------
 .../CompoundNestedPredicateScorecard.pmml          |  79 ----------
 .../logisticRegressionIrisData.pmml                |  70 ---------
 .../SimpleScorecardCategorical.pmml                |  57 -------
 .../SingleIrisKMeansClustering.pmml                |  50 ------
 14 files changed, 4 insertions(+), 607 deletions(-)

diff --git a/build-parent/pom.xml b/build-parent/pom.xml
index 66935838fc..67055b0906 100644
--- a/build-parent/pom.xml
+++ b/build-parent/pom.xml
@@ -35,8 +35,6 @@
 
   <properties>
     <maven.compiler.release>17</maven.compiler.release>
-    <maven.compiler.source>${maven.compiler.release}</maven.compiler.source>
-    <maven.compiler.target>${maven.compiler.release}</maven.compiler.target>
     
     <surefire.forkCount>1</surefire.forkCount>
     <alphanetworkCompilerEnabled>false</alphanetworkCompilerEnabled>
@@ -2161,7 +2159,7 @@
                   <goal>jar</goal>
                 </goals>
                 <configuration>
-                  <source>${maven.compiler.source}</source>
+                  <source>${maven.compiler.release}</source>
                 </configuration>
               </execution>
             </executions>
diff --git a/kie-api/pom.xml b/kie-api/pom.xml
index b80233fc0d..ff061f817b 100644
--- a/kie-api/pom.xml
+++ b/kie-api/pom.xml
@@ -62,7 +62,7 @@
                   <artifactId>apiviz</artifactId>
                   <version>1.3.4</version>
                 </docletArtifact>
-                <source>${maven.compiler.source}</source>
+                <source>${maven.compiler.release}</source>
               </configuration>
             </plugin>
           </plugins>
@@ -79,7 +79,7 @@
         <configuration>
           <sourcepath>${project.basedir}/src/main/java</sourcepath>
           <excludePackageNames>org.kie.util*</excludePackageNames>
-          <source>${maven.compiler.source}</source>
+          <source>${maven.compiler.release}</source>
           <groups>
             <group>
               <title>KIE Base API</title>
diff --git a/kie-ci/kie-ci-test-jars/kie-ci-test-bom/pom.xml 
b/kie-ci/kie-ci-test-jars/kie-ci-test-bom/pom.xml
index 64515f40eb..cccbd46e21 100644
--- a/kie-ci/kie-ci-test-jars/kie-ci-test-bom/pom.xml
+++ b/kie-ci/kie-ci-test-jars/kie-ci-test-bom/pom.xml
@@ -35,8 +35,6 @@
 
   <properties>
     <java.module.name>org.kie.ci.test.bom</java.module.name>
-    <maven.compiler.target>11</maven.compiler.target>
-    <maven.compiler.source>11</maven.compiler.source>
   </properties>
 
   <dependencyManagement>
diff --git a/kie-ci/kie-ci-test-jars/kie-ci-test-jar-with-dep/pom.xml 
b/kie-ci/kie-ci-test-jars/kie-ci-test-jar-with-dep/pom.xml
index 668f91a5ed..0eff2acef9 100644
--- a/kie-ci/kie-ci-test-jars/kie-ci-test-jar-with-dep/pom.xml
+++ b/kie-ci/kie-ci-test-jars/kie-ci-test-jar-with-dep/pom.xml
@@ -34,8 +34,6 @@
 
   <properties>
     <java.module.name>org.kie.ci.test.jar.with.dep</java.module.name>
-    <maven.compiler.target>11</maven.compiler.target>
-    <maven.compiler.source>11</maven.compiler.source>
   </properties>
 
   <dependencies>
diff --git a/kie-ci/kie-ci-test-jars/kie-ci-test-jar/pom.xml 
b/kie-ci/kie-ci-test-jars/kie-ci-test-jar/pom.xml
index 998e153873..217a874966 100644
--- a/kie-ci/kie-ci-test-jars/kie-ci-test-jar/pom.xml
+++ b/kie-ci/kie-ci-test-jars/kie-ci-test-jar/pom.xml
@@ -34,8 +34,6 @@
 
   <properties>
     <java.module.name>org.kie.ci.test.jar</java.module.name>
-    <maven.compiler.target>11</maven.compiler.target>
-    <maven.compiler.source>11</maven.compiler.source>
   </properties>
 
 </project>
\ No newline at end of file
diff --git a/kie-ci/kie-ci-test-jars/pom.xml b/kie-ci/kie-ci-test-jars/pom.xml
index 2aa66d35a1..c2050d81f8 100644
--- a/kie-ci/kie-ci-test-jars/pom.xml
+++ b/kie-ci/kie-ci-test-jars/pom.xml
@@ -31,8 +31,6 @@
 
   <properties>
     <java.module.name>org.kie.ci.test.jars</java.module.name>
-    <maven.compiler.target>11</maven.compiler.target>
-    <maven.compiler.source>11</maven.compiler.source>
   </properties>
 
   <modules>
diff --git a/kie-internal/pom.xml b/kie-internal/pom.xml
index 3f7b59ddfb..353a777c94 100644
--- a/kie-internal/pom.xml
+++ b/kie-internal/pom.xml
@@ -63,7 +63,7 @@
                 <goal>jar</goal>
               </goals>
               <configuration>
-                <source>${maven.compiler.source}</source>
+                <source>${maven.compiler.release}</source>
               </configuration>
             </execution>
           </executions>
diff --git a/kie-maven-plugin/src/test/resources/unit/pmml/pom.xml 
b/kie-maven-plugin/src/test/resources/unit/pmml/pom.xml
deleted file mode 100644
index c4c6cada06..0000000000
--- a/kie-maven-plugin/src/test/resources/unit/pmml/pom.xml
+++ /dev/null
@@ -1,167 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0";
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
-  <modelVersion>4.0.0</modelVersion>
-
-  <groupId>org.kie</groupId>
-  <artifactId>pmmljar</artifactId>
-  <version>2.0</version>
-  <!--  <packaging>kjar</packaging>-->
-  <packaging>jar</packaging>
-
-  <properties>
-    <generateModel>NO</generateModel>
-    <generateDMNModel>NO</generateDMNModel>
-    <maven.compiler.source>1.8</maven.compiler.source>
-    <maven.compiler.target>1.8</maven.compiler.target>
-    <maven.compiler.testSource>1.8</maven.compiler.testSource>
-    <maven.compiler.testTarget>1.8</maven.compiler.testTarget>
-    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
-    <kie.version>8.26.0-SNAPSHOT</kie.version>
-    <dumpKieSourcesFolder>generated-sources</dumpKieSourcesFolder>
-  </properties>
-
-  <pluginRepositories>
-    <pluginRepository>
-      <id>my-local</id>
-      <snapshots>
-        <enabled>true</enabled>
-      </snapshots>
-      <name>my-local</name>
-      <url>~/.m2/repository</url>
-<!--      <layout/>-->
-    </pluginRepository>
-  </pluginRepositories>
-  <dependencies>
-    <dependency>
-      <groupId>org.drools</groupId>
-      <artifactId>drools-model-compiler</artifactId>
-      <version>${kie.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.kie</groupId>
-      <artifactId>kie-pmml-dependencies</artifactId>
-      <version>${kie.version}</version>
-      <exclusions>
-        <!-- Tree -->
-        <exclusion>
-          <groupId>org.kie</groupId>
-          <artifactId>kie-pmml-models-tree-model</artifactId>
-        </exclusion>
-        <exclusion>
-          <groupId>org.kie</groupId>
-          <artifactId>kie-pmml-models-tree-compiler</artifactId>
-        </exclusion>
-        <exclusion>
-          <groupId>org.kie</groupId>
-          <artifactId>kie-pmml-models-tree-evaluator</artifactId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    <!-- Tree -->
-    <dependency>
-      <groupId>org.kie</groupId>
-      <artifactId>kie-pmml-models-drools-tree-model</artifactId>
-      <version>${kie.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.kie</groupId>
-      <artifactId>kie-pmml-models-drools-tree-compiler</artifactId>
-      <version>${kie.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.kie</groupId>
-      <artifactId>kie-pmml-models-drools-tree-evaluator</artifactId>
-      <version>${kie.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.jupiter</groupId>
-      <artifactId>junit-jupiter</artifactId>
-      <version>5.8.2</version>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.assertj</groupId>
-      <artifactId>assertj-core</artifactId>
-      <version>3.16.1</version>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-
-  <build>
-    <resources>
-      <resource>
-        <directory>src/test/resources/unit/pmml</directory>
-      </resource>
-    </resources>
-    <pluginManagement>
-      <plugins>
-        <plugin>
-          <groupId>org.codehaus.mojo</groupId>
-          <artifactId>properties-maven-plugin</artifactId>
-        </plugin>
-        <plugin>
-          <groupId>org.kie</groupId>
-          <artifactId>kie-maven-plugin</artifactId>
-          <version>${kie.version}</version>
-        </plugin>
-      </plugins>
-    </pluginManagement>
-    <plugins>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>properties-maven-plugin</artifactId>
-        <executions>
-          <execution>
-            <goals>
-              <goal>set-system-properties</goal>
-            </goals>
-            <configuration>
-              <properties>
-                <property>
-                  <name>kie-pmml-implementation</name>
-                  <value>new</value>
-                </property>
-              </properties>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <groupId>org.kie</groupId>
-        <artifactId>kie-maven-plugin</artifactId>
-        <extensions>true</extensions>
-        <configuration>
-          <properties>
-            
<drools.dialect.java.compiler.lnglevel>1.8</drools.dialect.java.compiler.lnglevel>
-          </properties>
-          <outputDirectory>target</outputDirectory>
-          <resourceFolder>src/test/resources/unit/pmml</resourceFolder>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
-
-</project>
\ No newline at end of file
diff --git 
a/kie-maven-plugin/src/test/resources/unit/pmml/resources/airconditioningscorecard/air-conditioning-weather-scorecard.pmml
 
b/kie-maven-plugin/src/test/resources/unit/pmml/resources/airconditioningscorecard/air-conditioning-weather-scorecard.pmml
deleted file mode 100644
index 8c21c181ad..0000000000
--- 
a/kie-maven-plugin/src/test/resources/unit/pmml/resources/airconditioningscorecard/air-conditioning-weather-scorecard.pmml
+++ /dev/null
@@ -1,113 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements.  See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership.  The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied.  See the License for the
-  specific language governing permissions and limitations
-  under the License.
-  -->
-
-<PMML version="4.2" xsi:schemaLocation="http://www.dmg.org/PMML-4_2 
http://www.dmg.org/v4-2-1/pmml-4-2.xsd"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns="http://www.dmg.org/PMML-4_2";>
-  <Header description="generated by the drools-scorecards module">
-    <Extension name="importsFromDelimitedString" value="java.util.*"/>
-    <Timestamp>2012.10.07 at 17:04:37 MST</Timestamp>
-  </Header>
-  <DataDictionary numberOfFields="4">
-    <DataField name="period" optype="categorical" dataType="string">
-      <Value value="SPRING" />
-      <Value value="SUMMER" />
-      <Value value="AUTUMN" />
-      <Value value="WINTER" />
-    </DataField>
-    <DataField name="worldcontinent" optype="categorical" dataType="string">
-      <Value value="EUROPE" />
-      <Value value="AFRICA" />
-      <Value value="ASIA" />
-      <Value value="AMERICA" />
-    </DataField>
-    <DataField name="precipitation" optype="categorical" dataType="boolean"/>
-    <DataField name="humidity" optype="continuous" dataType="double" />
-    <DataField name="overallScore" optype="continuous" dataType="double" />
-  </DataDictionary>
-  <Scorecard modelName="Forecast Score" useReasonCodes="false" 
isScorable="true" functionName="regression" baselineScore="0.0" 
initialScore="0.0">
-    <MiningSchema>
-      <MiningField name="period" usageType="active" 
invalidValueTreatment="asMissing"/>
-      <MiningField name="worldcontinent" usageType="active" 
invalidValueTreatment="asMissing"/>
-      <MiningField name="precipitation" usageType="active" 
invalidValueTreatment="asMissing"/>
-      <MiningField name="humidity" usageType="active" 
invalidValueTreatment="asMissing"/>
-      <MiningField name="overallScore" usageType="predicted"/>
-    </MiningSchema>
-    <Output>
-      <OutputField name="forecastScore" displayName="Forecast Score" 
dataType="double" feature="predictedValue" targetField="overallScore"/>
-    </Output>
-    <Characteristics>
-
-      <Characteristic name="PeriodScore" baselineScore="0.0">
-        <Attribute partialScore="9.7">
-          <SimplePredicate field="period" operator="equal" value="SPRING"/>
-        </Attribute>
-        <Attribute partialScore="10.0">
-          <SimplePredicate field="period" operator="equal" value="SUMMER"/>
-        </Attribute>
-        <Attribute partialScore="8.3">
-          <SimplePredicate field="period" operator="equal" value="AUTUMN"/>
-        </Attribute>
-        <Attribute partialScore="8.5">
-          <SimplePredicate field="period" operator="equal" value="WINTER"/>
-        </Attribute>
-      </Characteristic>
-
-      <Characteristic name="ContinentScore" baselineScore="0.0">
-        <Attribute partialScore="-2.3">
-          <Extension name="description" value="America and Asia have storms"/>
-          <SimpleSetPredicate field="worldcontinent" booleanOperator="isIn">
-            <Array n="2" type="string">AMERICA ASIA</Array>
-          </SimpleSetPredicate>
-        </Attribute>
-        <Attribute partialScore="-1.9">
-          <Extension name="description" value="Africa has dry/wet periods"/>
-          <SimplePredicate field="worldcontinent" operator="equal" 
value="AFRICA" />
-        </Attribute>
-        <Attribute partialScore="1.1">
-          <Extension name="description" value="Europe is fine"/>
-          <SimplePredicate field="worldcontinent" operator="equal" 
value="EUROPE" />
-        </Attribute>
-      </Characteristic>
-
-      <Characteristic name="PrecipitationScore" baselineScore="0.0" >
-        <Attribute partialScore="-1.0">
-          <SimplePredicate field="precipitation" operator="equal" 
value="true"/>
-        </Attribute>
-        <Attribute partialScore="0.8">
-          <SimplePredicate field="precipitation" operator="equal" 
value="false"/>
-        </Attribute>
-      </Characteristic>
-
-      <Characteristic name="HumidityScore" baselineScore="0.0">
-        <Attribute partialScore="3.3">
-          <CompoundPredicate booleanOperator="and">
-            <SimplePredicate field="humidity" operator="greaterOrEqual" 
value="30"/>
-            <SimplePredicate field="humidity" operator="lessThan" value="60"/>
-          </CompoundPredicate>
-        </Attribute>
-        <Attribute partialScore="-0.3" >
-          <SimplePredicate field="humidity" operator="lessThan" value="30"/>
-        </Attribute>
-        <Attribute partialScore="-0.6" >
-          <SimplePredicate field="humidity" operator="greaterOrEqual" 
value="60"/>
-        </Attribute>
-      </Characteristic>
-    </Characteristics>
-  </Scorecard>
-</PMML>
diff --git 
a/kie-maven-plugin/src/test/resources/unit/pmml/resources/categoricalvariablesregression/categoricalVariablesRegression.pmml
 
b/kie-maven-plugin/src/test/resources/unit/pmml/resources/categoricalvariablesregression/categoricalVariablesRegression.pmml
deleted file mode 100644
index 3d62098ea6..0000000000
--- 
a/kie-maven-plugin/src/test/resources/unit/pmml/resources/categoricalvariablesregression/categoricalVariablesRegression.pmml
+++ /dev/null
@@ -1,57 +0,0 @@
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements.  See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership.  The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied.  See the License for the
-  specific language governing permissions and limitations
-  under the License.
-  -->
-
-<PMML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="4.2" 
xsi:schemaLocation="http://www.dmg.org/PMML-4_2 
http://www.dmg.org/v4-2-1/pmml-4-2.xsd"; xmlns="http://www.dmg.org/PMML-4_2";>
-  <Header/>
-  <DataDictionary numberOfFields="3">
-    <DataField name="result" optype="continuous" dataType="double"/>
-    <DataField name="x" optype="categorical" dataType="string">
-      <Value value="red"/>
-      <Value value="green"/>
-      <Value value="blue"/>
-      <Value value="orange"/>
-      <Value value="yellow"/>
-    </DataField>
-    <DataField name="y" optype="categorical" dataType="string">
-      <Value value="classA"/>
-      <Value value="classB"/>
-      <Value value="classC"/>
-    </DataField>
-  </DataDictionary>
-  <RegressionModel modelName="categoricalVariables_Model" 
functionName="regression">
-    <MiningSchema>
-      <MiningField name="result" usageType="predicted" 
invalidValueTreatment="returnInvalid"/>
-      <MiningField name="x" usageType="active" 
invalidValueTreatment="returnInvalid"/>
-      <MiningField name="y" usageType="active" 
invalidValueTreatment="returnInvalid"/>
-    </MiningSchema>
-    <Output>
-      <OutputField name="Predicted_result" optype="continuous" 
dataType="double" feature="predictedValue"/>
-    </Output>
-    <RegressionTable intercept="-22.1">
-      <CategoricalPredictor name="x" value="red" coefficient="5.5"/>
-      <CategoricalPredictor name="x" value="green" coefficient="15"/>
-      <CategoricalPredictor name="x" value="blue" coefficient="12"/>
-      <CategoricalPredictor name="x" value="orange" coefficient="5.5"/>
-      <CategoricalPredictor name="x" value="yellow" coefficient="-100.25"/>
-      <CategoricalPredictor name="y" value="classA" coefficient="0"/>
-      <CategoricalPredictor name="y" value="classB" coefficient="20"/>
-      <CategoricalPredictor name="y" value="classC" coefficient="40"/>
-    </RegressionTable>
-  </RegressionModel>
-</PMML>
diff --git 
a/kie-maven-plugin/src/test/resources/unit/pmml/resources/compoundnestedpredicatescorecard/CompoundNestedPredicateScorecard.pmml
 
b/kie-maven-plugin/src/test/resources/unit/pmml/resources/compoundnestedpredicatescorecard/CompoundNestedPredicateScorecard.pmml
deleted file mode 100644
index bfeea4534d..0000000000
--- 
a/kie-maven-plugin/src/test/resources/unit/pmml/resources/compoundnestedpredicatescorecard/CompoundNestedPredicateScorecard.pmml
+++ /dev/null
@@ -1,79 +0,0 @@
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements.  See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership.  The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied.  See the License for the
-  specific language governing permissions and limitations
-  under the License.
-  -->
-
-<PMML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="4.2" 
xsi:schemaLocation="http://www.dmg.org/PMML-4_2 
http://www.dmg.org/v4-2-1/pmml-4-2.xsd"; xmlns="http://www.dmg.org/PMML-4_2";>
-  <Header/>
-  <DataDictionary>
-    <DataField name="input1" optype="continuous" dataType="double"/>
-    <DataField name="input2" optype="categorical" dataType="string"/>
-    <DataField name="score" optype="continuous" dataType="double"/>
-  </DataDictionary>
-  <Scorecard modelName="CompoundNestedPredicateScorecard" 
functionName="regression" useReasonCodes="true" 
reasonCodeAlgorithm="pointsBelow" initialScore="-15" baselineMethod="other">
-    <MiningSchema>
-      <MiningField name="input1" usageType="active" 
invalidValueTreatment="asMissing"/>
-      <MiningField name="input2" usageType="active" 
invalidValueTreatment="asMissing"/>
-      <MiningField name="score" usageType="target"/>
-    </MiningSchema>
-    <Output>
-      <OutputField name="Score" feature="predictedValue" dataType="double" 
optype="continuous"/>
-      <OutputField name="Reason Code 1" rank="1" feature="reasonCode" 
dataType="string" optype="categorical"/>
-      <OutputField name="Reason Code 2" rank="2" feature="reasonCode" 
dataType="string" optype="categorical"/>
-    </Output>
-    <Characteristics>
-      <Characteristic name="characteristic1Score" baselineScore="21.8" 
reasonCode="characteristic1ReasonCode">
-        <Attribute partialScore="-10.5">
-          <CompoundPredicate booleanOperator="and">
-            <CompoundPredicate booleanOperator="and">
-              <True/>
-              <SimplePredicate field="input1" operator="greaterThan" 
value="-15"/>
-              <SimplePredicate field="input1" operator="lessOrEqual" 
value="25.4"/>
-            </CompoundPredicate>
-            <SimplePredicate field="input2" operator="notEqual" 
value="classA"/>
-          </CompoundPredicate>
-        </Attribute>
-        <Attribute partialScore="25">
-          <True/>
-        </Attribute>
-      </Characteristic>
-      <Characteristic name="characteristic2Score" baselineScore="11" 
reasonCode="characteristic2ReasonCode">
-        <Attribute partialScore="-18">
-          <CompoundPredicate booleanOperator="or">
-            <SimplePredicate field="input1" operator="lessOrEqual" 
value="-20"/>
-            <SimplePredicate field="input2" operator="equal" value="classA"/>
-          </CompoundPredicate>
-        </Attribute>
-        <Attribute partialScore="10">
-          <CompoundPredicate booleanOperator="or">
-            <CompoundPredicate booleanOperator="and">
-              <CompoundPredicate booleanOperator="and">
-                <SimplePredicate field="input1" operator="greaterOrEqual" 
value="5"/>
-                <SimplePredicate field="input1" operator="lessThan" 
value="12"/>
-              </CompoundPredicate>
-              <SimplePredicate field="input2" operator="equal" value="classB"/>
-            </CompoundPredicate>
-            <SimplePredicate field="input2" operator="equal" value="classC"/>
-          </CompoundPredicate>
-        </Attribute>
-        <Attribute partialScore="100.5">
-          <True/>
-        </Attribute>
-      </Characteristic>
-    </Characteristics>
-  </Scorecard>
-</PMML>
diff --git 
a/kie-maven-plugin/src/test/resources/unit/pmml/resources/logisticregressionirisdata/logisticRegressionIrisData.pmml
 
b/kie-maven-plugin/src/test/resources/unit/pmml/resources/logisticregressionirisdata/logisticRegressionIrisData.pmml
deleted file mode 100644
index c81bc2973d..0000000000
--- 
a/kie-maven-plugin/src/test/resources/unit/pmml/resources/logisticregressionirisdata/logisticRegressionIrisData.pmml
+++ /dev/null
@@ -1,70 +0,0 @@
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements.  See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership.  The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied.  See the License for the
-  specific language governing permissions and limitations
-  under the License.
-  -->
-
-<PMML xmlns="http://www.dmg.org/PMML-4_2"; version="4.2">
-  <Header/>
-  <DataDictionary numberOfFields="5">
-    <DataField name="Sepal.Length" optype="continuous" dataType="double"/>
-    <DataField name="Sepal.Width" optype="continuous" dataType="double"/>
-    <DataField name="Petal.Length" optype="continuous" dataType="double"/>
-    <DataField name="Petal.Width" optype="continuous" dataType="double"/>
-
-    <DataField name="Species" optype="categorical" dataType="string">
-      <Value value="setosa"/>
-      <Value value="virginica"/>
-      <Value value="versicolor"/>
-    </DataField>
-  </DataDictionary>
-  <RegressionModel functionName="classification" 
modelName="LogisticRegressionIrisData" targetFieldName="Species">
-    <MiningSchema>
-      <MiningField name="Sepal.Length"/>
-      <MiningField name="Sepal.Width"/>
-      <MiningField name="Petal.Length"/>
-      <MiningField name="Petal.Width"/>
-
-      <MiningField name="Species" usageType="target"/>
-    </MiningSchema>
-    <Output>
-      <OutputField name="Probability_setosa" optype="continuous" 
dataType="double" feature="probability" value="setosa"/>
-      <OutputField name="Probability_versicolor" optype="continuous" 
dataType="double" feature="probability" value="versicolor"/>
-      <OutputField name="Probability_virginica" optype="continuous" 
dataType="double" feature="probability" value="virginica"/>
-    </Output>
-
-    <RegressionTable targetCategory="setosa" intercept="0.11822288946815">
-      <NumericPredictor name="Sepal.Length" exponent="1" 
coefficient="0.0660297693761902"/>
-      <NumericPredictor name="Sepal.Width" exponent="1" 
coefficient="0.242847872054487"/>
-      <NumericPredictor name="Petal.Length" exponent="1" 
coefficient="-0.224657116235727"/>
-      <NumericPredictor name="Petal.Width" exponent="1" 
coefficient="-0.0574727291860025"/>
-    </RegressionTable>
-
-    <RegressionTable targetCategory="versicolor" intercept="1.57705897385745">
-      <NumericPredictor name="Sepal.Length" exponent="1" 
coefficient="-0.0201536848255179"/>
-      <NumericPredictor name="Sepal.Width" exponent="1" 
coefficient="-0.44561625761404"/>
-      <NumericPredictor name="Petal.Length" exponent="1" 
coefficient="0.22066920522933"/>
-      <NumericPredictor name="Petal.Width" exponent="1" 
coefficient="-0.494306595747785"/>
-    </RegressionTable>
-
-    <RegressionTable targetCategory="virginica" intercept="-0.695281863325603">
-      <NumericPredictor name="Sepal.Length" exponent="1" 
coefficient="-0.0458760845506725"/>
-      <NumericPredictor name="Sepal.Width" exponent="1" 
coefficient="0.202768385559553"/>
-      <NumericPredictor name="Petal.Length" exponent="1" 
coefficient="0.00398791100639665"/>
-      <NumericPredictor name="Petal.Width" exponent="1" 
coefficient="0.551779324933787"/>
-    </RegressionTable>
-  </RegressionModel>
-</PMML>
diff --git 
a/kie-maven-plugin/src/test/resources/unit/pmml/resources/simplescorecardcategorical/SimpleScorecardCategorical.pmml
 
b/kie-maven-plugin/src/test/resources/unit/pmml/resources/simplescorecardcategorical/SimpleScorecardCategorical.pmml
deleted file mode 100644
index fa0ba6059c..0000000000
--- 
a/kie-maven-plugin/src/test/resources/unit/pmml/resources/simplescorecardcategorical/SimpleScorecardCategorical.pmml
+++ /dev/null
@@ -1,57 +0,0 @@
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements.  See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership.  The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied.  See the License for the
-  specific language governing permissions and limitations
-  under the License.
-  -->
-
-<PMML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="4.2" 
xsi:schemaLocation="http://www.dmg.org/PMML-4_2 
http://www.dmg.org/v4-2-1/pmml-4-2.xsd"; xmlns="http://www.dmg.org/PMML-4_2";>
-  <Header/>
-  <DataDictionary>
-    <DataField name="input1" optype="categorical" dataType="string"/>
-    <DataField name="input2" optype="categorical" dataType="string"/>
-    <DataField name="score" optype="continuous" dataType="double"/>
-  </DataDictionary>
-  <Scorecard modelName="SimpleScorecardCategorical" functionName="regression" 
useReasonCodes="true" reasonCodeAlgorithm="pointsBelow" initialScore="5" 
baselineMethod="other">
-    <MiningSchema>
-      <MiningField name="input1" usageType="active" 
invalidValueTreatment="asMissing"/>
-      <MiningField name="input2" usageType="active" 
invalidValueTreatment="asMissing"/>
-      <MiningField name="score" usageType="target"/>
-    </MiningSchema>
-    <Output>
-      <OutputField name="Score" feature="predictedValue" dataType="double" 
optype="continuous"/>
-      <OutputField name="Reason Code 1" rank="1" feature="reasonCode" 
dataType="string" optype="categorical"/>
-      <OutputField name="Reason Code 2" rank="2" feature="reasonCode" 
dataType="string" optype="categorical"/>
-    </Output>
-    <Characteristics>
-      <Characteristic name="input1Score" baselineScore="4" 
reasonCode="Input1ReasonCode">
-        <Attribute partialScore="-12">
-          <SimplePredicate field="input1" operator="equal" value="classA"/>
-        </Attribute>
-        <Attribute partialScore="50">
-          <SimplePredicate field="input1" operator="equal" value="classB"/>
-        </Attribute>
-      </Characteristic>
-      <Characteristic name="input2Score" baselineScore="8" 
reasonCode="Input2ReasonCode">
-        <Attribute partialScore="-8">
-          <SimplePredicate field="input2" operator="equal" value="classA"/>
-        </Attribute>
-        <Attribute partialScore="32">
-          <SimplePredicate field="input2" operator="equal" value="classB"/>
-        </Attribute>
-      </Characteristic>
-    </Characteristics>
-  </Scorecard>
-</PMML>
diff --git 
a/kie-maven-plugin/src/test/resources/unit/pmml/resources/singleiriskmeansclustering/SingleIrisKMeansClustering.pmml
 
b/kie-maven-plugin/src/test/resources/unit/pmml/resources/singleiriskmeansclustering/SingleIrisKMeansClustering.pmml
deleted file mode 100644
index 95e1effc85..0000000000
--- 
a/kie-maven-plugin/src/test/resources/unit/pmml/resources/singleiriskmeansclustering/SingleIrisKMeansClustering.pmml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<PMML version="4.1" xmlns="http://www.dmg.org/PMML-4_1";>
-  <Header copyright="KNIME">
-    <Application name="KNIME" version="2.8.0"/>
-  </Header>
-  <DataDictionary numberOfFields="5">
-    <DataField name="sepal_length" optype="continuous" dataType="double">
-      <Interval closure="closedClosed" leftMargin="4.3" rightMargin="7.9"/>
-    </DataField>
-    <DataField name="sepal_width" optype="continuous" dataType="double">
-      <Interval closure="closedClosed" leftMargin="2.0" rightMargin="4.4"/>
-    </DataField>
-    <DataField name="petal_length" optype="continuous" dataType="double">
-      <Interval closure="closedClosed" leftMargin="1.0" rightMargin="6.9"/>
-    </DataField>
-    <DataField name="petal_width" optype="continuous" dataType="double">
-      <Interval closure="closedClosed" leftMargin="0.1" rightMargin="2.5"/>
-    </DataField>
-    <DataField name="class" optype="continuous" dataType="string"/>
-  </DataDictionary>
-  <ClusteringModel modelName="SingleIrisKMeansClustering" 
functionName="clustering" modelClass="centerBased" numberOfClusters="4">
-    <MiningSchema>
-      <MiningField name="sepal_length" invalidValueTreatment="asIs"/>
-      <MiningField name="sepal_width" invalidValueTreatment="asIs"/>
-      <MiningField name="petal_length" invalidValueTreatment="asIs"/>
-      <MiningField name="petal_width" invalidValueTreatment="asIs"/>
-      <MiningField name="class" usageType="predicted"/>
-    </MiningSchema>
-    <ComparisonMeasure kind="distance">
-      <squaredEuclidean/>
-    </ComparisonMeasure>
-    <ClusteringField field="sepal_length" compareFunction="absDiff"/>
-    <ClusteringField field="sepal_width" compareFunction="absDiff"/>
-    <ClusteringField field="petal_length" compareFunction="absDiff"/>
-    <ClusteringField field="petal_width" compareFunction="absDiff"/>
-    <Cluster name="cluster_1" size="32">
-      <Array n="4" type="real">6.9125000000000005 3.099999999999999 
5.846874999999999 2.1312499999999996</Array>
-    </Cluster>
-    <Cluster name="cluster_2" size="41">
-      <Array n="4" type="real">6.23658536585366 2.8585365853658535 
4.807317073170731 1.6219512195121943</Array>
-    </Cluster>
-    <Cluster name="cluster_3" size="50">
-      <Array n="4" type="real">5.005999999999999 3.4180000000000006 1.464 
0.2439999999999999</Array>
-    </Cluster>
-    <Cluster name="cluster_4" size="27">
-      <Array n="4" type="real">5.529629629629629 2.6222222222222222 
3.940740740740741 1.2185185185185188</Array>
-    </Cluster>
-  </ClusteringModel>
-</PMML>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


Reply via email to