Ticket #292 (closed clarification: fixed)

Opened 2 years ago

Last modified 1 year ago

build problems

Reported by: russ Assigned to: ronald
Priority: high Milestone:
Component: topaz Version:
Keywords: build maven Cc:
Blocking: Blocked By:

Description (Last modified by ronald)

we're trying to do our own build so that rich can demo the upcoming browse feature for a meeting on wednesday.

i'm following the instructions in DevSetup.

i did a checkout. i created ~/.m2/settings with the minimal content. i went into the head directory and ran mvn clean install.

i've tried twice and i get an error in the same place each time:

[INFO] ----------------------------------------------------------------------------
[INFO] Building Search Webservice Server
[INFO]    task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] [axistools:wsdl2java {execution: generate-server-binding}]
[INFO] about to add compile source root
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] error executing plugin

Embedded error: unable to open JAR URL connection for extraction of WSDL file from artifact of sourceDependency info.fedora:fedoragsearch-server:2.1.1-t9-SNAPSHOT:/fedoragsearch-service.wsdl. Reason: java.util.zip.ZipException: No such file or directory
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 minutes 20 seconds
[INFO] Finished at: Mon Feb 26 17:29:44 PST 2007
[INFO] Final Memory: 26M/52M
[INFO] ------------------------------------------------------------------------

any ideas?

thanks!

Dependency Graph

Change History

02/26/07 17:46:54 changed by russ

did a mvn -e install:

[INFO] ---------------------------------------------------------------------------- [INFO] Building Search Webservice Server [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [axistools:wsdl2java {execution: generate-server-binding}] [INFO] about to add compile source root [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] error executing plugin

Embedded error: unable to open JAR URL connection for extraction of WSDL file from artifact of sourceDependency info.fedora:fedoragsearch-server:2.1.1-t9-SNAPSHOT:/fedoragsearch-service.wsdl. Reason: java.util.zip.ZipException?: No such file or directory [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException?: error executing plugin

at org.apache.maven.lifecycle.DefaultLifecycleExecutor?.executeGoals(DefaultLifecycleExecutor?.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor?.executeGoalWithLifecycle(DefaultLifecycleExecutor?.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor?.executeGoal(DefaultLifecycleExecutor?.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor?.executeGoalAndHandleFailures(DefaultLifecycleExecutor?.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor?.executeTaskSegments(DefaultLifecycleExecutor?.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor?.execute(DefaultLifecycleExecutor?.java:140) at org.apache.maven.DefaultMaven?.doExecute(DefaultMaven?.java:322) at org.apache.maven.DefaultMaven?.execute(DefaultMaven?.java:115) at org.apache.maven.cli.MavenCli?.main(MavenCli?.java:256) 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?: error executing plugin

at org.codehaus.mojo.axistools.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:320) at org.apache.maven.plugin.DefaultPluginManager?.executeMojo(DefaultPluginManager?.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor?.executeGoals(DefaultLifecycleExecutor?.java:534) ... 16 more

Caused by: org.codehaus.mojo.axistools.axis.AxisPluginException?: unable to open JAR URL connection for extraction of WSDL file from artifact of sourceDependency info.fedora:fedoragsearch-server:2.1.1-t9-SNAPSHOT:/fedoragsearch-service.wsdl. Reason: java.util.zip.ZipException?: No such file or directory

at org.codehaus.mojo.axistools.wsdl2java.DefaultWSDL2JavaPlugin.extractWSDLFromSourceDependency(DefaultWSDL2JavaPlugin.java:430) at org.codehaus.mojo.axistools.wsdl2java.DefaultWSDL2JavaPlugin.execute(DefaultWSDL2JavaPlugin.java:263) at org.codehaus.mojo.axistools.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:316) ... 18 more

Caused by: java.util.zip.ZipException?: No such file or directory

at java.util.zip.ZipFile?.open(Native Method) at java.util.zip.ZipFile?.<init>(ZipFile?.java:203) at java.util.jar.JarFile?.<init>(JarFile?.java:132) at java.util.jar.JarFile?.<init>(JarFile?.java:70) at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:56) at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:41) at sun.net.www.protocol.jar.JarFileFactory?.get(JarFileFactory?.java:53) at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:102) at sun.net.www.protocol.jar.JarURLConnection.getJarEntry(JarURLConnection.java:74) at org.codehaus.mojo.axistools.wsdl2java.DefaultWSDL2JavaPlugin.extractWSDLFromSourceDependency(DefaultWSDL2JavaPlugin.java:421) ... 20 more

[INFO] ------------------------------------------------------------------------ [INFO] Total time: 3 minutes 24 seconds [INFO] Finished at: Mon Feb 26 17:43:32 PST 2007 [INFO] Final Memory: 26M/52M [INFO] ------------------------------------------------------------------------

02/26/07 17:49:41 changed by ronald

  • description changed.

02/26/07 18:00:30 changed by ronald

  • status changed from new to closed.
  • resolution set to fixed.

(In [2371]) Fix version in server dependency. The scripts missed this during the last release. Fixes #292.

02/27/07 10:11:13 changed by russ

  • status changed from closed to reopened.
  • resolution deleted.

did svn up re-ran mvn clean install

now i'm getting this one:

[INFO] ---------------------------------------------------------------------------- [INFO] Building Fedora with Topaz config [INFO] task-segment: [clean, install] [INFO] ---------------------------------------------------------------------------- [INFO] [clean:clean] [INFO] Deleting directory /root/head/re-package/fedora/target [INFO] Deleting directory /root/head/re-package/fedora/target/classes [INFO] Deleting directory /root/head/re-package/fedora/target/test-classes [INFO] [ant-tasks:fedora-package {execution: default}]

exec-ext:

fedora-package:

[untar] Expanding: /root/.m2/repository/info/fedora/server-distribution/2.1.1/server-distribution-2.1.1.tar into /root/head/re-package/fedora/target/classes

[INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to execute: Executing Ant script: /fedora.build.xml [fedora-package]: Failed to execute.

/root/.m2/repository/info/fedora/server-distribution/2.1.1/server-distribution-2.1.1.tar (No such file or directory) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8 minutes 52 seconds [INFO] Finished at: Tue Feb 27 10:05:17 PST 2007 [INFO] Final Memory: 33M/63M [INFO] ------------------------------------------------------------------------

sorry!

02/27/07 10:21:28 changed by russ

and with -e:

fedora-package:

[untar] Expanding: /root/.m2/repository/info/fedora/server-distribution/2.1.1/server-distribution-2.1.1.tar into /root/head/re-package/fedora/target/classes

[INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to execute: Executing Ant script: /fedora.build.xml [fedora-package]: Failed to execute.

/root/.m2/repository/info/fedora/server-distribution/2.1.1/server-distribution-2.1.1.tar (No such file or directory) [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException?: Failed to execute: Executing Ant script: /fedora.build.xml [fedora-package]: Failed to execute.

at org.apache.maven.lifecycle.DefaultLifecycleExecutor?.executeGoals(DefaultLifecycleExecutor?.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor?.executeGoalWithLifecycle(DefaultLifecycleExecutor?.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor?.executeGoal(DefaultLifecycleExecutor?.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor?.executeGoalAndHandleFailures(DefaultLifecycleExecutor?.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor?.executeTaskSegments(DefaultLifecycleExecutor?.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor?.execute(DefaultLifecycleExecutor?.java:140) at org.apache.maven.DefaultMaven?.doExecute(DefaultMaven?.java:322) at org.apache.maven.DefaultMaven?.execute(DefaultMaven?.java:115) at org.apache.maven.cli.MavenCli?.main(MavenCli?.java:256) 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?: Failed to execute: Executing Ant script: /fedora.build.xml [fedora-package]: Failed to execute.

at org.apache.maven.script.ant.AntMojoWrapper?.execute(AntMojoWrapper?.java:37) at org.apache.maven.plugin.DefaultPluginManager?.executeMojo(DefaultPluginManager?.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor?.executeGoals(DefaultLifecycleExecutor?.java:534) ... 16 more

Caused by: org.codehaus.plexus.component.factory.ant.AntComponentExecutionException?: Executing Ant script: /fedora.build.xml [fedora-package]: Failed to execute.

at org.codehaus.plexus.component.factory.ant.AntScriptInvoker?.invoke(AntScriptInvoker?.java:227) at org.apache.maven.script.ant.AntMojoWrapper?.execute(AntMojoWrapper?.java:33) ... 18 more

Caused by: /tmp/plexus-ant-component63447.build.xml:152: Error while expanding /root/.m2/repository/info/fedora/server-distribution/2.1.1/server-distribution-2.1.1.tar

at org.apache.tools.ant.taskdefs.Untar.expandFile(Untar.java:107) at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:92) at org.apache.tools.ant.UnknownElement?.execute(UnknownElement?.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) at org.apache.tools.ant.Project.executeTarget(Project.java:1185) at org.codehaus.plexus.component.factory.ant.AntScriptInvoker?.invoke(AntScriptInvoker?.java:222) ... 19 more

Caused by: java.io.FileNotFoundException?: /root/.m2/repository/info/fedora/server-distribution/2.1.1/server-distribution-2.1.1.tar (No such file or directory)

at java.io.FileInputStream?.open(Native Method) at java.io.FileInputStream?.<init>(FileInputStream?.java:106) at org.apache.tools.ant.taskdefs.Untar.expandFile(Untar.java:95) ... 27 more

[INFO] ------------------------------------------------------------------------ [INFO] Total time: 8 minutes 43 seconds [INFO] Finished at: Tue Feb 27 10:18:26 PST 2007 [INFO] Final Memory: 32M/63M [INFO] ------------------------------------------------------------------------

02/27/07 14:49:58 changed by ronald

  • owner changed from somebody to ronald.
  • status changed from reopened to new.

Ah, I think we're now running into maven bug CodehausJira:MNG-1949. The workaround for now is to build the two re-package packages individually and then continue the build as normal:

mvn -f re-package/fedora/pom.xml
mvn -f re-package/ecqs/pom.xml
mvn install

02/27/07 17:29:15 changed by russ

  • status changed from new to closed.
  • resolution set to fixed.

brilliant. i've got a build and an install. now we just need to ingest so we can test drive the browse by.

thanks!

08/07/07 16:25:51 changed by

  • milestone deleted.

Milestone Bugs deleted