我有多个模块的Maven项目。我确实使用intellij来构建它,如果我以串行顺序运行项目,那么它可以正常工作。但是当我确实启用与maven选项 -T 4 并行的构建独立模块时,会导致以下错误。有人可以帮我解决这个问题。
[INFO] Copying slf4j-api-1.7.25.jar to C:\idea\itrp\buildarea\deploy\opt\VRTSitrpdm\technology\lib\slf4j-api-1.7.25.jar
[INFO] Copying httpclient-4.5.6.jar to C:\idea\itrp\buildarea\deploy\opt\VRTSitrpdm\technology\lib\httpclient-4.5.6.jar
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies (Copying dependencies into C:\idea\itrp/buildarea/deploy/opt/VRTSitrpdm/technology/lib) on project ibmsvc-globalmirror-common: Error copying artifact from C:\idea\itrp\m2localrepo\commons-lang\commons-lang\2.6\commons-lang-2.6.jar to C:\idea\itrp\buildarea\deploy\opt\VRTSitrpdm\technology\lib\commons-lang-2.6.jar: Failed to copy full contents from C:\idea\itrp\m2localrepo\commons-lang\commons-lang\2.6\commons-lang-2.6.jar to C:\idea\itrp\buildarea\deploy\opt\VRTSitrpdm\technology\lib\commons-lang-2.6.jar -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies (Copying dependencies into C:\idea\itrp/buildarea/deploy/opt/VRTSitrpdm/technology/lib) on project ibmsvc-globalmirror-common: Error copying artifact from C:\idea\itrp\m2localrepo\commons-lang\commons-lang\2.6\commons-lang-2.6.jar to C:\idea\itrp\buildarea\deploy\opt\VRTSitrpdm\technology\lib\commons-lang-2.6.jar
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
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.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:185)
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:181)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error copying artifact from C:\idea\itrp\m2localrepo\commons-lang\commons-lang\2.6\commons-lang-2.6.jar to C:\idea\itrp\buildarea\deploy\opt\VRTSitrpdm\technology\lib\commons-lang-2.6.jar
at org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:232)
at org.apache.maven.plugin.dependency.fromDependencies.CopyDependenciesMojo.copyArtifact(CopyDependenciesMojo.java:266)
at org.apache.maven.plugin.dependency.fromDependencies.CopyDependenciesMojo.doExecute(CopyDependenciesMojo.java:129)
at org.apache.maven.plugin.dependency.AbstractDependencyMojo.execute(AbstractDependencyMojo.java:167)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 11 more
Caused by: **java.io.IOException: Failed to copy full contents from** C:\idea\itrp\m2localrepo\commons-lang\commons-lang\2.6\commons-lang-2.6.jar to C:\idea\itrp\buildarea\deploy\opt\VRTSitrpdm\technology\lib\commons-lang-2.6.jar
at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:1054)
at org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:228)
... 16 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
[ERROR]