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 Windows™ #1582

Open
Haarolean opened this issue Feb 9, 2022 Discussed in #1557 · 3 comments
Open

Build fails on Windows™ #1582

Haarolean opened this issue Feb 9, 2022 Discussed in #1557 · 3 comments
Labels
good first issue Up for grabs scope/backend scope/frontend scope/infrastructure CI / Dev. Env type/chore Boring stuff, could be refactoring or tech debt

Comments

@Haarolean
Copy link
Contributor

Discussed in #1557

Originally posted by myersdennis94 February 6, 2022
I am interested in contributing to this project and getting into open source. I am trying to build the app according to the instructions in the README but my build is crashing. The console output is below, if anyone can help in any way it is greatly appreciated!!

[INFO] --- frontend-maven-plugin:1.12.0:npm (npm run gen:sources) @ kafka-ui-contract ---
[INFO] Running 'npm run gen:sources' in D:\OpenSource\kafka-ui\kafka-ui-react-app
[INFO]
[INFO] > kafka-ui@0.1.0 gen:sources D:\OpenSource\kafka-ui\kafka-ui-react-app
[INFO] > rimraf src/generated-sources && openapi-generator-cli generate
[INFO]
[INFO] Download 5.4.0 ...
[INFO] Downloaded 5.4.0
[INFO] Did set selected version to 5.4.0
[INFO] [error] Required option '-i' is missing
[INFO] npm ERR! code ELIFECYCLE
[INFO] npm ERR! errno 1
[INFO] npm ERR! kafka-ui@0.1.0 gen:sources: rimraf src/generated-sources && openapi-generator-cli generate
[INFO] npm ERR! Exit status 1
[INFO] npm ERR!
[INFO] npm ERR! Failed at the kafka-ui@0.1.0 gen:sources script.
[INFO] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[INFO]
[INFO] npm ERR! A complete log of this run can be found in:
[INFO] npm ERR! C:\Users\Dennis\AppData\Roaming\npm-cache_logs\2022-02-06T04_13_00_574Z-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for kafka-ui 0.0.1-SNAPSHOT:
[INFO]
[INFO] kafka-ui ........................................... SUCCESS [ 0.242 s]
[INFO] kafka-ui-contract .................................. FAILURE [05:35 min]
[INFO] kafka-ui-api ....................................... SKIPPED
[INFO] kafka-ui-e2e-checks ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:35 min
[INFO] Finished at: 2022-02-05T22:13:00-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:npm (npm run gen:sources) on project kafka-ui-contract: Failed to run task: 'npm run gen:sources' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [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 :kafka-ui-contract

@Haarolean Haarolean added scope/backend scope/frontend type/chore Boring stuff, could be refactoring or tech debt scope/infrastructure CI / Dev. Env labels Feb 9, 2022
@Haarolean Haarolean self-assigned this Feb 9, 2022
@Haarolean Haarolean changed the title Build doesn't work in Windows™ Build doesn't work on Windows™ Feb 9, 2022
@Haarolean Haarolean added the good first issue Up for grabs label Mar 17, 2022
@Haarolean Haarolean removed their assignment Mar 17, 2022
@Haarolean Haarolean added this to Beginner in Up for grabs Mar 17, 2022
@lekomcev
Copy link

lekomcev commented Aug 11, 2022

@Haarolean check path variable for java

@Haarolean Haarolean changed the title Build doesn't work on Windows™ Build fails on Windows™ Feb 22, 2023
@Haarolean
Copy link
Contributor Author

We need someone to try this again on windows with a fresh master

@kunzef
Copy link

kunzef commented Apr 26, 2023

Im using Windows 10 with OpenJDK 19 and these two build commands are successfull:
mvnw clean install -Pprod -DskipUIBuild=true -Dmaven.test.skip=true
mvnw -f kafka-ui-api/pom.xml clean install -Pprod -DskipUIBuild=true -Dmaven.test.skip=true

If I try to run with tests enabled:
mvnw clean install -Pprod -DskipUIBuild=true
mvnw -f kafka-ui-api/pom.xml clean install -Pprod -DskipUIBuild=true
Following tests fail:

[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] KafkaConsumerGroupTests.shouldOkWhenConsumerGroupIsNotActive:63 Status expected:<200 OK> but was:<400 BAD_REQUEST>
[ERROR] Errors:
[ERROR] ProtobufFileSerdeTest$ConfigurationTests.canBeAutoConfiguredReturnsNoProtoPropertiesProvided � NullPointer
[ERROR] ProtobufFileSerdeTest$ConfigurationTests.canBeAutoConfiguredReturnsTrueIfNoProtoFileHasBeenProvided � NullPointer
[ERROR] ProtobufFileSerdeTest$ConfigurationTests.canBeAutoConfiguredReturnsTrueIfProtoFilesDirProvided � NullPointer
[ERROR] ProtobufFileSerdeTest$ConfigurationTests.canBeAutoConfiguredReturnsTrueIfProtoFilesHasBeenProvided � NullPointer
[ERROR] ProtobufFileSerdeTest$ConfigurationTests.createConfigureFillsDescriptorMappingsWhenProtoFileDirProvided � NullPointer
[ERROR] ProtobufFileSerdeTest$ConfigurationTests.createConfigureFillsDescriptorMappingsWhenProtoFilesListProvided � NullPointer
[ERROR] ProtobufFileSerdeTest$ConfigurationTests.unknownSchemaAsDefaultForKeyThrowsException � NullPointer
[ERROR] ProtobufFileSerdeTest$ConfigurationTests.unknownSchemaAsDefaultThrowsException � NullPointer
[ERROR] ProtobufFileSerdeTest$ConfigurationTests.unknownSchemaAsTopicSchemaForKeyThrowsException � NullPointer
[ERROR] ProtobufFileSerdeTest$ConfigurationTests.unknownSchemaAsTopicSchemaThrowsException � NullPointer
[ERROR] ProtobufFileSerdeTest.setUp:49 � NullPointer ProtoFile not found for import 'l...
[ERROR] ProtobufFileSerdeTest.setUp:49 � NullPointer ProtoFile not found for import 'l...
[ERROR] ProtobufFileSerdeTest.setUp:49 � NullPointer ProtoFile not found for import 'l...
[ERROR] ProtobufFileSerdeTest.setUp:49 � NullPointer ProtoFile not found for import 'l...
[ERROR] ProtobufFileSerdeTest.setUp:49 � NullPointer ProtoFile not found for import 'l...
[INFO]
[ERROR] Tests run: 283, Failures: 1, Errors: 15, Skipped: 0

When trying to build the UI as well:
./mvnw clean install -Pprod
./mvnw clean install -Dmaven.test.skip=true -Pprod
I get the error described in issue 3484.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Up for grabs scope/backend scope/frontend scope/infrastructure CI / Dev. Env type/chore Boring stuff, could be refactoring or tech debt
Projects
Development

No branches or pull requests

3 participants