executable-model build failed because trying to resolve test case in Windows in RHDM
Issue
- When I build a kjar with executable-model (mvn clean install -DgenerateModel=YES -DskipTests) in Windows, the build tries to resolve java source under "src/test/java" then failed with the error
[ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.20.0-SNAPSHOT:generateModel (default-generateModel) on project with-test-sources: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.20.0-SNAPSHOT:generateModel failed: Unable to get KieModule, Errors Existed: Error Messages:
[ERROR] Message [id=1, level=ERROR, path=src/test/java/com/sample/SampleTest.java, line=15, column=372
[ERROR] text=Only a type can be imported. org.mockito.Mockito resolves to a package]
[ERROR] Message [id=2, level=ERROR, path=src/test/java/com/sample/SampleTest.java, line=22, column=563
[ERROR] text=Mockito cannot be resolved]
[ERROR] ---
It doesn't happen in MacOS/RHEL7
Environment
- Red Hat Decision Manager (RHDM)
- 7.2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.