自动化 Maven 设置文件
我在本地网络上进行了人工设置,目前我们正在考虑将许多项目放到 Hudson 盒子上以用于 CI 目的。
目前,要让项目正常运行,用户必须签出他们正在处理的项目,然后转到他们的 Maven settings.xml 文件并更改它。理想情况下,我希望简化这些过程,以便当您签出代码时,您可以作为构建的一部分放入正确的设置文件中。
我当前重构的项目具有通过artifactory引入的外部依赖项,而hudson不会构建它,因为它无法引入外部依赖项...
我仍然不能100%确定这是否是最好的课程,但我想删除尽可能多的项目设置手动步骤,到目前为止,这似乎是一个主要步骤......
I have artifactory setup on our local network, and we are currently looking to put alot of our projects onto a Hudson box for CI purposes.
Currently to get a project working the user has to checkout the project they are working on, then go to their maven settings.xml file and change it. I would ideally like to streamline these procedures so when you checkout your code you can as part of the build put in the right settings file.
The project im currently refactoring has external dependencies that are pulled in through artifactory, and hudson wont build it as it cannot pull in the external dependencies...
Im still not 100% sure if this is the best course to take, but I want to remove as many manual steps as possible for project setup, and so far this seems to be a major one...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为最好的方法是您的 pom.xml 继承自公共父 pom.xml,其中定义了对某些第三方存储库的依赖项之类的内容。
I think the best way is that your pom.xml inherit from a common parent pom.xml where stuff like dependencies to some third pary repos are defined.