Java 不可读的Pom文件-Maven
我一直在构建一个没有问题的项目,但突然遇到了这个错误。我曾尝试重新创建工作区,现在每次都会出现相同的错误。我试图在EclipseChe中使用Maven简单地构建和运行一个项目Java 不可读的Pom文件-Maven,java,eclipse,maven,configuration,pom.xml,Java,Eclipse,Maven,Configuration,Pom.xml,我一直在构建一个没有问题的项目,但突然遇到了这个错误。我曾尝试重新创建工作区,现在每次都会出现相同的错误。我试图在EclipseChe中使用Maven简单地构建和运行一个项目 Build command --> mvn clean install -f ${current.project.path} 很好 Run command --> mvn exec:java -Dexec.mainClass="crawler.WebInterface" -Dexec.args="${cu
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文件显然在那里!如何解决此问题?您是否尝试过
mvn clean eclipse:clean
?如果是,您可以在这里发布pom.xml吗 您是否尝试过mvn clean eclipse:clean?如果是,您可以在这里发布pom.xml吗 只是一个想法。。。您是否检查了正在执行maven命令的用户以及maven程序本身是否具有pom文件的读/写权限?只是一个想法。。。您是否检查正在执行maven命令的用户以及maven程序本身是否对pom文件具有读/写权限?在mvn中使用-f选项时,您缺少对pom文件的引用
试试这个
Run命令-->mvn exec:java-Dexec.mainClass=“crawler.WebInterface”-Dexec.args=“${current.project.path}/database${current.project.path}/www”-f${current.project.path}youPomFile.xml
在mvn中使用-f选项时缺少对pom文件的引用
试试这个
Run命令-->mvn exec:java-Dexec.mainClass=“crawler.WebInterface”-Dexec.args=“${current.project.path}/database${current.project.path}/www”-f${current.project.path}youPomFile.xml
永远不要使用eclipse
目标。它们已被弃用。永远不要使用eclipse
goals。他们被弃用了。