Search code examples
javaxmleclipsemavenpom.xml

Content is not allowed trailing in this section / lambda expression are allowed at source level 1.8 or above


i have the next pom.xml code that i got from my university's website.And i face the problem in the next picture , i think it's all because im the pom not working properly so not including the right dependencies ( first time ever using maven and it's just a prediction) thank you in advance ! enter image description here


Solution

  • I found somewhere that something can mess up the xml for no reason and cause a parsing problem just like i had the solution was kind of complicated for a first timer of an xml and maven dev like me , i've deleted the project and recreated a one , with a copy past of the same pom.xml code it works ! well if it does it does . that's my solution .