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

          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.
          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 -

          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.
          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.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development