[JBoss JIRA] (WFWIP-358) XP 2 manager can apply XP2 stream on EAP 7.3.3
by Martin Svehla (Jira)
Martin Svehla created WFWIP-358:
-----------------------------------
Summary: XP 2 manager can apply XP2 stream on EAP 7.3.3
Key: WFWIP-358
URL: https://issues.redhat.com/browse/WFWIP-358
Project: WildFly WIP
Issue Type: Bug
Reporter: Martin Svehla
Assignee: Kabir Khan
According to the analysis document:
bq. The manager may be run against any 7.3.z version server. The setup and upgrade commands will require a minimum base server version for the XP 2.0 patch stream to be enabled. If the base server is lower than the minimum version, the XP manager may still run these commands if the user uses the --base-patch argument to upgrade the server to a compatible version.
but for EAP 7.3.3
{code}
$ java -jar manager.jar status --jboss-home=jboss-eap-7.3
Starting JBoss EAP XP manager (2.0.0.Final-redhat-20200911).
The JBoss EAP server does not have the JBoss EAP XP patch stream setup.
Enabled patch streams and their cumulative patch ids:
- Patch stream: 'JBoss EAP'; Cumulative patch id: 'base'
Available commands in this state are: [setup]
{code}
{code}
$ java -jar manager.jar setup --jboss-home=jboss-eap-7.3
[snip]
The JBoss EAP expansion pack was setup successfully. You may now use the server.
The JBoss EAP expansion pack is currently empty. To get the intended functionality, apply patches from the JBoss EAP XP patch stream.
{code}
{code}
$ java -jar manager.jar status --jboss-home=jboss-eap-7.3
Starting JBoss EAP XP manager (2.0.0.Final-redhat-20200911).
The JBoss EAP XP patch stream is enabled. You may apply patches both from the JBoss EAP and the JBoss EAP XP patch streams. While enabled the following support policy applies:
[snip]
You are currently on JBoss EAP XP 2.
Enabled patch streams and their cumulative patch ids:
- Patch stream: 'JBoss EAP'; Cumulative patch id: 'base'
- Patch stream: 'jboss-eap-xp-2.0'; Cumulative patch id: 'base'
Available commands in this state are: [remove]
{code}
According to the analysis document I understood this should not work unless I use --base-patch to upgrade server version to 7.3.4+.
Also interesting is, that the status says XP2 stream is enabled, but trying to apply XP2 patch fails.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (JGRP-2502) If the KUBERNETES_NAMESPACE is not set the default value is the "default" namespace
by Filippe Spolti (Jira)
[ https://issues.redhat.com/browse/JGRP-2502?page=com.atlassian.jira.plugin... ]
Filippe Spolti edited comment on JGRP-2502 at 9/23/20 9:43 AM:
---------------------------------------------------------------
[~sebastian.laskawiec] the default namespace is reserved and not meant to be used by users or to deploy applications.
on the default namespace you will find things like the ocp registry, router and registry console.
In my point of view, if I do not set anything I would not expect to see clustering being configured.
was (Author: filippe.spolti):
[~sebastian.laskawiec] the default namespace is reserved and not meant to be used by users or to deploy applications.
on the default namespace you will find things like the ocp registry, router and registry console.
> If the KUBERNETES_NAMESPACE is not set the default value is the "default" namespace
> ------------------------------------------------------------------------------------
>
> Key: JGRP-2502
> URL: https://issues.redhat.com/browse/JGRP-2502
> Project: JGroups
> Issue Type: Bug
> Affects Versions: 5.0.4
> Reporter: Filippe Spolti
> Assignee: Bela Ban
> Priority: Minor
>
> If no namespace is set it defaults to the "default" ocp namespace which will case the warn as described in the log message below:
>
> {code:java}
> WARN [org.jgroups.protocols.kubernetes.KUBE_PING] (thread-9,ee,hdm78-kieserver-1-nggcf) failed getting JSON response from Kubernetes Client[masterUrl=https://172.30.0.1:443/api/v1, headers={Authorization=#MASKED:937#}, connectTimeout=5000, readTimeout=30000, operationAttempts=3, operationSleep=1000, streamProvider=org.jgroups.protocols.kubernetes.stream.TokenStreamProvider@69991c01] for cluster [ee], namespace [default], labels [null]; encountered [java.lang.Exception: 3 attempt(s) with a 1000ms sleep to execute [OpenStream] failed. Last failure was [java.io.IOException: Server returned HTTP response code: 403 for URL: https://172.30.0.1:443/api/v1/namespaces/default/pods]]
> {code}
> IMHO the default namespace should not be used in this case since this namespace should not be used to deploy applications.
>
> If the namespace is not set it means that we do not want to enable the clustering feature, as the namespace is set if the namespace is not set, this condition [1] is not satisfied and the configuration will proceed.
>
> Another problem found in the tests is that, if we do set the KUBERNETES_NAMESPACE with no value, it will detect that the env has an value and will try to use a blank namespace:
>
> {code:java}
> failed getting JSON response from Kubernetes Client[masterUrl=https://172.30.0.1:443/api/v1 , headers={Authorization=#MASKED:874#}, connectTimeout=5000, readTimeout=30000, operationAttempts=3, operationSleep=1000, streamProvider=org.jgroups.protocols.kubernetes.stream.TokenStreamProvider@17978314] for cluster [ee], namespace [], labels [null]; encountered [java.lang.Exception: 3 attempt(s) with a 1000ms sleep to execute [OpenStream] failed. Last failure was [java.io.IOException: Server returned HTTP response code: 403 for URL: https://172.30.0.1:443/api/v1/pods ]]
> {code}
>
> [1] - https://github.com/jgroups-extras/jgroups-kubernetes/blob/master/src/main/java/org/jgroups/protocols/kubernetes/KUBE_PING.java#L145
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (JGRP-2502) If the KUBERNETES_NAMESPACE is not set the default value is the "default" namespace
by Filippe Spolti (Jira)
[ https://issues.redhat.com/browse/JGRP-2502?page=com.atlassian.jira.plugin... ]
Filippe Spolti commented on JGRP-2502:
--------------------------------------
[~sebastian.laskawiec] the default namespace is reserved and not meant to be used by users or to deploy applications.
on the default namespace you will find things like the ocp registry, router and registry console.
> If the KUBERNETES_NAMESPACE is not set the default value is the "default" namespace
> ------------------------------------------------------------------------------------
>
> Key: JGRP-2502
> URL: https://issues.redhat.com/browse/JGRP-2502
> Project: JGroups
> Issue Type: Bug
> Affects Versions: 5.0.4
> Reporter: Filippe Spolti
> Assignee: Bela Ban
> Priority: Minor
>
> If no namespace is set it defaults to the "default" ocp namespace which will case the warn as described in the log message below:
>
> {code:java}
> WARN [org.jgroups.protocols.kubernetes.KUBE_PING] (thread-9,ee,hdm78-kieserver-1-nggcf) failed getting JSON response from Kubernetes Client[masterUrl=https://172.30.0.1:443/api/v1, headers={Authorization=#MASKED:937#}, connectTimeout=5000, readTimeout=30000, operationAttempts=3, operationSleep=1000, streamProvider=org.jgroups.protocols.kubernetes.stream.TokenStreamProvider@69991c01] for cluster [ee], namespace [default], labels [null]; encountered [java.lang.Exception: 3 attempt(s) with a 1000ms sleep to execute [OpenStream] failed. Last failure was [java.io.IOException: Server returned HTTP response code: 403 for URL: https://172.30.0.1:443/api/v1/namespaces/default/pods]]
> {code}
> IMHO the default namespace should not be used in this case since this namespace should not be used to deploy applications.
>
> If the namespace is not set it means that we do not want to enable the clustering feature, as the namespace is set if the namespace is not set, this condition [1] is not satisfied and the configuration will proceed.
>
> Another problem found in the tests is that, if we do set the KUBERNETES_NAMESPACE with no value, it will detect that the env has an value and will try to use a blank namespace:
>
> {code:java}
> failed getting JSON response from Kubernetes Client[masterUrl=https://172.30.0.1:443/api/v1 , headers={Authorization=#MASKED:874#}, connectTimeout=5000, readTimeout=30000, operationAttempts=3, operationSleep=1000, streamProvider=org.jgroups.protocols.kubernetes.stream.TokenStreamProvider@17978314] for cluster [ee], namespace [], labels [null]; encountered [java.lang.Exception: 3 attempt(s) with a 1000ms sleep to execute [OpenStream] failed. Last failure was [java.io.IOException: Server returned HTTP response code: 403 for URL: https://172.30.0.1:443/api/v1/pods ]]
> {code}
>
> [1] - https://github.com/jgroups-extras/jgroups-kubernetes/blob/master/src/main/java/org/jgroups/protocols/kubernetes/KUBE_PING.java#L145
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (DROOLS-5667) DMN editor not saving Annotation in Business Central
by Jan Stastny (Jira)
Jan Stastny created DROOLS-5667:
-----------------------------------
Summary: DMN editor not saving Annotation in Business Central
Key: DROOLS-5667
URL: https://issues.redhat.com/browse/DROOLS-5667
Project: Drools
Issue Type: Bug
Components: DMN Editor
Affects Versions: 7.44.0.Final
Reporter: Jan Stastny
Assignee: Guilherme Gomes
Attachments: annotation-not-saved.gif
When Annotation is added to canvas and editor is saved and reopened, the Annotation is missing.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (DROOLS-5663) align kie-maven-plugin default value for generateModel configuration flag
by Matteo Mortari (Jira)
[ https://issues.redhat.com/browse/DROOLS-5663?page=com.atlassian.jira.plug... ]
Matteo Mortari updated DROOLS-5663:
-----------------------------------
Description:
h2. Executive Summary
IFF the user do NOT specify the {{generateModel}} configuration flag for the kie-maven-plugin, the KJAR project ends up being built twice.
h2. Details
Take note of "Steps to Reproduce".
We can observe that, at first, {{GenerateModelMojo}} is invoked, and then {{BuildMojo}} is ALSO invoked. With the end result that the {{drools-model}} file is generated anyway in the final JAR (kjar) artifact.
In details, from the attached log, we notice at first the {{GenerateModelMojo}} is invoked:
!screenshot-1.png|thumbnail!
accordingly the mojo is generating the exec model classes sources:
{code:java}
[INFO] --- kie-maven-plugin:7.44.0-SNAPSHOT:generateModel (default-generateModel) @ kie-maven-plugin-example ---
[INFO] Artifact not fetched from maven: org.drools:drools-model-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.drools:drools-canonical-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.drools:drools-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-backend:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-feel:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.drools:drools-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Found 36 generated files in Canonical Model
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P01/LambdaPredicate01D5F3DAA2D9F6094AE615B9F2841BE2.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/PE1/LambdaConsequenceE181A33F2423D9B3ED83D2764CD9D7CC.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/DomainClassesMetadata58cc6133a88c41de80943de1b39e3585.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/DomainClassesMetadatad1f96973064a44cabb6a83fbe9979fa0.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P4B/LambdaExtractor4BD2450C83C7C6D99B9E58FC68BF23B8.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P04/LambdaConsequence04E3132F35C1152F539B6ED4644AC6B3.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/Alarm.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PD0/LambdaPredicateD0D10C330E24C798AB29B50316181DA1.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/Rules58cc6133a88c41de80943de1b39e3585.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/FactA.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P4D/LambdaExtractor4D55E2E04863B396216330AEDCAD1569.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/PA9/LambdaPredicateA93B7F5E8D7190496BC805E26AB3F457.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PBE/LambdaExtractorBEF0BEA5560B29CBC89C4FC70B9C6D9D.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PD1/LambdaExtractorD1AAF936ED8E4AEEE13080EE8245A712.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P57/LambdaExtractor57699C62EC50788820BA4075F6A28AE6.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P40/LambdaPredicate403C96BCAA32F72ADA05B19CC1ADBEB2.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/FactB.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/Rules58cc6133a88c41de80943de1b39e3585RuleMethods0.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PD5/LambdaConsequenceD5F3898CC43A37A798CA2E0DEAB2CEB4.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P99/LambdaPredicate995D77A8EF2B24CA352A136704291984.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/P5A/LambdaConsequence5A1A7E4CF87C795DC59A8363371B8CE2.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P6B/LambdaConsequence6B7C3E3CA04C944169886E6E213AC0BD.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PC7/LambdaConsequenceC7E285F358A4D3AD09E21A8F3D321D55.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PE8/LambdaExtractorE84DAABE5D3F16E8E69999DC112E2009.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/Rules88d814b4ebe641c58821fd70dab846a5.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PFF/LambdaExtractorFFC29BD91606D6EE3BFE77BA2739B262.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/P33/LambdaExtractor338B6BF83B0E840B16074D6B7DC05F5E.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/Rulesd1f96973064a44cabb6a83fbe9979fa0RuleMethods0.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/PF1/LambdaPredicateF1676D603D66F7F6A116F4D6C8760F76.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/P23/LambdaExtractor2320785F70F7E8677188D3E84D56AEAC.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P10/LambdaPredicate100D2C06CA08502866BCD5764D55E146.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/DomainClassesMetadata88d814b4ebe641c58821fd70dab846a5.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PC7/LambdaConsequenceC73928745AC647142A4A98CC7D45D334.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PC4/LambdaPredicateC4023187C0F98EA3ABBF5261828864D9.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/Rules88d814b4ebe641c58821fd70dab846a5RuleMethods0.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/Rulesd1f96973064a44cabb6a83fbe9979fa0.java
[INFO] DSL successfully generated
[INFO]
{code}
then we get the classic BuildMojo kicking in:
!screenshot-2.png|thumbnail!
and from the log:
{code:java}
[INFO] --- kie-maven-plugin:7.44.0-SNAPSHOT:build (default-build) @ kie-maven-plugin-example ---
[INFO] Artifact not fetched from maven: org.drools:drools-model-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.drools:drools-canonical-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.drools:drools-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-backend:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-feel:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.drools:drools-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] kieMap not present
[INFO] KieModule successfully built!
[INFO]
{code}
So the KJAR project is actually built twice
was:
IFF the user do NOT specify the {{generateModel}} configuration flag for the kie-maven-plugin, the KJAR project ends up being built twice.
Take note of "Steps to Reproduce".
We can observe that, at first, {{GenerateModelMojo}} is invoked, and then {{BuildMojo}} is ALSO invoked. With the end result that the {{drools-model}} file is generated anyway in the final JAR (kjar) artifact.
In details, from the attached log, we notice at first the {{GenerateModelMojo}} is invoked:
!screenshot-1.png|thumbnail!
accordingly the mojo is generating the exec model classes sources:
{code:java}
[INFO] --- kie-maven-plugin:7.44.0-SNAPSHOT:generateModel (default-generateModel) @ kie-maven-plugin-example ---
[INFO] Artifact not fetched from maven: org.drools:drools-model-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.drools:drools-canonical-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.drools:drools-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-backend:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-feel:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.drools:drools-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Found 36 generated files in Canonical Model
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P01/LambdaPredicate01D5F3DAA2D9F6094AE615B9F2841BE2.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/PE1/LambdaConsequenceE181A33F2423D9B3ED83D2764CD9D7CC.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/DomainClassesMetadata58cc6133a88c41de80943de1b39e3585.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/DomainClassesMetadatad1f96973064a44cabb6a83fbe9979fa0.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P4B/LambdaExtractor4BD2450C83C7C6D99B9E58FC68BF23B8.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P04/LambdaConsequence04E3132F35C1152F539B6ED4644AC6B3.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/Alarm.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PD0/LambdaPredicateD0D10C330E24C798AB29B50316181DA1.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/Rules58cc6133a88c41de80943de1b39e3585.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/FactA.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P4D/LambdaExtractor4D55E2E04863B396216330AEDCAD1569.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/PA9/LambdaPredicateA93B7F5E8D7190496BC805E26AB3F457.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PBE/LambdaExtractorBEF0BEA5560B29CBC89C4FC70B9C6D9D.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PD1/LambdaExtractorD1AAF936ED8E4AEEE13080EE8245A712.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P57/LambdaExtractor57699C62EC50788820BA4075F6A28AE6.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P40/LambdaPredicate403C96BCAA32F72ADA05B19CC1ADBEB2.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/FactB.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/Rules58cc6133a88c41de80943de1b39e3585RuleMethods0.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PD5/LambdaConsequenceD5F3898CC43A37A798CA2E0DEAB2CEB4.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P99/LambdaPredicate995D77A8EF2B24CA352A136704291984.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/P5A/LambdaConsequence5A1A7E4CF87C795DC59A8363371B8CE2.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P6B/LambdaConsequence6B7C3E3CA04C944169886E6E213AC0BD.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PC7/LambdaConsequenceC7E285F358A4D3AD09E21A8F3D321D55.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PE8/LambdaExtractorE84DAABE5D3F16E8E69999DC112E2009.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/Rules88d814b4ebe641c58821fd70dab846a5.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PFF/LambdaExtractorFFC29BD91606D6EE3BFE77BA2739B262.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/P33/LambdaExtractor338B6BF83B0E840B16074D6B7DC05F5E.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/Rulesd1f96973064a44cabb6a83fbe9979fa0RuleMethods0.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/PF1/LambdaPredicateF1676D603D66F7F6A116F4D6C8760F76.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/P23/LambdaExtractor2320785F70F7E8677188D3E84D56AEAC.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P10/LambdaPredicate100D2C06CA08502866BCD5764D55E146.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/DomainClassesMetadata88d814b4ebe641c58821fd70dab846a5.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PC7/LambdaConsequenceC73928745AC647142A4A98CC7D45D334.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PC4/LambdaPredicateC4023187C0F98EA3ABBF5261828864D9.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/Rules88d814b4ebe641c58821fd70dab846a5RuleMethods0.java
[INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/Rulesd1f96973064a44cabb6a83fbe9979fa0.java
[INFO] DSL successfully generated
[INFO]
{code}
then we get the classic BuildMojo kicking in:
!screenshot-2.png|thumbnail!
and from the log:
{code:java}
[INFO] --- kie-maven-plugin:7.44.0-SNAPSHOT:build (default-build) @ kie-maven-plugin-example ---
[INFO] Artifact not fetched from maven: org.drools:drools-model-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.drools:drools-canonical-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.drools:drools-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-backend:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-feel:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.drools:drools-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-dmn-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] Artifact not fetched from maven: org.kie:kie-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
[INFO] kieMap not present
[INFO] KieModule successfully built!
[INFO]
{code}
So the KJAR project is actually built twice
> align kie-maven-plugin default value for generateModel configuration flag
> -------------------------------------------------------------------------
>
> Key: DROOLS-5663
> URL: https://issues.redhat.com/browse/DROOLS-5663
> Project: Drools
> Issue Type: Bug
> Components: integration
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
> Priority: Major
> Attachments: Screenshot 2020-09-23 at 12.16.06.png, log.txt, screenshot-1.png, screenshot-2.png
>
>
> h2. Executive Summary
> IFF the user do NOT specify the {{generateModel}} configuration flag for the kie-maven-plugin, the KJAR project ends up being built twice.
> h2. Details
> Take note of "Steps to Reproduce".
> We can observe that, at first, {{GenerateModelMojo}} is invoked, and then {{BuildMojo}} is ALSO invoked. With the end result that the {{drools-model}} file is generated anyway in the final JAR (kjar) artifact.
> In details, from the attached log, we notice at first the {{GenerateModelMojo}} is invoked:
> !screenshot-1.png|thumbnail!
> accordingly the mojo is generating the exec model classes sources:
> {code:java}
> [INFO] --- kie-maven-plugin:7.44.0-SNAPSHOT:generateModel (default-generateModel) @ kie-maven-plugin-example ---
> [INFO] Artifact not fetched from maven: org.drools:drools-model-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-canonical-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-backend:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-feel:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Found 36 generated files in Canonical Model
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P01/LambdaPredicate01D5F3DAA2D9F6094AE615B9F2841BE2.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/PE1/LambdaConsequenceE181A33F2423D9B3ED83D2764CD9D7CC.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/DomainClassesMetadata58cc6133a88c41de80943de1b39e3585.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/DomainClassesMetadatad1f96973064a44cabb6a83fbe9979fa0.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P4B/LambdaExtractor4BD2450C83C7C6D99B9E58FC68BF23B8.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P04/LambdaConsequence04E3132F35C1152F539B6ED4644AC6B3.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/Alarm.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PD0/LambdaPredicateD0D10C330E24C798AB29B50316181DA1.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/Rules58cc6133a88c41de80943de1b39e3585.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/FactA.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P4D/LambdaExtractor4D55E2E04863B396216330AEDCAD1569.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/PA9/LambdaPredicateA93B7F5E8D7190496BC805E26AB3F457.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PBE/LambdaExtractorBEF0BEA5560B29CBC89C4FC70B9C6D9D.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PD1/LambdaExtractorD1AAF936ED8E4AEEE13080EE8245A712.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P57/LambdaExtractor57699C62EC50788820BA4075F6A28AE6.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P40/LambdaPredicate403C96BCAA32F72ADA05B19CC1ADBEB2.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/FactB.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/Rules58cc6133a88c41de80943de1b39e3585RuleMethods0.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PD5/LambdaConsequenceD5F3898CC43A37A798CA2E0DEAB2CEB4.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P99/LambdaPredicate995D77A8EF2B24CA352A136704291984.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/P5A/LambdaConsequence5A1A7E4CF87C795DC59A8363371B8CE2.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P6B/LambdaConsequence6B7C3E3CA04C944169886E6E213AC0BD.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PC7/LambdaConsequenceC7E285F358A4D3AD09E21A8F3D321D55.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PE8/LambdaExtractorE84DAABE5D3F16E8E69999DC112E2009.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/Rules88d814b4ebe641c58821fd70dab846a5.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PFF/LambdaExtractorFFC29BD91606D6EE3BFE77BA2739B262.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/P33/LambdaExtractor338B6BF83B0E840B16074D6B7DC05F5E.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/Rulesd1f96973064a44cabb6a83fbe9979fa0RuleMethods0.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/PF1/LambdaPredicateF1676D603D66F7F6A116F4D6C8760F76.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/P23/LambdaExtractor2320785F70F7E8677188D3E84D56AEAC.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P10/LambdaPredicate100D2C06CA08502866BCD5764D55E146.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/DomainClassesMetadata88d814b4ebe641c58821fd70dab846a5.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PC7/LambdaConsequenceC73928745AC647142A4A98CC7D45D334.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PC4/LambdaPredicateC4023187C0F98EA3ABBF5261828864D9.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/Rules88d814b4ebe641c58821fd70dab846a5RuleMethods0.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/Rulesd1f96973064a44cabb6a83fbe9979fa0.java
> [INFO] DSL successfully generated
> [INFO]
> {code}
> then we get the classic BuildMojo kicking in:
> !screenshot-2.png|thumbnail!
> and from the log:
> {code:java}
> [INFO] --- kie-maven-plugin:7.44.0-SNAPSHOT:build (default-build) @ kie-maven-plugin-example ---
> [INFO] Artifact not fetched from maven: org.drools:drools-model-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-canonical-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-backend:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-feel:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] kieMap not present
> [INFO] KieModule successfully built!
> [INFO]
> {code}
> So the KJAR project is actually built twice
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (DROOLS-5666) Cannot use date literals with the compiled model
by Ciprian Chiru (Jira)
[ https://issues.redhat.com/browse/DROOLS-5666?page=com.atlassian.jira.plug... ]
Ciprian Chiru updated DROOLS-5666:
----------------------------------
Summary: Cannot use date literals with the compiled model (was: Cannot use date literals)
> Cannot use date literals with the compiled model
> ------------------------------------------------
>
> Key: DROOLS-5666
> URL: https://issues.redhat.com/browse/DROOLS-5666
> Project: Drools
> Issue Type: Bug
> Components: executable model
> Affects Versions: 7.43.1.Final
> Reporter: Ciprian Chiru
> Assignee: Luca Molteni
> Priority: Major
>
> as per [https://docs.jboss.org/drools/release/7.43.1.Final/drools-docs/html_singl... given the rule:
>
> {code:java}
> rule "will execute per each Measurement having ID color"
> no-loop
> when
> Measurement( date > "01-May-1990", $colorVal : val )
> then
> controlSet.add($colorVal);
> end{code}
> should work.
> Instead it throws:
> {code:java}
> [...]/target/generated-sources/drools-model-compiler/main/java/rules/Rules54254744800a44aa8e98a0deb3d63bb0RuleMethods0.java:[26,159] method alphaIndexedBy in class org.drools.model.PatternDSL cannot be applied to given types;
> [ERROR] required: java.lang.Class<U>,org.drools.model.Index.ConstraintType,int,org.drools.model.functions.Function1<T,U>,U
> [ERROR] found: java.lang.Class<java.time.LocalDate>,org.drools.model.Index.ConstraintType,int,rules.P33.LambdaExtractor33FA9B82326DE87BF650FB57D8DB8143,java.lang.String
> [ERROR] reason: inference variable U has incompatible bounds
> [ERROR] equality constraints: java.time.LocalDate
> [ERROR] lower bounds: java.lang.String{code}
>
>
>
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (DROOLS-5666) Cannot use date literals
by Ciprian Chiru (Jira)
Ciprian Chiru created DROOLS-5666:
-------------------------------------
Summary: Cannot use date literals
Key: DROOLS-5666
URL: https://issues.redhat.com/browse/DROOLS-5666
Project: Drools
Issue Type: Bug
Components: executable model
Affects Versions: 7.43.1.Final
Reporter: Ciprian Chiru
Assignee: Luca Molteni
as per [https://docs.jboss.org/drools/release/7.43.1.Final/drools-docs/html_singl... given the rule:
{code:java}
rule "will execute per each Measurement having ID color"
no-loop
when
Measurement( date > "01-May-1990", $colorVal : val )
then
controlSet.add($colorVal);
end{code}
should work.
Instead it throws:
{code:java}
[...]/target/generated-sources/drools-model-compiler/main/java/rules/Rules54254744800a44aa8e98a0deb3d63bb0RuleMethods0.java:[26,159] method alphaIndexedBy in class org.drools.model.PatternDSL cannot be applied to given types;
[ERROR] required: java.lang.Class<U>,org.drools.model.Index.ConstraintType,int,org.drools.model.functions.Function1<T,U>,U
[ERROR] found: java.lang.Class<java.time.LocalDate>,org.drools.model.Index.ConstraintType,int,rules.P33.LambdaExtractor33FA9B82326DE87BF650FB57D8DB8143,java.lang.String
[ERROR] reason: inference variable U has incompatible bounds
[ERROR] equality constraints: java.time.LocalDate
[ERROR] lower bounds: java.lang.String{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (DROOLS-5663) align kie-maven-plugin default value for generateModel configuration flag
by Matteo Mortari (Jira)
[ https://issues.redhat.com/browse/DROOLS-5663?page=com.atlassian.jira.plug... ]
Matteo Mortari edited comment on DROOLS-5663 at 9/23/20 9:13 AM:
-----------------------------------------------------------------
And now for a quick history rundown:
# the original non-JIRA-ed PR introduced the GenerateModelMojo as a sibling of the already existing BuildMojo, and at the original time, both mojos were aligned in the defaultValue for "generateModel" configuration flag: https://github.com/kiegroup/droolsjbpm-integration/pull/1310
# with [DROOLS-4092] the defaultValue started to diverge, since it changed *only* in GenerateModelMojo. At this point in history, the build is already performed twice: https://github.com/lucamolteni/droolsjbpm-integration/commit/1b158a767b97...
# with [DROOLS-4370] is only a rename of the value for the "generateModel" configuration flag: https://github.com/kiegroup/droolsjbpm-integration/commit/fdda968207565f5...
# with [DROOLS-5003] is an internal refactoring making use of the "generateModel" configuration flag, but as demonstrated, the value in GenerateModelMojo VS BuildMojo diverged since step2
was (Author: tari_manga):
And now for a history quick rundown:
# the original non-JIRA-ed PR introduced the GenerateModelMojo as a sibling of the already existing BuildMojo, and at the original time, both mojos were aligned in the defaultValue for "generateModel" configuration flag: https://github.com/kiegroup/droolsjbpm-integration/pull/1310
# with [DROOLS-4092] the defaultValue started to diverge, since it changed *only* in GenerateModelMojo. At this point in history, the build is already performed twice: https://github.com/lucamolteni/droolsjbpm-integration/commit/1b158a767b97...
# with [DROOLS-4370] is only a rename of the value for the "generateModel" configuration flag: https://github.com/kiegroup/droolsjbpm-integration/commit/fdda968207565f5...
# with [DROOLS-5003] is an internal refactoring making use of the "generateModel" configuration flag, but as demonstrated, the value in GenerateModelMojo VS BuildMojo diverged since step2
> align kie-maven-plugin default value for generateModel configuration flag
> -------------------------------------------------------------------------
>
> Key: DROOLS-5663
> URL: https://issues.redhat.com/browse/DROOLS-5663
> Project: Drools
> Issue Type: Bug
> Components: integration
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
> Priority: Major
> Attachments: Screenshot 2020-09-23 at 12.16.06.png, log.txt, screenshot-1.png, screenshot-2.png
>
>
> IFF the user do NOT specify the {{generateModel}} configuration flag for the kie-maven-plugin, the KJAR project ends up being built twice.
> Take note of "Steps to Reproduce".
> We can observe that, at first, {{GenerateModelMojo}} is invoked, and then {{BuildMojo}} is ALSO invoked. With the end result that the {{drools-model}} file is generated anyway in the final JAR (kjar) artifact.
> In details, from the attached log, we notice at first the {{GenerateModelMojo}} is invoked:
> !screenshot-1.png|thumbnail!
> accordingly the mojo is generating the exec model classes sources:
> {code:java}
> [INFO] --- kie-maven-plugin:7.44.0-SNAPSHOT:generateModel (default-generateModel) @ kie-maven-plugin-example ---
> [INFO] Artifact not fetched from maven: org.drools:drools-model-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-canonical-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-backend:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-feel:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Found 36 generated files in Canonical Model
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P01/LambdaPredicate01D5F3DAA2D9F6094AE615B9F2841BE2.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/PE1/LambdaConsequenceE181A33F2423D9B3ED83D2764CD9D7CC.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/DomainClassesMetadata58cc6133a88c41de80943de1b39e3585.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/DomainClassesMetadatad1f96973064a44cabb6a83fbe9979fa0.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P4B/LambdaExtractor4BD2450C83C7C6D99B9E58FC68BF23B8.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P04/LambdaConsequence04E3132F35C1152F539B6ED4644AC6B3.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/Alarm.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PD0/LambdaPredicateD0D10C330E24C798AB29B50316181DA1.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/Rules58cc6133a88c41de80943de1b39e3585.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/FactA.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P4D/LambdaExtractor4D55E2E04863B396216330AEDCAD1569.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/PA9/LambdaPredicateA93B7F5E8D7190496BC805E26AB3F457.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PBE/LambdaExtractorBEF0BEA5560B29CBC89C4FC70B9C6D9D.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PD1/LambdaExtractorD1AAF936ED8E4AEEE13080EE8245A712.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/P57/LambdaExtractor57699C62EC50788820BA4075F6A28AE6.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P40/LambdaPredicate403C96BCAA32F72ADA05B19CC1ADBEB2.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/FactB.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/Rules58cc6133a88c41de80943de1b39e3585RuleMethods0.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PD5/LambdaConsequenceD5F3898CC43A37A798CA2E0DEAB2CEB4.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P99/LambdaPredicate995D77A8EF2B24CA352A136704291984.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/P5A/LambdaConsequence5A1A7E4CF87C795DC59A8363371B8CE2.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P6B/LambdaConsequence6B7C3E3CA04C944169886E6E213AC0BD.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PC7/LambdaConsequenceC7E285F358A4D3AD09E21A8F3D321D55.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PE8/LambdaExtractorE84DAABE5D3F16E8E69999DC112E2009.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/Rules88d814b4ebe641c58821fd70dab846a5.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PFF/LambdaExtractorFFC29BD91606D6EE3BFE77BA2739B262.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/P33/LambdaExtractor338B6BF83B0E840B16074D6B7DC05F5E.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/Rulesd1f96973064a44cabb6a83fbe9979fa0RuleMethods0.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/PF1/LambdaPredicateF1676D603D66F7F6A116F4D6C8760F76.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/acme/test_generateModel_kjararchetype/P23/LambdaExtractor2320785F70F7E8677188D3E84D56AEAC.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/P10/LambdaPredicate100D2C06CA08502866BCD5764D55E146.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/DomainClassesMetadata88d814b4ebe641c58821fd70dab846a5.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PC7/LambdaConsequenceC73928745AC647142A4A98CC7D45D334.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/PC4/LambdaPredicateC4023187C0F98EA3ABBF5261828864D9.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/example/Rules88d814b4ebe641c58821fd70dab846a5RuleMethods0.java
> [INFO] Generating /Users/mmortari/git/droolsjbpm-integration/kie-maven-plugin-example/target/generated-sources/drools-model-compiler/main/java/./org/kie/firealarm/Rulesd1f96973064a44cabb6a83fbe9979fa0.java
> [INFO] DSL successfully generated
> [INFO]
> {code}
> then we get the classic BuildMojo kicking in:
> !screenshot-2.png|thumbnail!
> and from the log:
> {code:java}
> [INFO] --- kie-maven-plugin:7.44.0-SNAPSHOT:build (default-build) @ kie-maven-plugin-example ---
> [INFO] Artifact not fetched from maven: org.drools:drools-model-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-canonical-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-compiler:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-backend:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-feel:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.drools:drools-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-model:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-dmn-core:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] Artifact not fetched from maven: org.kie:kie-api:7.44.0-SNAPSHOT. To enable the KieScanner you need kie-ci on the classpath
> [INFO] kieMap not present
> [INFO] KieModule successfully built!
> [INFO]
> {code}
> So the KJAR project is actually built twice
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months