简体   繁体   English

Maven与Teamcity的集成

[英]Maven integration with Teamcity

I am trying to integrate maven project with teamcity. 我正在尝试将maven项目与teamcity集成。 I almost there but got into one issue. 我几乎在那里,但遇到了一个问题。 i am using javax mail jar for my project and i have added dependency in POM>xml also.When I am building locally using command prompt it is working fine but when i am trying to buld that on Teamcity I am getting an error stating that "package not found". 我正在为我的项目使用javax邮件jar,并且我已经在POM> xml中添加了依赖项。当我使用命令提示符在本地构建它工作正常但是当我试图在Teamcity上buld时我得到一个错误声明“找不到包裹“。 It means javax mail jar is not being getting included in build. 这意味着javax邮件jar没有被包含在构建中。 I have tried adding jar from folder by specifying system path then also it is not including. 我已经尝试通过指定系统路径从文件夹添加jar,然后它也不包括。 Is there something I am missing in teamcity configuration which is creating this problem ? 在teamcity配置中是否存在我正在创建此问题的内容?

As mentioned in the comments configuring teamCity with a settings.xml where you specify your repository location should do the trick. 正如评论中所提到的,使用settings.xml配置teamCity,您可以在其中指定存储库位置。

Here's a link to TC documentation for Maven builds: https://confluence.jetbrains.com/display/TCD10/Maven 以下是Maven版本的TC文档链接: https//confluence.jetbrains.com/display/TCD10/Maven

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

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