Closed hornkim closed 5 years ago
This was due to no Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy File being installed.
Hi horkim,
How did you fix this issue?
No I didn’t fix it.Closed as I thought I fixed it but I didn’t.
Kim
On 7 Apr 2019, at 10:04 pm, dspandiyan notifications@github.com wrote:
Hi horkim,
How did you fix this issue?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/spotify/docker-maven-plugin/issues/418#issuecomment-480584354, or mute the thread https://github.com/notifications/unsubscribe-auth/AZGfgWDBSaQzRwyhxS2nwyvFbur1iY6iks5ved7FgaJpZM4cPIuu.
Description
I have 2 Mac laptops, using same Java version 1.8, same Docker, same project and POM, I can build on one but not the other. Using men clean package docker:build
Software:
Full backtrace
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10.282 s [INFO] Finished at: 2019-03-28T13:06:49+11:00 [INFO] Final Memory: 93M/831M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.2.0:build (default-cli) on project configurationserver: Exception caught: The command '/bin/sh -c cd /tmp/ && curl -LO "http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip" -H 'Cookie: oraclelicense=accept-securebackup-cookie' && unzip jce_policy-8.zip && rm jce_policy-8.zip && yes |cp -v /tmp/UnlimitedJCEPolicyJDK8/.jar /usr/lib/jvm/java-1.8-openjdk/jre/lib/security/' returned a non-zero code: 1 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.spotify:docker-maven-plugin:1.2.0:build (default-cli) on project configurationserver: Exception caught at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345) at org.apache.maven.cli.MavenCli.main(MavenCli.java:191) 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.MojoExecutionException: Exception caught at com.spotify.docker.AbstractDockerMojo.execute(AbstractDockerMojo.java:151) at com.spotify.docker.BuildMojo.execute(BuildMojo.java:324) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) ... 20 more Caused by: com.spotify.docker.client.exceptions.DockerException: The command '/bin/sh -c cd /tmp/ && curl -LO "http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip" -H 'Cookie: oraclelicense=accept-securebackup-cookie' && unzip jce_policy-8.zip && rm jce_policy-8.zip && yes |cp -v /tmp/UnlimitedJCEPolicyJDK8/.jar /usr/lib/jvm/java-1.8-openjdk/jre/lib/security/' returned a non-zero code: 1 at com.spotify.docker.client.AnsiProgressHandler.progress(AnsiProgressHandler.java:55) at com.spotify.docker.client.DefaultDockerClient$BuildProgressHandler.progress(DefaultDockerClient.java:305) at com.spotify.docker.client.ProgressStream.tail(ProgressStream.java:77) at com.spotify.docker.client.DefaultDockerClient$ResponseTailReader.call(DefaultDockerClient.java:2734) at com.spotify.docker.client.DefaultDockerClient$ResponseTailReader.call(DefaultDockerClient.java:2718) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException