Uploaded image for project: 'odlparent'
  1. odlparent
  2. ODLPARENT-101

Karaf 4 distribution local build fails on Windows (missing "patch")

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • 2.0.5
    • General
    • None
    • Operating System: All
      Platform: All

    • 8677

      Would be better to document that "patch" needs to be on execution path for building on windows

      [INFO] ODL :: genius :: fcapsapplication .................. SUCCESS [ 0.863 s]
      [INFO] ODL :: genius :: resourcemanager-aggregator ........ SUCCESS [ 0.839 s]
      [INFO] ODL :: genius :: genius-karaf4 ..................... FAILURE [34:46 min]
      [INFO] ODL :: genius :: genius-it ......................... SKIPPED
      [INFO] genius ............................................. SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 45:54 min
      [INFO] Finished at: 2017-06-13T05:42:08+05:30
      [INFO] Final Memory: 362M/927M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (patch-karaf-scripts) on project genius-karaf4: An Ant BuildException has occured: java.io.IOException: Cannot run progra
      m "patch" (in directory "C:\Users\efaseel\odl_boron\genius\karaf4"): CreateProcess error=2, The system cannot find the file specified
      [ERROR] around Ant part ...<patch patchfile="C:\Users\efaseel\odl_boron\genius\karaf4\target/assembly/patches/karaf-instance.patch" originalfile="C:\Users\efaseel\odl_boron\genius\karaf4\target/assembly/bi
      n/instance" failonerror="true"/>... @ 5:213 in C:\Users\efaseel\odl_boron\genius\karaf4\target\antrun\build-main.xml
      [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.
      [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/MojoExecutionException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR] mvn <goals> -rf :genius-karaf4

            Unassigned Unassigned
            k.faseela Faseela K
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: