Hi,
I am trying to build Flink from the source code, but I had one error which I paste the error message in below. For the developing environment, I am using linuxkit 4.9.184, Maven 3.2.5, Java 11.0.7. Before I run mvn command to build the project (mvn clean install), I cleaned the maven local artifacts (which is located in ~/.m2/repositories/). Do you have any idea where I might be wrong? Thank you very much! Best regards, Wenyu [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.7:resources (default-resources) on project force-shading: Failed to copy full contents from /workspaces/flink-python-project/flink/tools/force-shading/target/maven-shared-archive-resources/META-INF/NOTICE to /workspaces/flink-python-project/flink/tools/force-shading/target/classes/META-INF/NOTICE -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.7:resources (default-resources) on project force-shading: Failed to copy full contents from /workspaces/flink-python-project/flink/tools/force-shading/target/maven-shared-archive-resources/META-INF/NOTICE to /workspaces/flink-python-project/flink/tools/force-shading/target/classes/META-INF/NOTICE at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) 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:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355) 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:216) at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) 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: Failed to copy full contents from /workspaces/flink-python-project/flink/tools/force-shading/target/maven-shared-archive-resources/META-INF/NOTICE to /workspaces/flink-python-project/flink/tools/force-shading/target/classes/META-INF/NOTICE at org.apache.maven.plugin.resources.ResourcesMojo.execute(ResourcesMojo.java:306) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) ... 19 more Caused by: org.apache.maven.shared.filtering.MavenFilteringException: Failed to copy full contents from /workspaces/flink-python-project/flink/tools/force-shading/target/maven-shared-archive-resources/META-INF/NOTICE to /workspaces/flink-python-project/flink/tools/force-shading/target/classes/META-INF/NOTICE at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile(DefaultMavenFileFilter.java:129) at org.apache.maven.shared.filtering.DefaultMavenResourcesFiltering.filterResources(DefaultMavenResourcesFiltering.java:264) at org.apache.maven.plugin.resources.ResourcesMojo.execute(ResourcesMojo.java:300) ... 21 more Caused by: java.io.IOException: Failed to copy full contents from /workspaces/flink-python-project/flink/tools/force-shading/target/maven-shared-archive-resources/META-INF/NOTICE to /workspaces/flink-python-project/flink/tools/force-shading/target/classes/META-INF/NOTICE at org.apache.maven.shared.utils.io.FileUtils.copyFile(FileUtils.java:834) at org.apache.maven.shared.utils.io.FileUtils.copyFile(FileUtils.java:1868) at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile(DefaultMavenFileFilter.java:122) ... 23 more [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 |
Free forum by Nabble | Edit this page |