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

[Karaf 4] karaf4-parent fails in maven-antrun-plugin patch-karaf-scripts

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • 2.0.5
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 8479

    Description

      When I locally run a "mvn clean install" on infrautils (on Git rev d60bcc30f66befb84d9e3eeea0e8fc76960e6b12, that's the current master plus https://git.opendaylight.org/gerrit/#/c/57223/), then it fails like this:

      [INFO] — karaf4-plugin:1.9.0-SNAPSHOT:populate-local-repo (populate-local-repo) @ infrautils-karaf4 —
      [WARNING] populate-local-repo: URL factory is already defined
      [INFO] Feature repository discovered recursively: framework-4.0.9
      [INFO] Feature repository discovered recursively: standard-4.0.9
      [INFO] Feature repository discovered recursively: infrautils-features4
      [INFO] Feature repository discovered recursively: infrautils-features4
      [INFO] Feature repository discovered recursively: odl-infrautils-all
      [INFO] Feature repository discovered recursively: odl-infrautils-ready
      [INFO] Feature repository discovered recursively: odl-infrautils-all-with-samples
      [INFO] Feature repository discovered recursively: odl-infrautils-1.2.0-SNAPSHOT
      [INFO] Feature repository discovered recursively: odl-infrautils-counters-sample
      [INFO] Feature repository discovered recursively: odl-infrautils-inject
      [INFO] Feature repository discovered recursively: odl-infrautils-1.2.0-SNAPSHOT
      [INFO] Feature repository discovered recursively: odl-infrautils-utils
      [INFO] Feature repository discovered recursively: framework-4.0.9
      [INFO] Feature repository discovered recursively: standard-4.0.9
      [INFO] Feature repository discovered recursively: org.ops4j.pax.web-4.3.0
      [INFO] Feature repository discovered recursively: odl-infrautils-all
      [INFO] Feature repository discovered recursively: odl-infrautils-1.2.0-SNAPSHOT
      [INFO] Feature repository discovered recursively: odl-infrautils-inject
      [INFO] Feature repository discovered recursively: odl-infrautils-ready
      [INFO] Feature repository discovered recursively: odl-infrautils-all-with-samples
      [INFO] Feature repository discovered recursively: odl-infrautils-counters-sample
      [INFO] Feature repository discovered recursively: odl-infrautils-1.2.0-SNAPSHOT
      [INFO] Feature repository discovered recursively: odl-infrautils-utils
      [INFO]
      [INFO] — maven-antrun-plugin:1.8:run (move-autowire-package) @ infrautils-karaf4 —
      [INFO] Executing tasks

      main:
      [echo] Moving autowire.xml to org/opendaylight/blueprint
      [INFO] Executed tasks
      [INFO]
      [INFO] — maven-antrun-plugin:1.8:run (patch-karaf-scripts) @ infrautils-karaf4 —
      [INFO] Executing tasks

      main:
      [patch] patching file /home/vorburger/dev/ODL/git/infrautils/common/karaf4/target/assembly/bin/instance
      [patch] Hunk #2 succeeded at 307 with fuzz 2 (offset 16 lines).
      [patch] patching file /home/vorburger/dev/ODL/git/infrautils/common/karaf4/target/assembly/bin/instance.bat
      [patch] patching file /home/vorburger/dev/ODL/git/infrautils/common/karaf4/target/assembly/bin/karaf
      [patch] patching file /home/vorburger/dev/ODL/git/infrautils/common/karaf4/target/assembly/bin/karaf.bat
      [patch] patching file /home/vorburger/dev/ODL/git/infrautils/common/karaf4/target/assembly/bin/setenv
      [patch] patching file /home/vorburger/dev/ODL/git/infrautils/common/karaf4/target/assembly/bin/setenv.bat
      [patch] patching file /home/vorburger/dev/ODL/git/infrautils/common/karaf4/target/assembly/system/org/apache/karaf/features/standard/4.0.9/standard-4.0.9-features.xml
      [patch] patching file /home/vorburger/dev/ODL/git/infrautils/common/karaf4/target/assembly/system/org/apache/karaf/features/standard/4.0.9/standard-4.0.9-features.xml
      [patch] Hunk #1 succeeded at 316 with fuzz 2.
      [patch] patching file /home/vorburger/dev/ODL/git/infrautils/common/karaf4/target/assembly/system/org/ops4j/pax/web/pax-web-features/4.3.0/pax-web-features-4.3.0-features.xml
      [patch] Reversed (or previously applied) patch detected! Assume -R? [n]
      [patch] Apply anyway? [n]
      [patch] Skipping patch.
      [patch] 4 out of 4 hunks ignored – saving rejects to file /home/vorburger/dev/ODL/git/infrautils/common/karaf4/target/assembly/system/org/ops4j/pax/web/pax-web-features/4.3.0/pax-web-features-4.3.0-features.xml.rej
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] ODL :: infrautils :: infrautils-artifacts .......... SUCCESS [ 0.639 s]
      [INFO] ODL :: infrautils :: infrautils-util ............... SUCCESS [ 13.082 s]
      [INFO] jobcoordinator-api ................................. SUCCESS [ 4.281 s]
      [INFO] ODL :: infrautils :: counters-api .................. SUCCESS [ 3.054 s]
      [INFO] ODL :: infrautils :: infrautils-testutils .......... SUCCESS [ 9.661 s]
      [INFO] jobcoordinator-impl ................................ SUCCESS [03:15 min]
      [INFO] ODL :: infrautils :: inject ........................ SUCCESS [ 2.767 s]
      [INFO] ODL :: infrautils :: counters-impl ................. SUCCESS [ 2.577 s]
      [INFO] samples-counters-impl .............................. SUCCESS [ 2.485 s]
      [INFO] ODL :: infrautils :: infrautils-features ........... SUCCESS [01:20 min]
      [INFO] OpenDaylight :: Infrautils :: DataStoreUtils ....... SUCCESS [ 18.008 s]
      [INFO] OpenDaylight :: Infrautils :: @Inject .............. SUCCESS [ 13.393 s]
      [INFO] ready-api .......................................... SUCCESS [ 7.225 s]
      [INFO] ready-impl ......................................... SUCCESS [ 5.935 s]
      [INFO] OpenDaylight :: Infrautils :: Ready ................ SUCCESS [ 14.594 s]
      [INFO] OpenDaylight :: Infrautils :: All .................. SUCCESS [ 14.878 s]
      [INFO] OpenDaylight :: Infrautils :: Counters ............. SUCCESS [ 14.009 s]
      [INFO] OpenDaylight :: Infrautils :: Counters Sample ...... SUCCESS [ 15.511 s]
      [INFO] OpenDaylight :: Infrautils :: All with Samples ..... SUCCESS [ 14.607 s]
      [INFO] OpenDaylight :: Infrautils :: Utils ................ SUCCESS [ 14.574 s]
      [INFO] ODL :: infrautils :: infrautils-features4 .......... SUCCESS [ 15.159 s]
      [INFO] ODL :: infrautils :: features ...................... SUCCESS [ 0.025 s]
      [INFO] ODL :: infrautils :: infrautils-karaf .............. SUCCESS [ 20.386 s]
      [INFO] ODL :: infrautils :: infrautils-karaf4 ............. FAILURE [ 2.992 s]
      [INFO] ODL :: infrautils :: infrautils-common ............. SKIPPED
      [INFO] ODL :: infrautils :: itestutils .................... SKIPPED
      [INFO] ODL :: infrautils :: itestutils-parent ............. SKIPPED
      [INFO] ODL :: infrautils :: itestutils-it ................. SKIPPED
      [INFO] ODL :: infrautils :: itestutils-aggregator ......... SKIPPED
      [INFO] ODL :: infrautils :: infrautils-counters ........... SKIPPED
      [INFO] jobcoordinator-aggregator .......................... SKIPPED
      [INFO] ODL :: infrautils :: inject.guice.testutils ........ SKIPPED
      [INFO] ODL :: infrautils :: inject-aggregator ............. SKIPPED
      [INFO] ODL :: infrautils :: infrautils-samples ............ SKIPPED
      [INFO] ready-aggregator ................................... SKIPPED
      [INFO] infrautils ......................................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 08:09 min
      [INFO] Finished at: 2017-05-17T00:59:37+02:00
      [INFO] Final Memory: 225M/2009M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (patch-karaf-scripts) on project infrautils-karaf4: An Ant BuildException has occured: 'patch' failed with exit code 1
      [ERROR] around Ant part ...<patch patchfile="/home/vorburger/dev/ODL/git/infrautils/common/karaf4/target/assembly/patches/karaf-paxweb.patch" originalfile="/home/vorburger/dev/ODL/git/infrautils/common/karaf4/target/assembly/system/org/ops4j/pax/web/pax-web-features/4.3.0/pax-web-features-4.3.0-features.xml" failonerror="true"/>... @ 13:306 in /home/vorburger/dev/ODL/git/infrautils/common/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 :infrautils-karaf4

      I'll attach some of the files which appear to be relevant here (according to above).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            vorburger Michael Vorburger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: