使用pom.xml和web.xml的Web项目之间的区别 [英] Difference between web projects with pom.xml and web.xml
问题描述
拥有pom.xml和web.xml的Java项目有什么区别?项目可以同时具有这两种配置吗?
What is the difference between Java projects having pom.xml and web.xml? Can projects have both these configurations at the same time?
推荐答案
它们完全兼容。事实上,他们执行完全不相关的任务。
They're completely compatible. As a matter of fact, they perform completely unrelated tasks.
pom.xml
是 Maven项目的配置文件。其目标之一是在使用Maven时为编译和构建项目提供帮助。您可以将其视为ant build.xml
文件或 makefile
如果您不熟悉则生成文件Maven(实际上,它可以提供更多功能)
pom.xml
is the configuration file for Maven projects. One of its goals is to provide assistance in the compilation and building of a project when using Maven. You can think of it as an ant build.xml
file or a makefile
Make file if you're not familiar to Maven (actually, it can provide a lot more functionality)
web.xml
是Java EE Web应用程序部署描述符,您可以在其中指定servlet,servlet映射和webapp的其他方面。
web.xml
is the Java EE web application deployment descriptor, where you specify for instance servlets, servlet mappings and other aspects of a webapp.
- 什么是Maven 。
- 什么是web.xml文件以及我可以用它做些什么? 问题那么。
- What is Maven from the Apache Maven site.
- What is web.xml file and what all things can I do with it? question on SO.
这篇关于使用pom.xml和web.xml的Web项目之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!