DSL Maven Generate failing java.lang.NoSuchMethodError
Generating DSL locally with Maven started failing with no changes to the DSL code or POM file, so assuming the problem has something to do with new SNAPSHOT API dependencies retrieved from the TC Server:
[ERROR] Error while generating TeamCity configs:
[ERROR] Runtime error RootProjectId: jetbrains.buildServer.configs.kotlin.v2019_2.vcs.PerforceVcsRoot[-1]: java.lang.NoSuchMethodError: kotlin.jvm.internal.MutablePropertyReference1Impl.<init>(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)V
Was using TeamCity DSL Version 2020.1 and Kotlin Version 1.3.0, updated to 2020.2 and 1.4.21 which did not fix the issue. Also found https://youtrack.jetbrains.com/issue/KT-37435 which seems to be a similar issue, but none of the suggestions like changing Kotlin API/Language version helped.
Any suggestions on how to resolve?
Please sign in to leave a comment.
Hi. Please try running
If that doesn't help, try removing <user_home>/.m2. If that still doesn't help raise a support request and attach the output of
mvn -X teamcity-configs:generate and your pom.xml.-Anatoly