Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[issue] fabric8:watch is broken on Windows platform #1118

Closed
hrishin opened this issue Nov 30, 2017 · 0 comments
Closed

[issue] fabric8:watch is broken on Windows platform #1118

hrishin opened this issue Nov 30, 2017 · 0 comments
Labels
cat/bug Bug which needs fixing

Comments

@hrishin
Copy link
Member

hrishin commented Nov 30, 2017

Description

[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.33:build (default) on project app-sample: Execution default of goal io.fabric8:fabric8-maven-plugin:3.5.33:build failed: Cannot extract generator config: org.apache.maven.plugin.MojoExecutionException: Failed to add devtools files to fat jar C:\tmp\jenkins-cicd\target\app-sample-1.0-SNAPSHOT.jar. java.io.IOException: Failed to delete original file 'C:\tmp\jenkins-cicd\target\app-sample-1.0-SNAPSHOT.jar' after copy to 'C:\TEMP\p251228\app-sample-1.0-SNAPSHOT.jar6705264538840591172.tmp' -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.33:build (default) on project app-sample: Execution default of goal io.fabric8:fabric8-maven-plugin:3.5.33:build failed: Cannot extract generator config: org.apache.maven.plugin.MojoExecutionException: Failed to add devtools files to fat jar C:\tmp\jenkins-cicd\target\app-sample-1.0-SNAPSHOT.jar. java.io.IOException: Failed to delete original file 'C:\tmp\jenkins-cicd\target\app-sample-1.0-SNAPSHOT.jar' after copy to 'C:\TEMP\p251228\app-sample-1.0-SNAPSHOT.jar6705264538840591172.tmp'
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:364)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:198)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:364)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:198)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal io.fabric8:fabric8-maven-plugin:3.5.33:build failed: Cannot extract generator config: org.apache.maven.plugin.MojoExecutionException: Failed to add devtools files to fat jar C:\tmp\jenkins-cicd\target\app-sample-1.0-SNAPSHOT.jar. java.io.IOException: Failed to delete original file 'C:\tmp\jenkins-cicd\target\app-sample-1.0-SNAPSHOT.jar' after copy to 'C:\TEMP\p251228\app-sample-1.0-SNAPSHOT.jar6705264538840591172.tmp'
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:144)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 27 more
Caused by: java.lang.IllegalArgumentException: Cannot extract generator config: org.apache.maven.plugin.MojoExecutionException: Failed to add devtools files to fat jar C:\tmp\jenkins-cicd\target\app-sample-1.0-SNAPSHOT.jar. java.io.IOException: Failed to delete original file 'C:\tmp\jenkins-cicd\target\app-sample-1.0-SNAPSHOT.jar' after copy to 'C:\TEMP\p251228\app-sample-1.0-SNAPSHOT.jar6705264538840591172.tmp'
at io.fabric8.maven.plugin.mojo.build.BuildMojo.customizeConfig(BuildMojo.java:297)
at io.fabric8.maven.docker.config.ConfigHelper.resolveImages(ConfigHelper.java:51)
at io.fabric8.maven.docker.AbstractDockerMojo.initImageConfiguration(AbstractDockerMojo.java:308)
at io.fabric8.maven.docker.AbstractDockerMojo.execute(AbstractDockerMojo.java:215)
at io.fabric8.maven.plugin.mojo.build.BuildMojo.execute(BuildMojo.java:193)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
... 28 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to add devtools files to fat jar C:\tmp\jenkins-cicd\target\app-sample-1.0-SNAPSHOT.jar. java.io.IOException: Failed to delete original file 'C:\tmp\jenkins-cicd\target\app-sample-1.0-SNAPSHOT.jar' after copy to 'C:\TEMP\p251228\app-sample-1.0-SNAPSHOT.jar6705264538840591172.tmp'
at io.fabric8.maven.generator.springboot.SpringBootGenerator.addDevToolsFilesToFatJar(SpringBootGenerator.java:151)
at io.fabric8.maven.generator.springboot.SpringBootGenerator.customize(SpringBootGenerator.java:86)
at io.fabric8.maven.plugin.generator.GeneratorManager.generate(GeneratorManager.java:62)
at io.fabric8.maven.plugin.mojo.build.BuildMojo.customizeConfig(BuildMojo.java:295)
... 33 more
Caused by: java.io.IOException: Failed to delete original file 'C:\tmp\jenkins-cicd\target\app-sample-1.0-SNAPSHOT.jar' after copy to 'C:\TEMP\p251228\app-sample-1.0-SNAPSHOT.jar6705264538840591172.tmp'
at org.apache.commons.io.FileUtils.moveFile(FileUtils.java:2578)
at io.fabric8.maven.generator.springboot.SpringBootGenerator.copyFilesToFatJar(SpringBootGenerator.java:169)
at io.fabric8.maven.generator.springboot.SpringBootGenerator.addDevToolsFilesToFatJar(SpringBootGenerator.java:149)

Info

  • f-m-p version : 3.5.33
  • Maven version (mvn -v) :

  • If it's a bug, how to reproduce : run on Windows platform
  • If it's a feature request, what is your use case : Bug

Issue #1069 #1116

@hrishin hrishin added the cat/bug Bug which needs fixing label Nov 30, 2017
@hrishin hrishin closed this as completed Dec 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat/bug Bug which needs fixing
Projects
None yet
Development

No branches or pull requests

1 participant