Karaf
  1. Karaf
  2. KARAF-1085

Add Kar deployer demo using features-maven-plugin

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.5
    • Fix Version/s: 2.2.5
    • Component/s: karaf-demo
    • Labels:
      None

      Description

      Add Kar deployer demo using features-maven-plugin

        Issue Links

          Activity

          Jamie goodyear created issue -
          Jamie goodyear made changes -
          Field Original Value New Value
          Link This issue is a clone of KARAF-984 [ KARAF-984 ]
          Jamie goodyear made changes -
          Fix Version/s 3.0.0 [ 12316040 ]
          Affects Version/s 3.0.0 [ 12316040 ]
          Description Add Kar deployer demo Add Kar deployer demo using features-maven-plugin
          Jamie goodyear made changes -
          Link This issue depends on KARAF-959 [ KARAF-959 ]
          Hide
          Jamie goodyear added a comment -

          Encountering "java.lang.NoSuchMethodError: org.codehaus.plexus.util.cli.Commandline.getShell()Lorg/codehaus/plexus/util/cli/shell/Shell;" when building Kar using Maven 2.2.1, this does not occur when using Maven 3.0.3.

          Digging deeper i've found comments to the following:

          "There's a hack in Maven 2.x (meant to provide some kind of backward-compat) that automatically makes plexus-utils:1.1 a direct dependency of a plugin if the plugin does not already declare a direct dependency on plexus-utils."

          Hence when using Maven 2.2.1 to build the kar we get plexus utils version 1.1 picked up instead of the version that includes the shell command we need.

          Show
          Jamie goodyear added a comment - Encountering "java.lang.NoSuchMethodError: org.codehaus.plexus.util.cli.Commandline.getShell()Lorg/codehaus/plexus/util/cli/shell/Shell;" when building Kar using Maven 2.2.1, this does not occur when using Maven 3.0.3. Digging deeper i've found comments to the following: "There's a hack in Maven 2.x (meant to provide some kind of backward-compat) that automatically makes plexus-utils:1.1 a direct dependency of a plugin if the plugin does not already declare a direct dependency on plexus-utils." Hence when using Maven 2.2.1 to build the kar we get plexus utils version 1.1 picked up instead of the version that includes the shell command we need.
          Hide
          Jamie goodyear added a comment -

          Adding plexus-utils dependency to features maven plugin allows maven 2 to build kars.

          Show
          Jamie goodyear added a comment - Adding plexus-utils dependency to features maven plugin allows maven 2 to build kars.
          Jamie goodyear made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Jamie goodyear made changes -
          Link This issue is blocked by KARAF-1104 [ KARAF-1104 ]
          Hide
          Jamie goodyear added a comment -

          Features maven plugin can not create a kar with Maven 2 due to plexus-utils version dependency.

          Show
          Jamie goodyear added a comment - Features maven plugin can not create a kar with Maven 2 due to plexus-utils version dependency.
          Hide
          Jamie goodyear added a comment -

          $ svn ci
          Adding assemblies/apache-karaf/src/main/filtered-resources/demos/deployer
          Adding assemblies/apache-karaf/src/main/filtered-resources/demos/deployer/kar
          Adding assemblies/apache-karaf/src/main/filtered-resources/demos/deployer/kar/README.txt
          Adding demos/deployer
          Adding demos/deployer/kar
          Adding demos/deployer/kar/NOTICE
          Adding demos/deployer/kar/pom.xml
          Adding demos/deployer/kar/src
          Adding demos/deployer/kar/src/main
          Adding demos/deployer/kar/src/main/resources
          Adding demos/deployer/kar/src/main/resources/features.xml
          Adding demos/deployer/pom.xml
          Sending demos/pom.xml
          Transmitting file data ......
          Committed revision 1213093.

          Show
          Jamie goodyear added a comment - $ svn ci Adding assemblies/apache-karaf/src/main/filtered-resources/demos/deployer Adding assemblies/apache-karaf/src/main/filtered-resources/demos/deployer/kar Adding assemblies/apache-karaf/src/main/filtered-resources/demos/deployer/kar/README.txt Adding demos/deployer Adding demos/deployer/kar Adding demos/deployer/kar/NOTICE Adding demos/deployer/kar/pom.xml Adding demos/deployer/kar/src Adding demos/deployer/kar/src/main Adding demos/deployer/kar/src/main/resources Adding demos/deployer/kar/src/main/resources/features.xml Adding demos/deployer/pom.xml Sending demos/pom.xml Transmitting file data ...... Committed revision 1213093.
          Jamie goodyear made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Jamie goodyear made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Gavin made changes -
          Link This issue depends on KARAF-959 [ KARAF-959 ]
          Gavin made changes -
          Link This issue depends upon KARAF-959 [ KARAF-959 ]

            People

            • Assignee:
              Jamie goodyear
              Reporter:
              Jamie goodyear
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development