Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C843CC507 for ; Tue, 2 Jul 2013 12:08:23 +0000 (UTC) Received: (qmail 15484 invoked by uid 500); 2 Jul 2013 12:08:23 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 15183 invoked by uid 500); 2 Jul 2013 12:08:22 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 15150 invoked by uid 99); 2 Jul 2013 12:08:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jul 2013 12:08:20 +0000 Date: Tue, 2 Jul 2013 12:08:20 +0000 (UTC) From: "Christina Kaskoura (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FELIX-4021) maven-ipojo-plugin fails on WAR packaging MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-4021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13697714#comment-13697714 ] Christina Kaskoura commented on FELIX-4021: ------------------------------------------- Thank you Guillaume. Could you please let me know when the next build of version 1.10.2-SNAPSHOT will be available on the maven repository? > maven-ipojo-plugin fails on WAR packaging > ----------------------------------------- > > Key: FELIX-4021 > URL: https://issues.apache.org/jira/browse/FELIX-4021 > Project: Felix > Issue Type: Bug > Components: iPOJO > Affects Versions: ipojo-manipulator-1.8.2, ipojo-manipulator-1.8.4, ipojo-manipulator-1.8.6 > Reporter: Giulio Ruggeri > Assignee: Guillaume Sauthier > Fix For: ipojo-manipulator-1.10.2 > > > This is the pom.xml: > > > 4.0.0 > > it.codin.test.osgi > service-gui > war > service-gui WAB OSGi Bundle > > UTF-8 > > > ... > > org.apache.felix > org.apache.felix.ipojo.annotations > 1.8.4 > > ... > > > > > org.apache.felix > maven-bundle-plugin > 2.3.7 > true > > > bundle-manifest > process-classes > > manifest > > > > bundle-install > install > > install > > > > > > jar > bundle > ejb > war > > ${project.build.directory}/bundle > > .,WEB-INF/classes,{maven-dependencies} > > *;scope=compile|runtime > true > > /wab > > > > > org.apache.maven.plugins > maven-war-plugin > 2.3 > > > ${project.build.directory}/bundle/MANIFEST.MF > > > > src/main/webapp > > > > > > org.apache.felix > maven-ipojo-plugin > 1.8.4 > > > > ipojo-bundle > > > > > > > > and this is the error produced: > Failed to execute goal org.apache.felix:maven-ipojo-plugin:1.8.4:ipojo-bundle (default) on project service-gui: Execution default of goal org.apache.felix:maven-ipojo-plugin:1.8.4:ipojo-bundle failed: Path 'META-INF/MANIFEST.MF' do not start with 'WEB-INF/classes/' -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.felix:maven-ipojo-plugin:1.8.4:ipojo-bundle (default) on project service-gui: Execution default of goal org.apache.felix:maven-ipojo-plugin:1.8.4:ipojo-bundle failed: Path 'META-INF/MANIFEST.MF' do not start with 'WEB-INF/classes/' > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) > 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:84) > at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) > at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal org.apache.felix:maven-ipojo-plugin:1.8.4:ipojo-bundle failed: Path 'META-INF/MANIFEST.MF' do not start with 'WEB-INF/classes/' > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > ... 19 more > Caused by: java.lang.IllegalArgumentException: Path 'META-INF/MANIFEST.MF' do not start with 'WEB-INF/classes/' > at org.apache.felix.ipojo.manipulator.store.mapper.WABResourceMapper.externalize(WABResourceMapper.java:42) > at org.apache.felix.ipojo.manipulator.store.JarFileResourceStore.getExternalName(JarFileResourceStore.java:137) > at org.apache.felix.ipojo.manipulator.store.JarFileResourceStore.accept(JarFileResourceStore.java:131) > at org.apache.felix.ipojo.manipulator.metadata.AnnotationMetadataProvider.getMetadatas(AnnotationMetadataProvider.java:55) > at org.apache.felix.ipojo.manipulator.metadata.CompositeMetadataProvider.getMetadatas(CompositeMetadataProvider.java:52) > at org.apache.felix.ipojo.manipulator.Pojoization.pojoization(Pojoization.java:291) > at org.apache.felix.ipojo.manipulator.Pojoization.pojoization(Pojoization.java:198) > at org.apache.felix.ipojo.plugin.ManipulatorMojo.execute(ManipulatorMojo.java:236) > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > ... 20 more > the plugin fails too on version 1.8.2 and 1.8.6 but works fine on version 1.8.0 with the same configuration. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira