[
https://issues.apache.org/jira/browse/KARAF-3089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14213917#comment-14213917
]
Declan Cox commented on KARAF-3089:
-----------------------------------
FYI This issue crops up again with Karaf 2.3.3 in combination with maven 3.0.5
- obviously a maven version incompatibility which is really the root issue
(NoSuchMethodError the obvious giveaway). My particular situation was resolved
by upgradinfg maven to 3.1.1.
> The features deployer demo doesn't build
> ----------------------------------------
>
> Key: KARAF-3089
> URL: https://issues.apache.org/jira/browse/KARAF-3089
> Project: Karaf
> Issue Type: Bug
> Components: karaf-demo
> Affects Versions: 2.4.0, 2.3.6
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.4.0, 2.3.6
>
>
> The demo/deployer/features module doesn't build on karaf-2.x:
> {code}
> [ERROR] Failed to execute goal
> org.apache.karaf.tooling:features-maven-plugin:2.4.0-SNAPSHOT:generate-features-file
> (generate-features-file) on project my-feature: Execution
> generate-features-file of goal
> org.apache.karaf.tooling:features-maven-plugin:2.4.0-SNAPSHOT:generate-features-file
> failed: An API incompatibility was encountered while executing
> org.apache.karaf.tooling:features-maven-plugin:2.4.0-SNAPSHOT:generate-features-file:
> java.lang.NoSuchMethodError:
> org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException: method
> <init>(Ljava/lang/String;)V not found
> [ERROR] -----------------------------------------------------
> [ERROR] realm =
> plugin>org.apache.karaf.tooling:features-maven-plugin:2.4.0-SNAPSHOT
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] =
> file:/home/jbonofre/.m2/repository/org/apache/karaf/tooling/features-maven-plugin/2.4.0-SNAPSHOT/features-maven-plugin-2.4.0-SNAPSHOT.jar
> [ERROR] urls[1] =
> file:/home/jbonofre/.m2/repository/org/slf4j/slf4j-jdk14/1.7.5/slf4j-jdk14-1.7.5.jar
> [ERROR] urls[2] =
> file:/home/jbonofre/.m2/repository/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
> ...
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)