[
https://issues.apache.org/jira/browse/FELIX-696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler closed FELIX-696.
----------------------------------
Resolution: Fixed
> Dependency type is not checked when the plugin searches for scr configuration
> files
> -----------------------------------------------------------------------------------
>
> Key: FELIX-696
> URL: https://issues.apache.org/jira/browse/FELIX-696
> Project: Felix
> Issue Type: Bug
> Components: Maven SCR Plugin
> Affects Versions: maven-scr-plugin-1.0.7
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Fix For: maven-scr-plugin-1.0.8
>
>
> The plugin tries to find scr configuration files in the artifacts of the
> dependencies. This search does not take the type of the artifact (jar, pom,
> war etc.) into account which results in exceptions when trying to open the
> artifact as a jar:
> [DEBUG] Configuring mojo
> 'org.apache.felix:maven-scr-plugin:1.0.8-SNAPSHOT:scr' -->
> [DEBUG] (f) finalName = serviceComponents.xml
> [DEBUG] (f) generateAccessors = true
> [DEBUG] (f) metaTypeName = metatype.xml
> [DEBUG] (f) outputDirectory =
> /Users/ifeulner/Dev/svn/trunk/src/oc-card-services/target/scr-plugin-generated
> [DEBUG] (f) project = MavenProject:
> net.openconnector:oc-card-services:1.0-SNAPSHOT @
> /Users/ifeulner/Dev/svn/trunk/src/oc-card-services/pom.xml
> [DEBUG] -- end configuration --
> [INFO] [scr:scr {execution: generate-scr-scrdescriptor}]
> [DEBUG] Starting SCRDescriptorMojo....
> [DEBUG] ..generating accessors: true
> [DEBUG] Setting up QDox
> [DEBUG] Adding source tree
> /Users/ifeulner/Dev/svn/trunk/src/oc-card-services/src/main/java
> [DEBUG] Checking artifact
> net.openconnector.build:provision:pom:1.0-SNAPSHOT:provided
> [DEBUG] Resolving artifact
> net.openconnector.build:provision:pom:1.0-SNAPSHOT:provided
> [DEBUG] Trying to get manifest from artifact
> net.openconnector.build:provision:pom:1.0-SNAPSHOT:provided
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Unable to get manifest from artifact
> net.openconnector.build:provision:pom:1.0-SNAPSHOT:provided
> Embedded error: error in opening zip file
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get
> manifest from artifact
> net.openconnector.build:provision:pom:1.0-SNAPSHOT:provided
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> 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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to get
> manifest from artifact
> net.openconnector.build:provision:pom:1.0-SNAPSHOT:provided
> at
> org.apache.felix.scrplugin.tags.JavaClassDescriptorManager.<init>(JavaClassDescriptorManager.java:170)
> at
> org.apache.felix.scrplugin.SCRDescriptorMojo.execute(SCRDescriptorMojo.java:106)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> ... 16 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.<init>(ZipFile.java:114)
> at java.util.jar.JarFile.<init>(JarFile.java:133)
> at java.util.jar.JarFile.<init>(JarFile.java:97)
> at
> org.apache.felix.scrplugin.tags.JavaClassDescriptorManager.getManifest(JavaClassDescriptorManager.java:270)
> at
> org.apache.felix.scrplugin.tags.JavaClassDescriptorManager.<init>(JavaClassDescriptorManager.java:150)
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.