Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-22422

Fix nuxeo-automation-io dependency

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.2
    • Component/s: Automation
    • Tags:
    • Sprint:
      nxProduct-W20, nxProduct-W21

      Description

      When trying to package this module only. It depends on classes defined in nuxeo-core-test in the test scope and must depends on test-jar type instead of the jar.

      Compilation Error:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project nuxeo-automation-io: Compilation failure: Compilation failure:
      [ERROR] /Users/arnaud/Nuxeo/sources/nuxeo/nuxeo-features/nuxeo-automation/nuxeo-automation-io/src/test/java/org/nuxeo/ecm/automation/test/service/RestServiceTest.java:[34,46] cannot find symbol
      [ERROR]   symbol:   class JsonAssert
      [ERROR]   location: package org.nuxeo.ecm.core.io.marshallers.json
      [ERROR] /Users/arnaud/Nuxeo/sources/nuxeo/nuxeo-features/nuxeo-automation/nuxeo-automation-io/src/test/java/org/nuxeo/ecm/automation/test/service/RestServiceTest.java:[131,9] cannot find symbol
      [ERROR]   symbol:   class JsonAssert
      [ERROR]   location: class org.nuxeo.ecm.automation.test.service.RestServiceTest
      [ERROR] /Users/arnaud/Nuxeo/sources/nuxeo/nuxeo-features/nuxeo-automation/nuxeo-automation-io/src/test/java/org/nuxeo/ecm/automation/test/service/RestServiceTest.java:[131,33] cannot find symbol
      [ERROR]   symbol:   variable JsonAssert
      [ERROR]   location: class org.nuxeo.ecm.automation.test.service.RestServiceTest
      [ERROR] /Users/arnaud/Nuxeo/sources/nuxeo/nuxeo-features/nuxeo-automation/nuxeo-automation-io/src/test/java/org/nuxeo/ecm/automation/test/service/RestServiceTest.java:[134,22] cannot find symbol
      [ERROR]   symbol:   variable JsonAssert
      [ERROR]   location: class org.nuxeo.ecm.automation.test.service.RestServiceTest
      [ERROR] -> [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.
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: