简体   繁体   English

如何在 TeamCity 中为 Kotlin DSL 项目指定 Maven settings.xml

[英]How to specify Maven settings.xml for Kotlin DSL project in TeamCity

So you can have settings.xml for Maven projects in TeamCity, Administration -> Project -> Maven Settings .因此,您可以在 TeamCity 中为 Maven 项目settings.xmlAdministration -> Project -> Maven Settings

You can also store project configuration as Kotlin DSL, which is basically a Maven project stored under .teamcity in VCSROOT.您还可以将项目配置存储为 Kotlin DSL,它基本上是存储在.teamcity中的 .teamcity 下的 Maven 项目。 It may even use external libraries as dependencies.它甚至可以使用外部库作为依赖项。

However, this Maven project will not use any settings.xml described above, so it can't go into HTTP auth-protected internal Maven repositories. However, this Maven project will not use any settings.xml described above, so it can't go into HTTP auth-protected internal Maven repositories. Is there a way to specify settings.xml file for Kotlin DSL configuration project?有没有办法为 Kotlin DSL 配置项目指定settings.xml文件? Is it possible to have that file alongside pom.xml maybe?是否可以将该文件与 pom.xml 放在一起? In this case, will it pick up Tokens from corresponding TeamCity tab?在这种情况下,它会从相应的 TeamCity 选项卡中获取代币吗?

Later on I have stumbled upon TW-53584 : The settings file needs to be named mavenSettingsDsl.xml and placed in <Root project> 's Maven Settings.后来我偶然发现了TW-53584 :设置文件需要命名为mavenSettingsDsl.xml并放在<Root project>的 Maven 设置中。 It will be picked up and used.它将被捡起并使用。

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

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