You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2019/01/10 02:02:00 UTC

[jira] [Comment Edited] (KARAF-6083) karaf-maven-plugin:features-generate-descriptor fails with ClassCastException

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

Freeman Fang edited comment on KARAF-6083 at 1/10/19 2:01 AM:
--------------------------------------------------------------

could you please run "mvn dependency:tree" to see if you have multiple maven-resolver-impl jars, this may reveal more


was (Author: ffang):
could you please run "mvn dependency:tree", this may reveal more

> karaf-maven-plugin:features-generate-descriptor fails with ClassCastException
> -----------------------------------------------------------------------------
>
>                 Key: KARAF-6083
>                 URL: https://issues.apache.org/jira/browse/KARAF-6083
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.2
>         Environment: Debian testing (up to date)
>            Reporter: Robin Vobruba
>            Priority: Major
>
> I am running "mvn karaf:features-generate-descriptor", and I get this error:
> {code:java}
> [ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.2.2:features-generate-descriptor (default-cli) on project myProj: Unable to create features.xml file: java.lang.ClassCastException: org.eclipse.aether.internal.impl.collect.ObjectPool cannot be cast to org.eclipse.aether.internal.impl.collect.ObjectPool -> [Help 1]{code}
> Am ready to supply more info if required.
> It looks llike it has two different versions of the class `org.eclipse.aether.internal.impl.collect.ObjectPool`.. not sure how that happens.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)