2010-05-15(Sat) [長年日記]
_ hudson自前ビルドしてみた(失敗)@ubuntu hardy
mavenも初めてなのだけど、とりあえずやってみた。
$ sudo apt-get install maven2 $ mvn --version Maven version: 2.0.8 Java version: 1.6.0_17 OS name: "linux" version: "2.6.24-23-virtual" arch: "i386" Family: "unix" $ git clone git://github.com/kohsuke/hudson.git $ cd hudson $ mvn ....(途中何回かとまったのでとにかく) $ mvn
最初は~/.m2に大量にダウンロードとかをやるようなので、落ち着くまでmvnを連発。だいたいおんなじところで止まるようになってきた。
$ LANG=C mvn -e .... [INFO] ------------------------------------------------------------------------ [INFO] Building Hudson core [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [enforcer:enforce {execution: default}] [INFO] [enforcer:display-info {execution: default}] [INFO] Maven Version: 2.0.8 [INFO] JDK Version: 1.6.0_17 normalized as: 1.6.0-17 [INFO] OS Info: Arch: i386 Family: unix Name: linux Version: 2.6.24-23-virtual [INFO] [localizer:generate {execution: default}] [INFO] [antlr:generate {execution: default}] [INFO] grammar: /home/kog/git/hudson/core/src/main/grammar/crontab.g [INFO] The grammar is already generated [INFO] [remote-resources:process {execution: default}] [INFO] inceptionYear not specified, defaulting to 2010 [INFO] [antrun-extended:run {execution: default}] [INFO] Executing tasks [echo] The build id is: 1.358-SNAPSHOT (private-05/15/2010 11:52-kog) [resolveArtifact] Copying /home/kog/.m2/repository/com/sun/winsw/winsw/1.8/winsw-1.8-bin.exe to /home/kog/git/hudson/core/target/classes/windows-service/hudson.exe [INFO] Executed tasks [INFO] [resources:resources] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3290 resources [INFO] [stapler:apt-compile] [INFO] Compiling 618 source files to /home/kog/git/hudson/core/target/classes [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure /home/kog/git/hudson/core/src/main/java/hudson/util/ReflectionUtils.java:[26,26] org.kohsuke.stapler.ClassDescriptor is not public in org.kohsuke.stapler; c annot be accessed from outside package /home/kog/git/hudson/core/src/main/java/hudson/util/ReflectionUtils.java:[26,26] org.kohsuke.stapler.ClassDescriptor is not public in org.kohsuke.stapler; c annot be accessed from outside package /home/kog/git/hudson/core/src/main/java/hudson/util/ReflectionUtils.java:[99,24] cannot find symbol symbol : variable ClassDescriptor location: class hudson.util.ReflectionUtils.MethodInfo /home/kog/git/hudson/core/src/main/java/hudson/model/Run.java:[1535,20] cannot find symbol symbol : method writeLogTo(int,hudson.util.FlushProofOutputStream) location: class hudson.console.AnnotatedLargeText /home/kog/git/hudson/core/src/main/java/hudson/model/AbstractProject.java:[1411,31] cannot find symbol symbol : method error(int,java.io.IOException) location: class org.kohsuke.stapler.HttpResponses /home/kog/git/hudson/core/src/main/java/hudson/PluginManager.java:[513,32] cannot find symbol symbol : method error(int,java.lang.IllegalArgumentException) location: class org.kohsuke.stapler.HttpResponses /home/kog/git/hudson/core/src/main/java/hudson/model/DirectoryBrowserSupport.java:[277,15] cannot find symbol symbol : method serveFile(org.kohsuke.stapler.StaplerRequest,java.io.InputStream,long,int,long,java.lang.String) location: interface org.kohsuke.stapler.StaplerResponse /home/kog/git/hudson/core/src/main/java/hudson/model/DirectoryBrowserSupport.java:[279,15] cannot find symbol symbol : method serveFile(org.kohsuke.stapler.StaplerRequest,java.io.InputStream,long,int,long,java.lang.String) location: interface org.kohsuke.stapler.StaplerResponse /home/kog/git/hudson/core/src/main/java/hudson/console/AnnotatedLargeText.java:[110,4] method does not override or implement a method from a supertype /home/kog/git/hudson/core/src/main/java/hudson/console/AnnotatedLargeText.java:[149,74] charset has private access in org.kohsuke.stapler.framework.io.LargeText /home/kog/git/hudson/core/src/main/java/hudson/console/AnnotatedLargeText.java:[150,22] writeLogTo(long,java.io.Writer) in org.kohsuke.stapler.framework.io.LargeText cannot be applied to (long,hudson.console.ConsoleAnnotationOutputStream) [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.BuildFailureException: Compilation failure at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560) 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:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) 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.CompilationFailureException: Compilation failure at org.kohsuke.stapler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:508) at org.kohsuke.stapler.CompilerMojo.execute(CompilerMojo.java:111) at org.kohsuke.stapler.AptMojo.execute(AptMojo.java:21) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) ... 16 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 11 seconds [INFO] Finished at: Sat May 15 11:45:36 JST 2010 [INFO] Final Memory: 39M/63M [INFO] ------------------------------------------------------------------------
きっとソースじゃなくて、ビルドするときになにかが間違っていると思うのだけど...なんだろう?ビルド途中の成果物をいったんクリーンアップすればいいのかしら?
_ hudson自前ビルドしてみた(失敗)@ubuntu 10.04/CF-W2B
ubuntu 10.04でも同じようにやってみたのだけど、こちらは上で書いたものよりあきらかに先に進んだ。しかし、
- hudson core のテストが全滅
- ubuntu自体が途中で落っこちるようになってしまった(!)
ので、ESXiで10.04を作成中。pxeboot経由でいれてしまえ。