Это отлично работает в тестах, но, к сожалению, эти бобы не найдены во время выполнения. Существует Maven Module Main-Integration-test , который регулярно использует расширение
https://github.com/vanillabp/adapter-pl ... ation-test> и на строительстве. Используются бобы, которые оба не найдены): < /p>
Код: Выделить всё
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:3.22.3:build (default) on project quarkus-main-integration-test: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR] [error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: jakarta.enterprise.inject.spi.DeploymentException: Found 2 deployment problems:
[ERROR] [1] Unsatisfied dependency for type io.vanillabp.spi.process.ProcessService and qualifiers [@Default]
[ERROR] - injection target: io.vanillabp.integration.test.sample.SampleWorkflowService#processService
[ERROR] - declared on CLASS bean [types=[io.vanillabp.integration.test.sample.SampleWorkflowService, java.lang.Object], qualifiers=[@Default, @Any], target=io.vanillabp.integration.test.sample.SampleWorkflowService]
[ERROR] [2] Unsatisfied dependency for type io.vanillabp.spi.process.ProcessService and qualifiers [@Default]
[ERROR] - injection target: io.vanillabp.integration.test.sample2.SampleWorkflowService#processService
[ERROR] - declared on CLASS bean [types=[java.lang.Object, io.vanillabp.integration.test.sample2.SampleWorkflowService], qualifiers=[@Default, @Any], target=io.vanillabp.integration.test.sample2.SampleWorkflowService]
< /code>
Насколько я могу понять, это кажется проблемой построить этот боб на основе класса Java, не имеющего конструктора по умолчанию. Когда я добавляю конструктор по умолчанию, этот конструктор выполняется. Я использовал CreateEwith, который, как предназначен для того, чтобы использовать для подключения внешних классов в качестве бобов, которые предоставляют только конструкторы, не являющиеся декорациями. />https://github.com/quarkiverse/quarkus-openapi-generator/blob/main/client/runtime/src/main/java/io/quarkiverse/openapi/generator/authenticationRecorder.java#l52br/> Что осталось? Я пробовал много разных подходов (runtimeValueСпасибо,
stephan < /p>
Подробнее здесь: https://stackoverflow.com/questions/797 ... at-runtime