quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.84k stars 2.7k forks source link

Code does not work out of box #23005

Open pilhuhn opened 2 years ago

pilhuhn commented 2 years ago

Describe the bug

Followup to quarkusio/code.quarkus.io#740 I downloaded the code, hit mvn quarkus:dev and after a while Quarkus started, but showed

[INFO] Invoking io.quarkus.platform:quarkus-maven-plugin:2.6.2.Final:generate-code-tests) @ quarkus-kie-test
[INFO] Invoking org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile) @ quarkus-kie-test
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to /Users/hrupp/insights/quarkus-kie-test/target/test-classes
Listening for transport dt_socket at address: 5005
2022-01-19 11:17:05,747 WARN  [io.qua.arc.pro.BeanArchives] (build-4) Failed to index org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder: Class does not exist in ClassLoader QuarkusClassLoader:Deployment Class Loader: DEV@71075444
2022-01-19 11:17:05,770 INFO  [io.qua.arc.pro.IndexClassLookupUtils] (build-4) Class for name: org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder was not found in Jandex index. Please ensure the class is part of the index.
2022-01-19 11:17:05,807 INFO  [io.qua.dep.dev.IsolatedDevModeMain] (main) Attempting to start live reload endpoint to recover from previous Quarkus startup failure
2022-01-19 11:17:05,936 INFO  [org.jbo.threads] (main) JBoss Threads version 3.4.2.Final
2022-01-19 11:17:06,229 ERROR [io.qua.dep.dev.IsolatedDevModeMain] (main) Failed to start quarkus: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
    [error]: Build step io.quarkus.arc.deployment.ArcProcessor#registerBeans threw an exception: java.lang.IllegalArgumentException: Producer method return type not found in index: org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder

Expected behavior

Code would compile and start without any error

Actual behavior

Console shows the above error

To Reproduce Steps to reproduce the behavior:

Screenshots (If applicable, add screenshots to help explain your problem.)

Environment (please complete the following information):

Additional context (Add any other context about the problem here.)

gsmet commented 2 years ago

Moving to the main repo. Can you please attach the project that you cannot build? Thanks.

pilhuhn commented 2 years ago

quarkus-kie-test.zip

pilhuhn commented 2 years ago

I believe the root cause is that in https://github.com/quarkusio/code.quarkus.io/issues/740 I only selected the one thing that I am interested in and apparently (required) dependencies are not added into the pom.

When I e.g. add

    <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-smallrye-reactive-streams-operators</artifactId>
    </dependency>

to the pom, the above error goes away, but new ones show up.

geoand commented 1 year ago

Is this still an issue?