Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-2416

Missing HttpWagon while upgrading to Karaf 2.4.1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 5.3.1, 5.4.0
    • Fix Version/s: 5.6.3
    • Component/s: assemblies
    • Labels:
      None

      Description

      While upgrading to Karaf 2.4.1 I have found following problem:

      Probably upgrade to Pax Url 2.3.0 causes following problem while building the assembly (see attached file for full stacktrace)

      java.lang.ClassNotFoundException: org.apache.maven.wagon.providers.http.HttpWagon
      

      Adding wagon-http-lightweight as dependency of features-maven-plugin in apache-servicemix assembly pom file (like in Karaf 2.x) solves the problem, but wagon-http-lightweight is already in dependencies of features-maven-plugin on Karaf.

      W should find the problem and remove the workaround in ServiceMix after it is fixed.

      1. WagonProblem.txt
        30 kB
        Krzysztof Sobkowiak

        Issue Links

          Activity

          Hide
          sobkowiak Krzysztof Sobkowiak added a comment -

          The problem occurs only if some artifacts necessary to build the assembly are missing. To reproduce this problem one of the artifacts should be removed, e.g.:

          rm -rf ~/.m2/repository/org/apache/karaf/assemblies/features/standard/2.4.1/
          

          The wagon-http-lightweight should be also removed from the dependencies of features-maven-plugin in apache-servicemix assembly pom file to reproduce the problem.

          Show
          sobkowiak Krzysztof Sobkowiak added a comment - The problem occurs only if some artifacts necessary to build the assembly are missing. To reproduce this problem one of the artifacts should be removed, e.g.: rm -rf ~/.m2/repository/org/apache/karaf/assemblies/features/standard/2.4.1/ The wagon-http-lightweight should be also removed from the dependencies of features-maven-plugin in apache-servicemix assembly pom file to reproduce the problem.
          Hide
          bmargulies Benson Margulies added a comment -

          I seem to have run into this.

          Show
          bmargulies Benson Margulies added a comment - I seem to have run into this.
          Show
          sobkowiak Krzysztof Sobkowiak added a comment - Benson Margulies , here is the workaround which helped in ServiceMix: https://git1-us-west.apache.org/repos/asf?p=servicemix.git;a=blobdiff;f=assembly/pom.xml;h=f0b77fa8e7e09878f7069eda423a6d7857437d9b;hp=ebf8c188b9d608073b4c2cfee94fc5601ab1b73c;hb=1ab6dc93;hpb=7ce06e6ee0f659ca91ee02a018f26f33e2526c34
          Hide
          sobkowiak Krzysztof Sobkowiak added a comment -

          This problem appears only in ServiceMix 5.x and this line ends with this release

          Show
          sobkowiak Krzysztof Sobkowiak added a comment - This problem appears only in ServiceMix 5.x and this line ends with this release

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              sobkowiak Krzysztof Sobkowiak
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development