Build errors #548
Closed
rkdawenterprises
started this conversation in
General
Replies: 1 comment
-
We're phasing out Maven build. It's currently not compiling as is and we'll delete it soon. Please use the Gradle build system now.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I did a clean pull of the 0.55 version and get build errors. If I check-out the 0.54 tag, clean and build, it builds with no issue. For build, I'm simply following the CLI instructions "mvn install". Any suggestions would be appreciated. The following are the errors I am getting.
rwilliamson@centennial:
/Desktop/idea_projects/ktfmt$ mvn install/Desktop/idea_projects/ktfmt$[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Ktfmt Parent [pom]
[INFO] Ktfmt [jar]
[INFO]
[INFO] ---------------------< com.facebook:ktfmt-parent >----------------------
[INFO] Building Ktfmt Parent 0.55-SNAPSHOT [1/2]
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- install:3.1.2:install (default-install) @ ktfmt-parent ---
[INFO] Installing /home/rwilliamson/idea_projects/ktfmt/pom.xml to /home/rwilliamson/.m2/repository/com/facebook/ktfmt-parent/0.55-SNAPSHOT/ktfmt-parent-0.55-SNAPSHOT.pom
[INFO]
[INFO] -------------------------< com.facebook:ktfmt >-------------------------
[INFO] Building Ktfmt 0.55-SNAPSHOT [2/2]
[INFO] from core/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ ktfmt ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/rwilliamson/idea_projects/ktfmt/core/src/main/resources
[INFO]
[INFO] --- kotlin:2.2.0-Beta2:compile (compile) @ ktfmt ---
[WARNING] Using experimental Kotlin incremental compilation
[INFO] Could not get classpath changes: CLASSPATH_SNAPSHOT_NOT_FOUND
[INFO] Non-incremental compilation will be performed: CLASSPATH_SNAPSHOT_NOT_FOUND
[ERROR] file:///home/rwilliamson/idea_projects/ktfmt/core/src/main/java/com/facebook/ktfmt/cli/ParsedArgs.kt:21:32 Unresolved reference 'Ktfmt'.
[ERROR] file:///home/rwilliamson/idea_projects/ktfmt/core/src/main/java/com/facebook/ktfmt/cli/ParsedArgs.kt:112:57 Unresolved reference 'Ktfmt'.
[ERROR] file:///home/rwilliamson/idea_projects/ktfmt/core/src/main/java/com/facebook/ktfmt/format/KotlinInputAstVisitor.kt:1703:29 Overload resolution ambiguity between candidates:
fun KtContextReceiverList.listToVisit(): List
fun KtContextReceiverList.listToVisit(): List
[ERROR] file:///home/rwilliamson/idea_projects/ktfmt/core/src/main/java/com/facebook/ktfmt/util/kotlin-2.1/CompatibilityUtils.kt:24:1 Conflicting overloads:
fun KtContextReceiverList.listToVisit(): List
[ERROR] file:///home/rwilliamson/idea_projects/ktfmt/core/src/main/java/com/facebook/ktfmt/util/kotlin-2.2/CompatibilityUtils.kt:24:1 Conflicting overloads:
fun KtContextReceiverList.listToVisit(): List
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Ktfmt Parent 0.55-SNAPSHOT:
[INFO]
[INFO] Ktfmt Parent ....................................... SUCCESS [ 0.091 s]
[INFO] Ktfmt .............................................. FAILURE [ 5.590 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.729 s
[INFO] Finished at: 2025-05-27T15:46:24-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:2.2.0-Beta2:compile (compile) on project ktfmt: Compilation failure: Compilation failure:
[ERROR] file:///home/rwilliamson/idea_projects/ktfmt/core/src/main/java/com/facebook/ktfmt/cli/ParsedArgs.kt:21:32 Unresolved reference 'Ktfmt'.
[ERROR] file:///home/rwilliamson/idea_projects/ktfmt/core/src/main/java/com/facebook/ktfmt/cli/ParsedArgs.kt:112:57 Unresolved reference 'Ktfmt'.
[ERROR] file:///home/rwilliamson/idea_projects/ktfmt/core/src/main/java/com/facebook/ktfmt/format/KotlinInputAstVisitor.kt:1703:29 Overload resolution ambiguity between candidates:
[ERROR] fun KtContextReceiverList.listToVisit(): List
[ERROR] fun KtContextReceiverList.listToVisit(): List
[ERROR] file:///home/rwilliamson/idea_projects/ktfmt/core/src/main/java/com/facebook/ktfmt/util/kotlin-2.1/CompatibilityUtils.kt:24:1 Conflicting overloads:
[ERROR] fun KtContextReceiverList.listToVisit(): List
[ERROR] file:///home/rwilliamson/idea_projects/ktfmt/core/src/main/java/com/facebook/ktfmt/util/kotlin-2.2/CompatibilityUtils.kt:24:1 Conflicting overloads:
[ERROR] fun KtContextReceiverList.listToVisit(): List
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :ktfmt
rwilliamson@centennial:
Beta Was this translation helpful? Give feedback.
All reactions