Baptiste Gaillard wrote:
>
>
>
>
>
> Hi, 
>
> I'm trying to compile the last version of the PearPackagingMavenPlugin, but 
> it seems there is a problem on PDF generation... 
>
> Here is the exception I've encountered: 
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: The following error occurred while 
> executing this line:
> /Users/bouba/Documents/workspace_uima/uima-docbook-tool/build/build-docbook.xml:174:
>  The following error occurred while executing this line:
> /Users/bouba/Documents/workspace_uima/uima-docbook-tool/build/get-components.xml:79:
>  Error while expanding 
> /Users/bouba/Documents/workspace_uima/PearPackagingMavenPlugin/target/temp/fop.zip
> java.io.IOException: Negative seek offset
>
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: An Ant BuildException 
> has occured: The following error occurred while executing this line:
> /Users/bouba/Documents/workspace_uima/uima-docbook-tool/build/build-docbook.xml:174:
>  The following error occurred while executing this line:
> /Users/bouba/Documents/workspace_uima/uima-docbook-tool/build/get-components.xml:79:
>  Error while expanding 
> /Users/bouba/Documents/workspace_uima/PearPackagingMavenPlugin/target/temp/fop.zip
> java.io.IOException: Negative seek offset
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>         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:585)
>         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: An Ant 
> BuildException has occured: The following error occurred while executing this 
> line:
> /Users/bouba/Documents/workspace_uima/uima-docbook-tool/build/build-docbook.xml:174:
>  The following error occurred while executing this line:
> /Users/bouba/Documents/workspace_uima/uima-docbook-tool/build/get-components.xml:79:
>  Error while expanding 
> /Users/bouba/Documents/workspace_uima/PearPackagingMavenPlugin/target/temp/fop.zip
> java.io.IOException: Negative seek offset
>         at 
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:131)
>         at 
> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:98)
>         at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>         ... 16 more
> Caused by: The following error occurred while executing this line:
> /Users/bouba/Documents/workspace_uima/uima-docbook-tool/build/build-docbook.xml:174:
>  The following error occurred while executing this line:
> /Users/bouba/Documents/workspace_uima/uima-docbook-tool/build/get-components.xml:79:
>  Error while expanding 
> /Users/bouba/Documents/workspace_uima/PearPackagingMavenPlugin/target/temp/fop.zip
> java.io.IOException: Negative seek offset
>         at 
> org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
>         at 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         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:585)
>         at 
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:357)
>         at 
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:118)
>         ... 19 more
> Caused by: 
> /Users/bouba/Documents/workspace_uima/uima-docbook-tool/build/build-docbook.xml:174:
>  The following error occurred while executing this line:
> /Users/bouba/Documents/workspace_uima/uima-docbook-tool/build/get-components.xml:79:
>  Error while expanding 
> /Users/bouba/Documents/workspace_uima/PearPackagingMavenPlugin/target/temp/fop.zip
> java.io.IOException: Negative seek offset
>         at 
> org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
>         at 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at 
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:357)
>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at 
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>         at 
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
>         ... 28 more
> Caused by: 
> /Users/bouba/Documents/workspace_uima/uima-docbook-tool/build/get-components.xml:79:
>  Error while expanding 
> /Users/bouba/Documents/workspace_uima/PearPackagingMavenPlugin/target/temp/fop.zip
> java.io.IOException: Negative seek offset
>         at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:148)
>         at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:107)
>         at 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at 
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:357)
>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at 
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>         at 
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
>         ... 40 more
> Caused by: java.io.IOException: Negative seek offset
>         at java.io.RandomAccessFile.seek(Native Method)
>         at 
> org.apache.tools.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:403)
>         at 
> org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:271)
>         at org.apache.tools.zip.ZipFile.<init>(ZipFile.java:152)
>         at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:137)
>         ... 53 more
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 5 minutes 36 seconds
> [INFO] Finished at: Sun Jul 12 19:45:08 CEST 2009
> [INFO] Final Memory: 18M/33M
> [INFO] 
> ------------------------------------------------------------------------
>
> If I delete the section corresponding to documentation generation everything 
> is good. 
> I'm using Maven 2.2.0, Java 1.5.0_19 on MacOS X Tiger, do you know why this 
> exception appear ? 
> And, I have an other question, why is the PearPackagingMavenPlugin named 
> PearPackagingMavenPlugin ? I think it could be better if the plugin name 
> respect the Maven plugin conventions as mentioned here 
> http://maven.apache.org/guides/plugin/guide-java-plugin-development.html. 
>
>    " The "maven-$name-plugin" and "$name-maven-plugin"
> artifactId patterns are treated in a special way. If no plugin matches
> the artifactId specified on the command line, Maven will try expanding
> the artifactId to these patterns in that order. So in the case of our
> example, you can use "mvn sample.plugin:hello:sayhi" to run your plugin. 
> Note: these 2 patterns are used respectively by the official Maven 2 plugins 
> and the Mojo project plugins. "
>   

Yes, I agree that that convention would have been good to follow.
> So I think an artifactId named "pear-packaging-maven-plugin" or 
> "maven-pear-packaging-plugin" should be used.
>   
+1.  I wonder if this kind of change can be done in a
backwards-compatible way?  I do not want to break how this works for
existing users.

-Marshall
> Thanks, 
>
> Baptiste Gaillard
>
> _________________________________________________________________
> Téléphonez gratuitement à tous vos proches avec Windows Live Messenger  !  
> Téléchargez-le maintenant !
> http://www.windowslive.fr/messenger/1.asp
>   

Reply via email to