Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on clean room Windows: quarkus-resteasy-reactive-kotlin #31585

Closed
Karm opened this issue Mar 3, 2023 · 7 comments
Closed

Build fails on clean room Windows: quarkus-resteasy-reactive-kotlin #31585

Karm opened this issue Mar 3, 2023 · 7 comments
Assignees
Labels
area/kotlin area/rest env/windows Impacts Windows machines kind/bug Something isn't working triage/invalid This doesn't seem right

Comments

@Karm
Copy link
Member

Karm commented Mar 3, 2023

Describe the bug

I regularly build Quarkus on Windows without problems. I installed a new, clean room Windows 10 baremetal system from scratch recently and I cannot build Quarkus main (e000c18).

Expected behavior

Quarkus builds just fine as on other Windows 10 systems.

Actual behavior

The build ends up abruptly with:

C:\tmp\quarkus (main -> upstream)
λ mvnw clean install -Dquickly 2>&1 | tee ..\log_main.log

...

[INFO] --- quarkus-extension-maven-plugin:999-SNAPSHOT:extension-descriptor (generate-extension-descriptor) @ quarkus-resteasy-reactive-kotlin ---
[WARNING] The metadata C:\Users\karm\.m2\repository\io\quarkus\quarkus-resteasy-reactive-kotlin\999-SNAPSHOT\maven-metadata-local.xml is invalid: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1) 
[WARNING] The metadata C:\Users\karm\.m2\repository\io\quarkus\quarkus-resteasy-reactive-kotlin\999-SNAPSHOT\maven-metadata-local.xml is invalid: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @1:1) 
[INFO] 
[INFO] --- kotlin-maven-plugin:1.8.10:compile (compile) @ quarkus-resteasy-reactive-kotlin ---
[WARNING] Error injecting: org.jetbrains.kotlin.maven.K2JVMCompileMojo
java.lang.NoClassDefFoundError: org/jetbrains/kotlin/cli/common/messages/MessageCollector

...

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  03:03 min
[INFO] Finished at: 2023-03-03T13:40:23+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:1.8.10:compile (compile) on project quarkus-resteasy-reactive-kotlin: Execution compile of goal org.jetbrains.kotlin:kotlin-maven-plugin:1.8.10:compile failed: A required class was missing while executing org.jetbrains.kotlin:kotlin-maven-plugin:1.8.10:compile: org/jetbrains/kotlin/cli/common/messages/MessageCollector
[ERROR] -----------------------------------------------------

Full log: https://karms.biz/pastebin/windows-q-main-build-fails.txt

How to Reproduce?

  1. clone quarkus repo
  2. set JAVA_HOME and PATH:
    set "JAVA_HOME=C:\Program Files\jdk-17.0.6+10"
    set "PATH=%JAVA_HOME%\bin;%PATH%"
    
  3. mvnw clean install -Dquickly

Output of uname -a or ver

Microsoft Windows [Version 10.0.19042.2604]

Output of java -version

λ java --version
openjdk 17.0.6 2023-01-17
OpenJDK Runtime Environment Temurin-17.0.6+10 (build 17.0.6+10)
OpenJDK 64-Bit Server VM Temurin-17.0.6+10 (build 17.0.6+10, mixed mode, sharing)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

e000c18

Build tool (ie. output of mvnw --version or gradlew --version)

C:\tmp\quarkus (main -> upstream)
λ mvnw --version
Apache Maven 3.8.7 (b89d5959fcde851dcb1c8946a785a163f14e1e29)
Maven home: C:\Users\karm\.m2\wrapper\dists\apache-maven-3.8.7-bin\678cc9d4\apache-maven-3.8.7
Java version: 17.0.6, vendor: Eclipse Adoptium, runtime: C:\Program_Files\jdk-17.0.6+10
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Additional information

No response

@Karm Karm added the kind/bug Something isn't working label Mar 3, 2023
@quarkus-bot quarkus-bot bot added area/kotlin area/rest env/windows Impacts Windows machines labels Mar 3, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Mar 3, 2023

/cc @FroMage (resteasy-reactive), @Sgitario (resteasy-reactive), @evanchooly (kotlin), @geoand (kotlin,resteasy-reactive), @stuartwdouglas (resteasy-reactive)

@Karm Karm changed the title Cannot build main on clean room Windows: quarkus-resteasy-reactive-kotlin Build fails on clean room Windows: quarkus-resteasy-reactive-kotlin Mar 3, 2023
@Karm
Copy link
Member Author

Karm commented Mar 3, 2023

Downgrading Kotlin Maven Plugin from 1.8.10 to 1.8.0 made just a different class missing:

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:1.8.0:compile (compile) on project quarkus-resteasy-reactive-kotlin: Execution compile of goal org.jetbrains.kotlin:kotlin-maven-plugin:1.8.0:compile failed: A required class was missing while executing org.jetbrains.kotlin:kotlin-maven-plugin:1.8.0:compile: org/apache/maven/plugin/compiler/DependencyCoordinate
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.jetbrains.kotlin:kotlin-maven-plugin:1.8.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/karm/.m2/repository/org/jetbrains/kotlin/kotlin-maven-plugin/1.8.0/kotlin-maven-plugin-1.8.0.jar
[ERROR] urls[1] = file:/C:/Users/karm/.m2/repository/org/sonatype/aether/aether-util/1.13.1/aether-util-1.13.1.jar
[ERROR] urls[2] = file:/C:/Users/karm/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.3.0/sisu-inject-bean-2.3.0.jar
[ERROR] urls[3] = file:/C:/Users/karm/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar
[ERROR] urls[4] = file:/C:/Users/karm/.m2/repository/org/sonatype/sisu/sisu-guava/0.9.9/sisu-guava-0.9.9.jar
[ERROR] urls[5] = file:/C:/Users/karm/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[6] = file:/C:/Users/karm/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.6/plexus-utils-2.0.6.jar
[ERROR] urls[7] = file:/C:/Users/karm/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[8] = file:/C:/Users/karm/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[9] = file:/C:/Users/karm/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[10] = file:/C:/Users/karm/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.4/maven-plugin-annotations-3.4.jar
[ERROR] urls[11] = file:/C:/Users/karm/.m2/repository/org/jetbrains/kotlin/kotlin-compiler/1.8.0/kotlin-compiler-1.8.0.jar
[ERROR] urls[12] = file:/C:/Users/karm/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.8.0/kotlin-stdlib-1.8.0.jar
[ERROR] urls[13] = file:/C:/Users/karm/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-common/1.8.0/kotlin-stdlib-common-1.8.0.jar
[ERROR] urls[14] = file:/C:/Users/karm/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.jar
[ERROR] urls[15] = file:/C:/Users/karm/.m2/repository/org/jetbrains/kotlin/kotlin-script-runtime/1.8.0/kotlin-script-runtime-1.8.0.jar
[ERROR] urls[16] = file:/C:/Users/karm/.m2/repository/org/jetbrains/kotlin/kotlin-reflect/1.6.10/kotlin-reflect-1.6.10.jar
[ERROR] urls[17] = file:/C:/Users/karm/.m2/repository/org/jetbrains/intellij/deps/trove4j/1.0.20200330/trove4j-1.0.20200330.jar
[ERROR] urls[18] = file:/C:/Users/karm/.m2/repository/org/jetbrains/kotlin/kotlin-scripting-compiler/1.8.0/kotlin-scripting-compiler-1.8.0.jar
[ERROR] urls[19] = file:/C:/Users/karm/.m2/repository/org/jetbrains/kotlin/kotlin-scripting-common/1.8.0/kotlin-scripting-common-1.8.0.jar
[ERROR] urls[20] = file:/C:/Users/karm/.m2/repository/org/jetbrains/kotlin/kotlin-scripting-jvm/1.8.0/kotlin-scripting-jvm-1.8.0.jar
[ERROR] urls[21] = file:/C:/Users/karm/.m2/repository/org/jetbrains/kotlin/kotlin-scripting-compiler-impl/1.8.0/kotlin-scripting-compiler-impl-1.8.0.jar
[ERROR] urls[22] = file:/C:/Users/karm/.m2/repository/org/jline/jline/3.3.1/jline-3.3.1.jar
[ERROR] urls[23] = file:/C:/Users/karm/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/3.5.1/maven-compiler-plugin-3.5.1.jar
[ERROR] urls[24] = file:/C:/Users/karm/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.0.0/maven-shared-utils-3.0.0.jar
[ERROR] urls[25] = file:/C:/Users/karm/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
[ERROR] urls[26] = file:/C:/Users/karm/.m2/repository/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.jar
[ERROR] urls[27] = file:/C:/Users/karm/.m2/repository/org/apache/maven/shared/maven-shared-incremental/1.1/maven-shared-incremental-1.1.jar
[ERROR] urls[28] = file:/C:/Users/karm/.m2/repository/org/codehaus/plexus/plexus-compiler-api/2.7/plexus-compiler-api-2.7.jar
[ERROR] urls[29] = file:/C:/Users/karm/.m2/repository/org/codehaus/plexus/plexus-compiler-manager/2.7/plexus-compiler-manager-2.7.jar
[ERROR] urls[30] = file:/C:/Users/karm/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/2.7/plexus-compiler-javac-2.7.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[project>io.quarkus:quarkus-parent:999-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : org.apache.maven.plugin.compiler.DependencyCoordinate

@geoand
Copy link
Contributor

geoand commented Mar 6, 2023

I have absolutely no idea why this would happen

@stuartwdouglas
Copy link
Member

Any chance the maven repo is corrupted?

@Karm
Copy link
Member Author

Karm commented Mar 6, 2023

Any chance the maven repo is corrupted?

There was no local repo. It was a clean Win 10 install on a baremetal desktop I exhumed from the closet to further test #31490. Quarkus build was the very first Maven program executed.

Is there any caveat that the very first time you build Q on Windows you cannot use the "quickly" profile?

There is surely some encoding issue in some of the xml files or configs and it doesn't show on my other Win 10, because that other instance has been building Mandrel/Quarkus/Graal for a long time and has a "warm" local repo and all.

@Karm
Copy link
Member Author

Karm commented Mar 6, 2023

I wiped out everything (local cache in AppData, m2 in Users home, q directory) and the build proceeds now.

I guess some artifacts were only partially downloaded before. Dunno.

I hope I haven't wasted anyone's time.

@Karm Karm closed this as completed Mar 6, 2023
@Karm Karm added the triage/invalid This doesn't seem right label Mar 6, 2023
@Karm Karm self-assigned this Mar 6, 2023
@geoand
Copy link
Contributor

geoand commented Mar 6, 2023

Thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kotlin area/rest env/windows Impacts Windows machines kind/bug Something isn't working triage/invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants