多个maven pom.xml文件 [英] Multiple maven pom.xml files

查看:633
本文介绍了多个maven pom.xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有GWT客户端和Restlet API的Eclipse项目。我通常使用Maven进行依赖管理,但是我没有在Eclipse项目中使用它,其中单独的部分具有独立的依赖关系。例如 - 客户端将使用Google Gin进行依赖注入,服务器使用Google Guice。



我可以将其分成两个单独的pom.xml文件来管理



谢谢

解决方案

您可以创建一个多模块项目。请参阅此处 here 这里


I have an Eclipse project with a GWT client and a Restlet API. I normally use Maven for dependency management but I havent used it in an Eclipse project where seperate parts have seperate dependencies. For example - the client would use Google Gin for dependency injection and the server uses Google Guice.

Am I able to split it into two seperate pom.xml files to manage the dependencies of both seperate areas?

Thanks

解决方案

You can create a multi module project. See examples here and here and here.

这篇关于多个maven pom.xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆