kevin-wimmer opened a new issue, #6374:
URL: https://github.com/apache/incubator-kie-drools/issues/6374

   **Current Behavior**
   Despite having drools-mvel on the classpath, the build fails with the 
following error:
   ```
   [ERROR] Failed to execute goal org.kie:kie-maven-plugin:10.0.0:build 
(default-build) on project drools-test: Execution default-build of goal 
org.kie:kie-maven-plugin:10.0.0:build failed: Rules compilation failed or 
interrupted: java.lang.ExceptionInInitializerError: You're trying to compile a 
Drools asset without mvel. Please add the module org.drools:drools-mvel to your 
classpath. -> [Help 1]
   [ERROR]
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR]
   [ERROR] For more information about the errors and possible solutions, please 
read the following articles:
   [ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
   ```
   The build succeeds after removing any one rule, but fails again when that 
rule is added back.
   
   **Expected Behavior**
   Project should build successfully.
   
   **Steps to Reproduce**
   1. Using the provided [sample 
project](https://github.com/user-attachments/files/20715695/reproducer.zip), 
execute `mvn package` and notice that the build fails with the error shown above
   2. Remove any one rule from either Sample.drl or Sample2.drl
   3. Rebuild the project and notice that the build is successful
   4. Restore the rule removed in step 2
   5. Rebuild the project and notice that, again, the build fails with the 
above error
   
   **Additional Information**
   JDK: Azul Zulu21.42+19-CA (build 21.0.7+6-LTS)
   Maven: 3.9.9


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to