https://hudson.dev.java.net/issues/show_bug.cgi?id=2122
Issue #|2122 Summary|MavenArtifactArchiver fails if artifact is not a file Component|hudson Version|current Platform|All OS/Version|All URL| Status|NEW Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|maven2 Assigned to|issues@hudson Reported by|bruyeron ------- Additional comments from [hidden email] Fri Jul 25 15:37:17 +0000 2008 ------- I don't know what the correct fix is. The quickfix is to skip folders, but I guess the correct fix would be to find a way to archive folders as well. This can happen for example when the assembly plugin is used to produce an exploded zip (i.e. a folder): [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] /xxx/yyy/bbb/thing-1.0-SNAPSHOT.dir (Is a directory) [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.BuildFailureException: /xxx/yyy/bbb/thing-1.0-SNAPSHOT.dir (Is a directory) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:50) 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:280) 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 hudson.maven.agent.Main.launch(Main.java:133) at hudson.maven.MavenBuilder.call(MavenBuilder.java:129) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:528) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:474) at hudson.remoting.UserRequest.perform(UserRequest.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:23) at hudson.remoting.Request$2.run(Request.java:206) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.FileNotFoundException: /xxx/yyy/bbb/thing-1.0-SNAPSHOT.dir (Is a directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at hudson.FilePath$21.invoke(FilePath.java:738) at hudson.FilePath$21.invoke(FilePath.java:736) at hudson.FilePath.act(FilePath.java:315) at hudson.FilePath.copyTo(FilePath.java:736) at hudson.FilePath.copyTo(FilePath.java:724) at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:123) at hudson.maven.MavenModuleSetBuild$Builder.postModule(MavenModuleSetBuild.java:561) at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:261) at hudson.maven.MavenBuilder$Adapter.postBuild(MavenBuilder.java:225) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:45) ... 22 more --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
https://hudson.dev.java.net/issues/show_bug.cgi?id=2122
------- Additional comments from [hidden email] Fri Jul 25 15:38:14 +0000 2008 ------- I forgot to mention that this happens with 1.236 --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
In reply to this post by bruyeron
https://hudson.dev.java.net/issues/show_bug.cgi?id=2122
User scm_issue_link changed the following: What |Old value |New value ================================================================================ Status|NEW |RESOLVED -------------------------------------------------------------------------------- Resolution| |FIXED -------------------------------------------------------------------------------- ------- Additional comments from [hidden email] Wed Aug 6 01:23:18 +0000 2008 ------- Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=11241 Log: [FIXED HUDSON-2122] if the assembly is creating a directory, ignore it. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
Free forum by Nabble | Edit this page |