Uploaded image for project: 'Serverless logic'
  1. Serverless logic
  2. SRVLOGIC-231

Disable question about collecting Quarkus analytics


      When a Quarkus project is started, there is an error in the console:

      --- Help improve Quarkus ---
      * Learn more: https://quarkus.io/usage/
      * Do you agree to contribute anonymous build time data to the Quarkus community? (y/n and enter) 
      [WARNING] Failed to collect user input for analytics
      java.util.NoSuchElementException: No line found
          at java.util.Scanner.nextLine (Scanner.java:1651)
          at io.quarkus.maven.DevMojo.lambda$execute$0 (DevMojo.java:431)
          at io.quarkus.analytics.ConfigService.lambda$userAcceptance$0 (ConfigService.java:79)
          at java.util.concurrent.CompletableFuture$AsyncSupply.run (CompletableFuture.java:1768)
          at java.util.concurrent.CompletableFuture$AsyncSupply.exec (CompletableFuture.java:1760)
          at java.util.concurrent.ForkJoinTask.doExec (ForkJoinTask.java:373)
          at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec (ForkJoinPool.java:1182)
          at java.util.concurrent.ForkJoinPool.scan (ForkJoinPool.java:1655)
          at java.util.concurrent.ForkJoinPool.runWorker (ForkJoinPool.java:1622)
          at java.util.concurrent.ForkJoinWorkerThread.run (ForkJoinWorkerThread.java:165)
      [info] [Quarkus build analytics] Didn't receive a valid user's answer: `y` or `n`. The question will be asked again next time.

      The error does not cause any issues but we should get rid of it.

      Steps to reproduce:

      1. Create a new project: kn workflow create
      2. Go inside the project: cd new-project
      3. Start the project: kn workflow run
      4. There is the "java.util.NoSuchElementException: No line found" error in the console.

            wmedvede@redhat.com Walter Medvedeo
            tdavid@redhat.com Tomas David
            Eder Ignatowicz
            Tomas David Tomas David
            0 Vote for this issue
            3 Start watching this issue