[ 
https://issues.apache.org/jira/browse/KARAF-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167144#comment-13167144
 ] 

Jamie goodyear commented on KARAF-1085:
---------------------------------------

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.
                
> Add Kar deployer demo using features-maven-plugin
> -------------------------------------------------
>
>                 Key: KARAF-1085
>                 URL: https://issues.apache.org/jira/browse/KARAF-1085
>             Project: Karaf
>          Issue Type: New Feature
>          Components: karaf-demo
>    Affects Versions: 2.2.5
>            Reporter: Jamie goodyear
>            Assignee: Jamie goodyear
>             Fix For: 2.2.5
>
>
> Add Kar deployer demo using features-maven-plugin

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to