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 C3A6217318 for ; Thu, 23 Apr 2015 13:33:39 +0000 (UTC) Received: (qmail 29661 invoked by uid 500); 23 Apr 2015 13:33:39 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 29554 invoked by uid 500); 23 Apr 2015 13:33:39 -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 29326 invoked by uid 99); 23 Apr 2015 13:33:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2015 13:33:39 +0000 Date: Thu, 23 Apr 2015 13:33:39 +0000 (UTC) From: "Carsten Ziegeler (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (FELIX-3223) SCR Plugin requires installed .jar files for metadata extraction 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-3223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler closed FELIX-3223. ----------------------------------- > SCR Plugin requires installed .jar files for metadata extraction > ---------------------------------------------------------------- > > Key: FELIX-3223 > URL: https://issues.apache.org/jira/browse/FELIX-3223 > Project: Felix > Issue Type: Bug > Components: SCR Tooling > Affects Versions: maven-scr-plugin-1.7.2 > Reporter: Mark Derricutt > Assignee: Carsten Ziegeler > Priority: Minor > > I was just diagnosing a strange build problem for a coworker and traced it down to a combination of us doing a release yesterday, and the developer in question running "mvn clean test" rather than "clean install" which the rest of us do. > It looks like the plugin attempts to resolve and open an installed JAR file for dependencies, rather than - in the case of a reactor build that this was, read from the target/classes directory of the artifact. > I don't know if Maven provides support for automating this at all, but the failure could be a bit more graceful, and inform the user that they need to install dependent artifacts. > {code} > [ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.0.8:scr (generate-scr-scrdescriptor) on project smx3.schema.provider: Unable to get manifest from artifact smx3:smx3.api:jar:4.1.35-SNAPSHOT:compile: error in opening zip file -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.felix:maven-scr-plugin:1.0.8:scr (generate-scr-scrdescriptor) on project smx3.schema.provider: Unable to get manifest from artifact smx3:smx3.api:jar:4.1.35-SNAPSHOT:compile > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) > 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:319) > 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.MojoExecutionException: Unable to get manifest from artifact smx3:smx3.api:jar:4.1.35-SNAPSHOT:compile > at org.apache.felix.scrplugin.tags.JavaClassDescriptorManager.(JavaClassDescriptorManager.java:171) > at org.apache.felix.scrplugin.SCRDescriptorMojo.execute(SCRDescriptorMojo.java:106) > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > ... 19 more > Caused by: java.util.zip.ZipException: error in opening zip file > at java.util.zip.ZipFile.open(Native Method) > at java.util.zip.ZipFile.(ZipFile.java:127) > at java.util.jar.JarFile.(JarFile.java:135) > at java.util.jar.JarFile.(JarFile.java:99) > at org.apache.felix.scrplugin.tags.JavaClassDescriptorManager.getManifest(JavaClassDescriptorManager.java:287) > at org.apache.felix.scrplugin.tags.JavaClassDescriptorManager.(JavaClassDescriptorManager.java:151) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)