冬雨财经 发表于 2024-6-15 03:21:05

ERROR] [ERROR] Some problems were encountered while processing the POM

代码报错:ERROR] Some problems were encountered while processing the POMs:
Non-parseable POM D:\java_base\brand-demo5\pom.xml: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...<session-config>\n            <session-timeout>... @20:30)  @ line 20, column 30
 @ 
The build could not read 1 project ->
  
  The project  (D:\java_base\brand-demo5\pom.xml) has 1 error
    Non-parseable POM D:\java_base\brand-demo5\pom.xml: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...<session-config>\n            <session-timeout>... @20:30)  @ line 20, column 30 ->
 
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.
 
For more information about the errors and possible solutions, please read the following articles:
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException
https://img-blog.csdnimg.cn/82a89d5678f142f397db151f8c5781b2.png
 
解决思路:根据这个定位到错误地方

①根据提示错误位置在pom.xml
②sesion烧毁源码,进去把这个删除试试
<session-config>
    <session-timeout>100</session-timeout>
</session-config>
解决乐成如图所示:
https://img-blog.csdnimg.cn/0fa7cdc32bcd486cb7ae66750515142b.png
 
 

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: ERROR] [ERROR] Some problems were encountered while processing the POM