Hi all, I have a carbon component, which requires maven-invoker as a dependency. When I build this component alone, it builds fine and if I put it as a dropins and put the dependent library(maven-invoker2.1.1) to libs , it works fine with the emm pack. But When I include this with features, to get the maven invoker, as bellow,
<build> <plugins> <plugin> <groupId>org.wso2.maven</groupId> <artifactId>carbon-p2-plugin</artifactId> <version>${carbon.p2.plugin.version}</version> <executions> <execution> <id>p2-feature-generation</id> <phase>package</phase> <goals> <goal>p2-feature-gen</goal> </goals> <configuration> <id>org.wso2.emm</id> <propertiesFile>../../../../etc/feature.properties</propertiesFile> <adviceFile> <properties> <propertyDef>org.wso2.carbon.p2.category.type:console</propertyDef> <propertyDef>org.eclipse.equinox.p2.type.group:false</propertyDef> </properties> </adviceFile> <bundles> <bundleDef>org.bouncycastle.wso2:bcprov-jdk15on:${bcprov.wso2.version}</bundleDef> *<bundleDef>org.apache.maven.shared:maven-invoker:${maven.invoker.version}</bundleDef>* </bundles> <importBundles> </importBundles> <importFeatures> </importFeatures> </configuration> </execution> </executions> </plugin> It produces an error, Even though, the bundle is there in the shown path(in my m2). [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-feature-gen (p2-feature-generation) on project org.wso2.emm.feature: Bundle-SymbolicName cannot be found in the bundle: /home/inoshp/.m2/repository/org/apache/maven/shared/maven-invoker/2.1.1/maven-invoker-2.1.1.jar -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-feature-gen (p2-feature-generation) on project org.wso2.emm.feature: Bundle-SymbolicName cannot be found in the bundle: /home/inoshp/.m2/repository/org/apache/maven/shared/maven-invoker/2.1.1/maven-invoker-2.1.1.jar at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213) at org.apache.maven.cli.MavenCli.main(MavenCli.java:157) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: org.apache.maven.plugin.MojoExecutionException: Bundle-SymbolicName cannot be found in the bundle: /home/inoshp/.m2/repository/org/apache/maven/shared/maven-invoker/2.1.1/maven-invoker-2.1.1.jar at org.wso2.maven.p2.generate.feature.Bundle.resolveOSGIInfo(Bundle.java:330) at org.wso2.maven.p2.generate.feature.Bundle.setArtifact(Bundle.java:150) at org.wso2.maven.p2.generate.feature.FeatureGenMojo.getProcessedBundlesList(FeatureGenMojo.java:287) at org.wso2.maven.p2.generate.feature.FeatureGenMojo.execute(FeatureGenMojo.java:231) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) What could be the cause of this. I check the Bundle-SymbolicName, and it seems correct. Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev