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

CycleDetected Error while Build #39591

Closed
wwwaldemar opened this issue Mar 20, 2024 · 1 comment
Closed

CycleDetected Error while Build #39591

wwwaldemar opened this issue Mar 20, 2024 · 1 comment
Labels
kind/bug Something isn't working triage/out-of-date This issue/PR is no longer valid or relevant

Comments

@wwwaldemar
Copy link

wwwaldemar commented Mar 20, 2024

Describe the bug

If you use following extensions

  • quarkus-hibernate-orm
  • quarkus-jdbc-oracle
  • quarkus-flyway
  • flyway-database-oracle
  • quarkus-smallrye-metrics

in additonal to "writing rest services" tutorial, then the build breaks with a cycle detected error

Expected behavior

successful build

Actual behavior

build fails with a cycle detection
and gives the error output

[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:3.8.3:build (default) on project rest-json-quickstart: Failed to build quarkus application: io.quarkus.builder.ChainBuildException: Cycle detected:
[ERROR]                    io.quarkus.arc.deployment.ArcProcessor#signalBeanContainerReady produced class io.quarkus.arc.deployment.BeanContainerBuildItem
[ERROR]                 to io.quarkus.flyway.deployment.FlywayProcessor#startActions produced class io.quarkus.agroal.spi.JdbcDataSourceSchemaReadyBuildItem
[ERROR]                 to io.quarkus.hibernate.orm.deployment.metrics.HibernateOrmMetricsProcessor#metrics produced class io.quarkus.deployment.metrics.MetricsFactoryConsumerBuildItem
[ERROR]                 to io.quarkus.smallrye.metrics.deployment.SmallRyeMetricsProcessor#extensionMetrics produced class io.quarkus.arc.deployment.UnremovableBeanBuildItem
[ERROR]                 to io.quarkus.arc.deployment.ArcProcessor#validate produced class io.quarkus.arc.deployment.ValidationPhaseBuildItem
[ERROR]                 to io.quarkus.arc.deployment.ObserverValidationProcessor#validateApplicationObserver produced class io.quarkus.arc.deployment.ValidationPhaseBuildItem$ValidationErrorBuildItem
[ERROR]                 to io.quarkus.arc.deployment.ArcProcessor#generateResources produced class io.quarkus.arc.deployment.ResourcesGeneratedPhaseBuildItem
[ERROR]                 to io.quarkus.arc.deployment.ArcProcessor#initializeContainer produced class io.quarkus.arc.deployment.ArcContainerBuildItem
[ERROR]                 to io.quarkus.arc.deployment.ArcProcessor#notifyBeanContainerListeners produced class io.quarkus.arc.deployment.PreBeanContainerBuildItem
[ERROR]                 to io.quarkus.arc.deployment.ArcProcessor#signalBeanContainerReady

How to Reproduce?

  • create a sample project
mvn io.quarkus.platform:quarkus-maven-plugin:3.8.3:create \
    -DprojectGroupId=org.acme \
    -DprojectArtifactId=rest-json-quickstart \
    -Dextensions='resteasy-reactive-jackson' 
  • add following dependencies
<dependencies>
    .....
    <!-- ADDED BEGIN  -->
    <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-hibernate-orm</artifactId>
    </dependency>

    <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-jdbc-oracle</artifactId>
    </dependency>

    <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-flyway</artifactId>
    </dependency>

    <dependency>
      <groupId>org.flywaydb</groupId>
      <artifactId>flyway-database-oracle</artifactId>
    </dependency>

    <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-smallrye-metrics</artifactId>
    </dependency>
    <!-- ADDED END  -->
     .......
</dependencies>
  • execute mvn clean package -DskipTests

Output of uname -a or ver

MINGW64_NT-10.0-19045

Output of java -version

OpenJDK Runtime Environment Temurin-21.0.1+12 (build 21.0.1+12-LTS)

Quarkus version or git rev

3.8.3

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

Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546)

Additional information

No response

@wwwaldemar wwwaldemar added the kind/bug Something isn't working label Mar 20, 2024
@geoand
Copy link
Contributor

geoand commented Mar 20, 2024

This has already been fixed in main and will be available with the next 3.8 release

@geoand geoand closed this as not planned Won't fix, can't repro, duplicate, stale Mar 20, 2024
@geoand geoand added the triage/out-of-date This issue/PR is no longer valid or relevant label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/out-of-date This issue/PR is no longer valid or relevant
Projects
None yet
Development

No branches or pull requests

2 participants