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

executable-model build failed because trying to resolve test case in Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.18.0.Final, 7.19.0.Final
    • executable model
    • 2019 Week 11-13
      • Unzip with-test-sources-reproducer.zip in Windows
      • mvn clean install -DgenerateModel=YES -DskipTests
    • NEW
    • NEW

      Under the condition:

      • Windows
      • executable-model build (mvn clean install -DgenerateModel=YES -DskipTests)

      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 faile
      d: 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

            lmolteni@redhat.com Luca Molteni
            rhn-support-tkobayas Toshiya Kobayashi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: