JAR file is considered as a folder

I have a JAR file in the WEB-INF/lib my project, which appears as a folder when I deploy my project to Tomcat.

I use Maven to get JAR files, Eclipse to build my application and deploy to Tomcat.

Why is the JAR file displayed as a folder? I cannot use the file in this way, and Tomcat does not see it.

+6
source share
2 answers

Setting for child project (using wtp)

These settings are intended for any child module, if we have one parent maven project for it, and we want to use wtp.

Eclipse gets changes from the workspace.

For example, we are making changes to the maven module, and we do not need to install it and update the dependencies for the parent. Eclipse automatically updates changes.

+3
source

Because if you use the Eclipse Web Tools Platform for deployment, it puts artifacts that you have in the Eclipse workspace as projects, exploded. This allows WTP to do some magic with replacing class files in place instead of repackaging the entire artifact with every small change. For the container, it really doesn't matter.

+1
source

Source: https://habr.com/ru/post/917797/


All Articles