我一直在构建一个没有问题的项目,但突然遇到了这个错误。我试图重新制作工作区,现在每次都会得到同样的错误。我试图在eclipse che中使用Maven简单地构建和运行一个项目。
Build command --> mvn clean install -f ${current.project.path}
工作良好。
Run command --> mvn exec:java -Dexec.mainClass="crawler.WebInterface" -Dexec.args="${current.project.path}/database ${current.project.path}/www" -f ${current.project.path}
我现在在运行项目时遇到的错误。
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-readable POM /projects/555-hw2
: /projects/555-hw2
(No such file or directory) @
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project (/projects/555-hw2
[ERROR] ) has 1 error
[ERROR] Non-readable POM /projects/555-hw2
[ERROR] : /projects/555-hw2
[ERROR] (No such file or directory)
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/ProjectBuildingException
同时,如果我们看看我的目录
pom文件显然在那里!我该如何解决这个问题?
只是一个想法......你检查过你正在执行maven命令的用户和maven程序本身是否对你的pom文件有读/写权限?
在使用带有mvn的-f选项时,您缺少对pom文件的引用
试试这个
Run command --> mvn exec:java -Dexec.mainClass="crawler.WebInterface" -Dexec.args="${current.project.path}/database ${current.project.path}/www" -f ${current.project.path} youPomFile.xml
你试过mvn clean eclipse:clean
吗?如果是,你可以在这里发布你的pom.xml吗?