There is a deployment descriptor in every folder. What's happening?

226 Views Asked by At

The project is a gradle project in the eclipse environment. I received the project from someone else and imported it, and I see deployment descriptors created in all folders. I don't think this should happen, but how can I fix this error? Java is using 11 and Tomcat is using 9.0. (ps. The folder name has been hidden for security reasons.)

enter image description here

I imported the project several times and tried importing it by reinstalling the 2023-06 and 2022-03 versions of Eclipse.

2

There are 2 best solutions below

1
Farha Mansuri On BEST ANSWER

Eclipse has once recorded this bug. You can check your eclipse version. I have provided the link in which this bug was reported. https://bugs.eclipse.org/bugs/show_bug.cgi?id=182136

0
Narayan Sayyapureddy On

One solution is to update the version in web.xml, which will then force update maven

   <?xml version="1.0" encoding="UTF-8"?>
   <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
                         http://xmlns.jcp.org/xml/ns/javaee/web- 
        app_3_1.xsd"
        version="3.1">
        <display-name>Archetype Created Web Application</display-name>
      <!-- Your configuration goes here -->
   </web-app>