简体   繁体   English

Eclipse:动态Web项目将库转换为Maven

[英]Eclipse: Dynamic web project convert library to maven

We have a project used Dynamic Web Project, 我们有一个使用动态Web项目的项目,
And we want to convert to maven project. 而且我们要转换为Maven项目。
I want to ask is it possible to convert the jar files under /Web-INF/lib to maven ?? 我想问一下是否可以将/Web-INF/lib下的jar文件转换为maven?

I only know the method to add dependency use maven. 我只知道使用maven添加依赖项的方法。
And I want to ask is there better idea 我想问一个更好的主意吗
Thank you 谢谢

converting your web project into maven will only change the structure and nature of your existing project. 将您的Web项目转换为Maven只会改变现有项目的结构和性质。 You have to provide the dependencies in pom.xml file. 您必须在pom.xml文件中提供依赖项。 Otherwise, How else maven would locate and add the jars. 否则,行家如何找到并添加罐子。 Please refer: [1]: http://crunchify.com/how-to-convert-existing-java-project-to-maven-in-eclipse/ [2]: http://www.mkyong.com/maven/how-to-convert-java-web-project-to-maven-project/ 请参考:[1]: http : //crunchify.com/how-to-convert-existing-java-project-to-maven-in-eclipse/ [2]: http : //www.mkyong.com/maven /如何对转换-Java的Web项目到Maven的项目/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM