maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joerg Schaible (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MPIR-222) Error reported for ZipException caused by dependency of type pom
Date Thu, 03 Mar 2011 00:06:22 GMT
Error reported for ZipException caused by dependency of type pom
----------------------------------------------------------------

                 Key: MPIR-222
                 URL: http://jira.codehaus.org/browse/MPIR-222
             Project: Maven 2.x Project Info Reports Plugin
          Issue Type: Bug
          Components: dependencies
    Affects Versions: 2.3.1
            Reporter: Joerg Schaible
            Priority: Minor


For projects generating webapps based on overlays, we usually exclude anything in web-INF/lib
and manage the dependencies by declaring a dependency explicitly to the pom:

{code:xml}
<dependency>
    <groupId>info.magnolia</groupId>
    <artifactId>magnolia-empty-webapp</artifactId>
    <type>war</type>
    <scope>runtime</scope>
</dependency>
<dependency>
    <groupId>info.magnolia</groupId>
    <artifactId>magnolia-empty-webapp</artifactId>
    <type>pom</type>
</dependency>
...
{code}

This works perfectly, but generating the dependency report, we face everytime a reported ERROR
and stack race, since the report generation tries to open obviously any dependency as ZIP/JAR
file:

{noformat}
[INFO] [INFO] --- maven-site-plugin:3.0-beta-3:site (default-site) @ musikgalerie ---
[INFO] [INFO] configuring report plugin org.apache.maven.plugins:maven-project-info-reports-plugin:2.3.1
[INFO] [INFO] configuring report plugin com.googlecode.maven-overview-plugin:maven-overview-plugin:1.6
[INFO] [INFO] configuring report plugin org.apache.maven.plugins:maven-changes-plugin:2.4
[INFO] [INFO] Parent project loaded from repository.
[INFO] [INFO] Parent project loaded from repository.
[INFO] [INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] [INFO] Generating "Dependencies" report    --- maven-project-info-reports-plugin:2.3.1
[INFO] [ERROR] IOException: Failed to open file /home/joehni/.m2/repository/info/magnolia/magnolia-empty-webapp/4.4.2/magnolia-empty-webapp-4.4.2.pom
: error in opening zip file                                                              
  
[INFO] java.util.zip.ZipException: Failed to open file /home/joehni/.m2/repository/info/magnolia/magnolia-empty-webapp/4.4.2/magnolia-empty-webapp-4.4.2.pom
: error in opening zip file
[INFO]  at org.apache.maven.shared.jar.JarAnalyzer.<init>(JarAnalyzer.java:109)
[INFO]  at org.apache.maven.report.projectinfo.dependencies.Dependencies.getJarDependencyDetails(Dependencies.java:273)
[INFO]  at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.hasSealed(DependenciesRenderer.java:1374)
[INFO]  at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.renderSectionDependencyFileDetails(DependenciesRenderer.java:544)
[INFO]  at org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.renderBody(DependenciesRenderer.java:271)
[INFO]  at org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:79)
[INFO]  at org.apache.maven.report.projectinfo.DependenciesReport.executeReport(DependenciesReport.java:206)
[INFO]  at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:190)
[INFO]  at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:165)
[INFO]  at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:330)
[INFO]  at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:134)
[INFO]  at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:159)
[INFO]  at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:122)
[INFO]  at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
[INFO]  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
[INFO]  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
[INFO]  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
[INFO]  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
[INFO]  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
[INFO]  at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
[INFO]  at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
[INFO]  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
[INFO]  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
[INFO]  at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
[INFO]  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
[INFO]  at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
[INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[INFO]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO]  at java.lang.reflect.Method.invoke(Method.java:613)
[INFO]  at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
[INFO]  at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
[INFO]  at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
[INFO]  at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[INFO] Caused by: java.util.zip.ZipException: error in opening zip file
[INFO]  at java.util.zip.ZipFile.open(Native Method)
[INFO]  at java.util.zip.ZipFile.<init>(ZipFile.java:211)
[INFO]  at java.util.zip.ZipFile.<init>(ZipFile.java:141)
[INFO]  at java.util.jar.JarFile.<init>(JarFile.java:150)
[INFO]  at java.util.jar.JarFile.<init>(JarFile.java:114)
[INFO]  at org.apache.maven.shared.jar.JarAnalyzer.<init>(JarAnalyzer.java:105)
[INFO]  ... 33 more
[INFO] [INFO] Generating "About" report    --- maven-project-info-reports-plugin:2.3.1
[INFO] [INFO] Generating "Project Team" report    --- maven-project-info-reports-plugin:2.3.1
[INFO] [INFO] Generating "Source Repository" report    --- maven-project-info-reports-plugin:2.3.1
[INFO] [INFO] Generating "Project Summary" report    --- maven-project-info-reports-plugin:2.3.1
{noformat}

The report is however successfully created.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message