How to use local dependencies in TeamCity?

I created a settings.xml file and downloaded the dependencies locally using maven and placed them in the project. Now I can run my project locally without internet. I want to run this project with TeamCity. I placed settings.xml file in BuildSteps - User settings section. In theory, the project should start with local dependencies, but maven ignores my settings and tries to download them from the Internet. Question: How do I configure build to use my project dependencies in TeamCity?

 

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>repository</localRepository>
</settings>

0

Please sign in to leave a comment.