pom.xml文件中没有包含任何数据 @

huangapple go评论67阅读模式
英文:

pom.xml input contained no data @

问题

Java项目无法打开,创建的新Java项目也无法正常工作。
我正在尝试在我的Netbeans IDE上创建一个新的Java项目,但是当创建一个新的Web应用程序项目时,文件夹缺失,并且pom.xml文件是空的。

当我尝试解决这些问题时,描述中显示如下:

在构建有效模型时遇到了1个问题
[FATAL] 无法读取的POM E:\mavenproject1tgd\pom.xml:输入不包含任何数据 @
位于项目 E:\mavenproject1tgd\pom.xml 处

并且在控制台中显示如下:

正在扫描项目...
[ERROR] 处理POM时遇到一些问题:
无法读取的POM E:\mavenproject1tgd\pom.xml:输入不包含任何数据 @
@
构建无法读取1个项目 -> [帮助 1]

项目(E:\mavenproject1tgd\pom.xml)存在1个错误
无法读取的POM E:\mavenproject1tgd\pom.xml:输入不包含任何数据

要查看错误的完整堆栈跟踪,请使用 -e 开关重新运行Maven。
使用 -X 开关重新运行Maven,以启用完整的调试日志记录。
英文:

Java projects not opening and new java projects created are broken.
I'm trying to create a new java project on my Netbeans IDE, however, when a new web app project is created, it is missing folders and the pom.xml is empty

pom.xml文件中没有包含任何数据 @

when I try to resolve the issues this displays in the description

1 problem was encountered while building the effective model
[FATAL] Non-readable POM E:\mavenproject1tgd\pom.xml: input contained no data @ 
 for project  at E:\mavenproject1tgd\pom.xml

and this displays in the console

Scanning for projects...
[ERROR] Some problems were encountered while processing the POMs:
Non-readable POM E:\mavenproject1tgd\pom.xml: input contained no data @ 
 @ 
The build could not read 1 project -> [Help 1]
  
  The project  (E:\mavenproject1tgd\pom.xml) has 1 error
    Non-readable POM E:\mavenproject1tgd\pom.xml: input contained no data

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

答案1

得分: 0

这不是一个优雅的解决方法,然而,我时间很紧迫,所以我只是卸载了NetBeans IDE,然后重新安装了NetBeans和Tomcat。

英文:

This isn't an elegant fix, however, I was pressed against time so I just uninstalled NetBeans ide and reinstalled Netbeans and Tomcat

huangapple
  • 本文由 发表于 2020年5月3日 20:36:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/61574540.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定