分享

Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (...

[DEBUG]   (f) versionsPropertyName = maven.project.dependencies.versions
[DEBUG] -- end configuration --
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Main ................................. SUCCESS [  1.215 s]
[INFO] Apache Hadoop Project POM .......................... FAILURE [  0.156 s]
[INFO] Apache Hadoop Annotations .......................... SKIPPED
[INFO] Apache Hadoop Assemblies ........................... SKIPPED
[INFO] Apache Hadoop Project Dist POM ..................... SKIPPED
[INFO] Apache Hadoop Maven Plugins ........................ SKIPPED
[INFO] Apache Hadoop MiniKDC .............................. SKIPPED
[INFO] Apache Hadoop Auth ................................. SKIPPED
[INFO] Apache Hadoop Auth Examples ........................ SKIPPED
[INFO] Apache Hadoop Common ............................... SKIPPED
[INFO] Apache Hadoop NFS .................................. SKIPPED
[INFO] Apache Hadoop KMS .................................. SKIPPED
[INFO] Apache Hadoop Common Project ....................... SKIPPED
[INFO] Apache Hadoop HDFS ................................. SKIPPED
[INFO] Apache Hadoop HttpFS ............................... SKIPPED
[INFO] Apache Hadoop HDFS BookKeeper Journal .............. SKIPPED
[INFO] Apache Hadoop HDFS-NFS ............................. SKIPPED
[INFO] Apache Hadoop HDFS Project ......................... SKIPPED
[INFO] hadoop-yarn ........................................ SKIPPED
[INFO] hadoop-yarn-api .................................... SKIPPED
[INFO] hadoop-yarn-common ................................. SKIPPED
[INFO] hadoop-yarn-server ................................. SKIPPED
[INFO] hadoop-yarn-server-common .......................... SKIPPED
[INFO] hadoop-yarn-server-nodemanager ..................... SKIPPED
[INFO] hadoop-yarn-server-web-proxy ....................... SKIPPED
[INFO] hadoop-yarn-server-applicationhistoryservice ....... SKIPPED
[INFO] hadoop-yarn-server-resourcemanager ................. SKIPPED
[INFO] hadoop-yarn-server-tests ........................... SKIPPED
[INFO] hadoop-yarn-client ................................. SKIPPED
[INFO] hadoop-yarn-applications ........................... SKIPPED
[INFO] hadoop-yarn-applications-distributedshell .......... SKIPPED
[INFO] hadoop-yarn-applications-unmanaged-am-launcher ..... SKIPPED
[INFO] hadoop-yarn-site ................................... SKIPPED
[INFO] hadoop-yarn-registry ............................... SKIPPED
[INFO] hadoop-yarn-project ................................ SKIPPED
[INFO] hadoop-mapreduce-client ............................ SKIPPED
[INFO] hadoop-mapreduce-client-core ....................... SKIPPED
[INFO] hadoop-mapreduce-client-common ..................... SKIPPED
[INFO] hadoop-mapreduce-client-shuffle .................... SKIPPED
[INFO] hadoop-mapreduce-client-app ........................ SKIPPED
[INFO] hadoop-mapreduce-client-hs ......................... SKIPPED
[INFO] hadoop-mapreduce-client-jobclient .................. SKIPPED
[INFO] hadoop-mapreduce-client-hs-plugins ................. SKIPPED
[INFO] Apache Hadoop MapReduce Examples ................... SKIPPED
[INFO] hadoop-mapreduce ................................... SKIPPED
[INFO] Apache Hadoop MapReduce Streaming .................. SKIPPED
[INFO] Apache Hadoop Distributed Copy ..................... SKIPPED
[INFO] Apache Hadoop Archives ............................. SKIPPED
[INFO] Apache Hadoop Rumen ................................ SKIPPED
[INFO] Apache Hadoop Gridmix .............................. SKIPPED
[INFO] Apache Hadoop Data Join ............................ SKIPPED
[INFO] Apache Hadoop Ant Tasks ............................ SKIPPED
[INFO] Apache Hadoop Extras ............................... SKIPPED
[INFO] Apache Hadoop Pipes ................................ SKIPPED
[INFO] Apache Hadoop OpenStack support .................... SKIPPED
[INFO] Apache Hadoop Amazon Web Services support .......... SKIPPED
[INFO] Apache Hadoop Client ............................... SKIPPED
[INFO] Apache Hadoop Mini-Cluster ......................... SKIPPED
[INFO] Apache Hadoop Scheduler Load Simulator ............. SKIPPED
[INFO] Apache Hadoop Tools Dist ........................... SKIPPED
[INFO] Apache Hadoop Tools ................................ SKIPPED
[INFO] Apache Hadoop Distribution ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.479 s
[INFO] Finished at: 2015-11-22T09:44:24+08:00
[INFO] Final Memory: 46M/362M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (create-testdirs) on project hadoop-project: Error executing ant tasks: /usr/local/hadoop-2.6.0-src/hadoop-project/target/antrun/build-main.xml (No such file or directory) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (create-testdirs) on project hadoop-project: Error executing ant tasks: /usr/local/hadoop-2.6.0-src/hadoop-project/target/antrun/build-main.xml (No such file or directory)

    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.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:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    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: Error executing ant tasks: /usr/local/hadoop-2.6.0-src/hadoop-project/target/antrun/build-main.xml (No such file or directory)
    at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:360)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    ... 20 more
Caused by: java.io.FileNotFoundException: /usr/local/hadoop-2.6.0-src/hadoop-project/target/antrun/build-main.xml (No such file or directory)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:110)
    at org.codehaus.plexus.util.FileUtils.fileWrite(FileUtils.java:470)
    at org.apache.maven.plugin.antrun.AntRunMojo.writeTargetToProjectFile(AntRunMojo.java:608)
    at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:263)
    ... 22 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/confluen ... oExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hadoop-project
whx@whx-desktop:/usr/local/hadoop-2.6.0-src$ ls -l
total 108
-rw-r--r--  1 root root 12091 11月 21 21:27 BUILDING.txt
drwxr-xr-x  2 root root  4096 11月 21 21:27 dev-support
drwxr-xr-x  3 root root  4096 11月 21 21:27 hadoop-assemblies
drwxr-xr-x  2 root root  4096 11月 21 21:27 hadoop-client
drwxr-xr-x 10 root root  4096 11月 21 21:27 hadoop-common-project
drwxr-xr-x  2 root root  4096 11月 21 21:27 hadoop-dist
drwxr-xr-x  6 root root  4096 11月 21 21:27 hadoop-hdfs-project
drwxr-xr-x  9 root root  4096 11月 21 21:27 hadoop-mapreduce-project
drwxr-xr-x  3 root root  4096 11月 21 21:27 hadoop-maven-plugins
drwxr-xr-x  2 root root  4096 11月 21 21:27 hadoop-minicluster
drwxr-xr-x  3 root root  4096 11月 22 09:30 hadoop-project
drwxr-xr-x  2 root root  4096 11月 22 09:04 hadoop-project-dist
drwxr-xr-x 15 root root  4096 11月 21 21:27 hadoop-tools
drwxr-xr-x  3 root root  4096 11月 21 21:27 hadoop-yarn-project
-rw-r--r--  1 root root 15429 11月 21 21:27 LICENSE.txt
-rw-r--r--  1 root root   101 11月 21 21:27 NOTICE.txt
-rw-r--r--  1 root root 18081 11月 21 21:27 pom.xml
-rw-r--r--  1 root root  1366 11月 21 21:27 README.txt
whx@whx-desktop:/usr/local/hadoop-2.6.0-src$ cd hadoop-project
hadoop-project/      hadoop-project-dist/
whx@whx-desktop:/usr/local/hadoop-2.6.0-src$ cd hadoop-project/src/
whx@whx-desktop:/usr/local/hadoop-2.6.0-src/hadoop-project/src$ cd ..
whx@whx-desktop:/usr/local/hadoop-2.6.0-src/hadoop-project$ ls -l
total 92
-rw-r--r-- 1 root root 43367 11月 22 09:30 pom.xml
-rw-r--r-- 1 root root 43503 11月 22 09:29 pom.xml~
drwxr-xr-x 3 root root  4096 11月 21 21:27 src
whx@whx-desktop:/usr/local/hadoop-2.6.0-src/hadoop-project$

已有(6)人评论

跳转到指定楼层
往事也加 发表于 2015-11-22 10:01:34
求各位大神指点一二
回复

使用道具 举报

jixianqiuxue 发表于 2015-11-22 12:33:21
往事也加 发表于 2015-11-22 10:01
求各位大神指点一二

1.权限正确,最好用root
2.贴出maven的版本
3.贴出jdk版本,需要是 jdk1.7
回复

使用道具 举报

往事也加 发表于 2015-11-22 12:43:34
jixianqiuxue 发表于 2015-11-22 12:33
1.权限正确,最好用root
2.贴出maven的版本
3.贴出jdk版本,需要是 jdk1.7

whx@whx-desktop:/usr/local/hadoop$ mvn --version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-11T00:41:47+08:00)
Maven home: /usr/local/apache-maven
Java version: 1.7.0_79, vendor: Oracle Corporation
Java home: /usr/lib/jvm/jdk1.7.0_79/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-68-generic", arch: "amd64", family: "unix"
whx@whx-desktop:/usr/local/hadoop$


回复

使用道具 举报

jixianqiuxue 发表于 2015-11-22 12:51:44
往事也加 发表于 2015-11-22 12:43
whx@whx-desktop:/usr/local/hadoop$ mvn --version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453 ...



权限都是root,你用的是普通用户

whx@whx-desktop:/usr/local/hadoop-2.6.0-src$ ls -l
total 108
-rw-r--r--  1 root root 12091 11月 21 21:27 BUILDING.txt
drwxr-xr-x  2 root root  4096 11月 21 21:27 dev-support
drwxr-xr-x  3 root root  4096 11月 21 21:27 hadoop-assemblies
drwxr-xr-x  2 root root  4096 11月 21 21:27 hadoop-client
drwxr-xr-x 10 root root  4096 11月 21 21:27 hadoop-common-project
drwxr-xr-x  2 root root  4096 11月 21 21:27 hadoop-dist
drwxr-xr-x  6 root root  4096 11月 21 21:27 hadoop-hdfs-project
drwxr-xr-x  9 root root  4096 11月 21 21:27 hadoop-mapreduce-project
drwxr-xr-x  3 root root  4096 11月 21 21:27 hadoop-maven-plugins
drwxr-xr-x  2 root root  4096 11月 21 21:27 hadoop-minicluster
drwxr-xr-x  3 root root  4096 11月 22 09:30 hadoop-project
drwxr-xr-x  2 root root  4096 11月 22 09:04 hadoop-project-dist
drwxr-xr-x 15 root root  4096 11月 21 21:27 hadoop-tools
drwxr-xr-x  3 root root  4096 11月 21 21:27 hadoop-yarn-project
-rw-r--r--  1 root root 15429 11月 21 21:27 LICENSE.txt
-rw-r--r--  1 root root   101 11月 21 21:27 NOTICE.txt
-rw-r--r--  1 root root 18081 11月 21 21:27 pom.xml
-rw-r--r--  1 root root  1366 11月 21 21:27 README.txt
回复

使用道具 举报

往事也加 发表于 2015-11-22 13:46:25
jixianqiuxue 发表于 2015-11-22 12:51
权限都是root,你用的是普通用户

whx@whx-desktop:/usr/local/hadoop-2.6.0-src$ ls -l

求解,这是什么原因呢?
2015-11-22 13:41:04屏幕截图.png
2015-11-22 13:40:24屏幕截图.png
2015-11-22 13:40:10屏幕截图.png
2015-11-22 13:40:03屏幕截图.png
回复

使用道具 举报

jixianqiuxue 发表于 2015-11-22 16:37:00
往事也加 发表于 2015-11-22 13:46
求解,这是什么原因呢?

可能插件有问题
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条