简体   繁体   English

多模块Maven项目的SVN Checkout导致构建问题

[英]SVN Checkout of multi module maven project causing build issues

I am trying to learn how to setup multi-module maven project and share it with colleagues using SVN. 我正在尝试学习如何设置多模块Maven项目并使用SVN与同事共享。

We work with eclipse IDE. 我们使用Eclipse IDE。

Here is how my project structure looks in SVN. 这是我的项目结构在SVN中的外观。 在此处输入图片说明

Each module has its own svn labels and tag trunk, branches, tags etc. 每个模块都有自己的svn标签和标签主干,分支,标签等。

I check out all the modules individually by right clicking on them and choosing check out. 我通过右键单击所有模块并选择检出来分别检出所有模块。

Finally I get the below in my eclipse project explorer: 最后,我在Eclipse项目资源管理器中获得以下内容:

在此处输入图片说明

Here is my pom for the parent project. 这是我给父项目的pom。 and this throws errors when I do a mvn clean install 这会在我执行mvn全新安装时引发错误 在此处输入图片说明

I want to understand how to checkout the projects/ modify my pom to get the build successful. 我想了解如何检出项目/修改pom以使构建成功。

Thanks 谢谢

You don't want to check out the root folders of your modules in SVN. 您不想在SVN中签出模块的根文件夹。 All you want is the content of the trunk. 您想要的只是中继的内容。 So right click on the trunk folder and select Check out as... . 因此,右键单击主干文件夹,然后选择“ Check out as... Check it out as new projects and enable Maven on those project afterwards. 将其检出为新项目,然后在这些项目上启用Maven。 Do this with each of your modules and you should be fine. 对您的每个模块执行此操作,您应该没事。

If you have Maven SVN connectors installed you have an option called Check out as Maven project . 如果安装了Maven SVN连接器,则有一个名为Check out as Maven project的选项。 This is very comfortable as it does a few steps for you. 这很舒适,因为它为您执行了一些步骤。

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

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