apache / incubator-kie-tools

Tools for KIE
Apache License 2.0
248 stars 182 forks source link

Error when creating quarkus project using kn workflow plugin #2172

Open LuboTerifaj opened 8 months ago

LuboTerifaj commented 8 months ago

"kn workflow quarkus create - ERROR: something went wrong during command "create" ❌ ERROR: creating Quarkus SonataFlow project exit status 1 Error: exit status 1"

Environment

Originally reported by @dmarrazzo .

ljmotta commented 8 months ago

@LuboTerifaj Thanks for reporting the issue. Could you please add the version log (kn workflow version), and the entire log? Also, could you share your OS?

ederign commented 8 months ago

It's probably broken on main due to quarkus upgrade. It's fixed on https://github.com/apache/incubator-kie-tools/pull/2136

cmoulliard commented 8 months ago

Here is the full log

kn workflow quarkus create
✅ Checking dependencies...
 - Java version check.
 - Maven version check.
🛠️ Creating a Quarkus SonataFlow project...
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- quarkus:2.16.10.Final:create (default-cli) @ standalone-pom ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.678 s
[INFO] Finished at: 2024-03-07T07:12:22+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:2.16.10.Final:create (default-cli) on project standalone-pom: Execution default-cli of goal io.quarkus.platform:quarkus-maven-plugin:2.16.10.Final:create failed: A required class was missing while executing io.quarkus.platform:quarkus-maven-plugin:2.16.10.Final:create: org/eclipse/aether/connector/basic/BasicRepositoryConnectorFactory
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>io.quarkus.platform:quarkus-maven-plugin:2.16.10.Final
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/cmoullia/.m2/repository/io/quarkus/platform/quarkus-maven-plugin/2.16.10.Final/quarkus-maven-plugin-2.16.10.Final.jar
[ERROR] urls[1] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-bootstrap-core/2.16.10.Final/quarkus-bootstrap-core-2.16.10.Final.jar
[ERROR] urls[2] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-bootstrap-app-model/2.16.10.Final/quarkus-bootstrap-app-model-2.16.10.Final.jar
[ERROR] urls[3] = file:/Users/cmoullia/.m2/repository/org/jboss/logging/commons-logging-jboss-logging/1.0.0.Final/commons-logging-jboss-logging-1.0.0.Final.jar
[ERROR] urls[4] = file:/Users/cmoullia/.m2/repository/io/smallrye/common/smallrye-common-io/1.13.2/smallrye-common-io-1.13.2.jar
[ERROR] urls[5] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-bootstrap-maven-resolver/2.16.10.Final/quarkus-bootstrap-maven-resolver-2.16.10.Final.jar
[ERROR] urls[6] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-fs-util/0.0.9/quarkus-fs-util-0.0.9.jar
[ERROR] urls[7] = file:/Users/cmoullia/.m2/repository/org/jboss/logmanager/jboss-logmanager-embedded/1.0.11/jboss-logmanager-embedded-1.0.11.jar
[ERROR] urls[8] = file:/Users/cmoullia/.m2/repository/org/jboss/logging/jboss-logging/3.5.0.Final/jboss-logging-3.5.0.Final.jar
[ERROR] urls[9] = file:/Users/cmoullia/.m2/repository/org/apache/maven/maven-embedder/3.8.6/maven-embedder-3.8.6.jar
[ERROR] urls[10] = file:/Users/cmoullia/.m2/repository/org/codehaus/plexus/plexus-sec-dispatcher/2.0/plexus-sec-dispatcher-2.0.jar
[ERROR] urls[11] = file:/Users/cmoullia/.m2/repository/org/codehaus/plexus/plexus-cipher/2.0/plexus-cipher-2.0.jar
[ERROR] urls[12] = file:/Users/cmoullia/.m2/repository/commons-cli/commons-cli/1.4/commons-cli-1.4.jar
[ERROR] urls[13] = file:/Users/cmoullia/.m2/repository/org/apache/maven/resolver/maven-resolver-transport-wagon/1.6.3/maven-resolver-transport-wagon-1.6.3.jar
[ERROR] urls[14] = file:/Users/cmoullia/.m2/repository/org/apache/maven/wagon/wagon-http/3.5.1/wagon-http-3.5.1.jar
[ERROR] urls[15] = file:/Users/cmoullia/.m2/repository/org/apache/maven/wagon/wagon-http-shared/3.5.1/wagon-http-shared-3.5.1.jar
[ERROR] urls[16] = file:/Users/cmoullia/.m2/repository/org/apache/httpcomponents/httpclient/4.5.14/httpclient-4.5.14.jar
[ERROR] urls[17] = file:/Users/cmoullia/.m2/repository/commons-codec/commons-codec/1.15/commons-codec-1.15.jar
[ERROR] urls[18] = file:/Users/cmoullia/.m2/repository/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar
[ERROR] urls[19] = file:/Users/cmoullia/.m2/repository/org/apache/maven/wagon/wagon-file/3.5.1/wagon-file-3.5.1.jar
[ERROR] urls[20] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-core-deployment/2.16.10.Final/quarkus-core-deployment-2.16.10.Final.jar
[ERROR] urls[21] = file:/Users/cmoullia/.m2/repository/org/aesh/readline/2.2/readline-2.2.jar
[ERROR] urls[22] = file:/Users/cmoullia/.m2/repository/org/aesh/aesh/2.7/aesh-2.7.jar
[ERROR] urls[23] = file:/Users/cmoullia/.m2/repository/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar
[ERROR] urls[24] = file:/Users/cmoullia/.m2/repository/org/wildfly/common/wildfly-common/1.5.4.Final-format-001/wildfly-common-1.5.4.Final-format-001.jar
[ERROR] urls[25] = file:/Users/cmoullia/.m2/repository/io/quarkus/gizmo/gizmo/1.6.0.Final/gizmo-1.6.0.Final.jar
[ERROR] urls[26] = file:/Users/cmoullia/.m2/repository/org/ow2/asm/asm-util/9.4/asm-util-9.4.jar
[ERROR] urls[27] = file:/Users/cmoullia/.m2/repository/org/ow2/asm/asm-analysis/9.4/asm-analysis-9.4.jar
[ERROR] urls[28] = file:/Users/cmoullia/.m2/repository/io/smallrye/jandex/3.0.5/jandex-3.0.5.jar
[ERROR] urls[29] = file:/Users/cmoullia/.m2/repository/org/ow2/asm/asm/9.4/asm-9.4.jar
[ERROR] urls[30] = file:/Users/cmoullia/.m2/repository/org/ow2/asm/asm-commons/9.4/asm-commons-9.4.jar
[ERROR] urls[31] = file:/Users/cmoullia/.m2/repository/org/ow2/asm/asm-tree/9.4/asm-tree-9.4.jar
[ERROR] urls[32] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-development-mode-spi/2.16.10.Final/quarkus-development-mode-spi-2.16.10.Final.jar
[ERROR] urls[33] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-class-change-agent/2.16.10.Final/quarkus-class-change-agent-2.16.10.Final.jar
[ERROR] urls[34] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-devtools-utilities/2.16.10.Final/quarkus-devtools-utilities-2.16.10.Final.jar
[ERROR] urls[35] = file:/Users/cmoullia/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.5/org.eclipse.sisu.inject-0.3.5.jar
[ERROR] urls[36] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-core/2.16.10.Final/quarkus-core-2.16.10.Final.jar
[ERROR] urls[37] = file:/Users/cmoullia/.m2/repository/jakarta/annotation/jakarta.annotation-api/1.3.5/jakarta.annotation-api-1.3.5.jar
[ERROR] urls[38] = file:/Users/cmoullia/.m2/repository/io/smallrye/config/smallrye-config/2.13.3/smallrye-config-2.13.3.jar
[ERROR] urls[39] = file:/Users/cmoullia/.m2/repository/io/smallrye/config/smallrye-config-core/2.13.3/smallrye-config-core-2.13.3.jar
[ERROR] urls[40] = file:/Users/cmoullia/.m2/repository/org/eclipse/microprofile/config/microprofile-config-api/2.0.1/microprofile-config-api-2.0.1.jar
[ERROR] urls[41] = file:/Users/cmoullia/.m2/repository/io/smallrye/common/smallrye-common-annotation/1.13.2/smallrye-common-annotation-1.13.2.jar
[ERROR] urls[42] = file:/Users/cmoullia/.m2/repository/io/smallrye/common/smallrye-common-expression/1.13.2/smallrye-common-expression-1.13.2.jar
[ERROR] urls[43] = file:/Users/cmoullia/.m2/repository/io/smallrye/common/smallrye-common-function/1.13.2/smallrye-common-function-1.13.2.jar
[ERROR] urls[44] = file:/Users/cmoullia/.m2/repository/io/smallrye/common/smallrye-common-classloader/1.13.2/smallrye-common-classloader-1.13.2.jar
[ERROR] urls[45] = file:/Users/cmoullia/.m2/repository/io/smallrye/config/smallrye-config-common/2.13.3/smallrye-config-common-2.13.3.jar
[ERROR] urls[46] = file:/Users/cmoullia/.m2/repository/org/jboss/logging/jboss-logging-annotations/2.2.1.Final/jboss-logging-annotations-2.2.1.Final.jar
[ERROR] urls[47] = file:/Users/cmoullia/.m2/repository/org/jboss/threads/jboss-threads/3.4.3.Final/jboss-threads-3.4.3.Final.jar
[ERROR] urls[48] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-bootstrap-runner/2.16.10.Final/quarkus-bootstrap-runner-2.16.10.Final.jar
[ERROR] urls[49] = file:/Users/cmoullia/.m2/repository/io/github/crac/org-crac/0.1.3/org-crac-0.1.3.jar
[ERROR] urls[50] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-builder/2.16.10.Final/quarkus-builder-2.16.10.Final.jar
[ERROR] urls[51] = file:/Users/cmoullia/.m2/repository/org/graalvm/sdk/graal-sdk/22.3.0/graal-sdk-22.3.0.jar
[ERROR] urls[52] = file:/Users/cmoullia/.m2/repository/org/junit/platform/junit-platform-launcher/1.9.2/junit-platform-launcher-1.9.2.jar
[ERROR] urls[53] = file:/Users/cmoullia/.m2/repository/org/junit/platform/junit-platform-engine/1.9.2/junit-platform-engine-1.9.2.jar
[ERROR] urls[54] = file:/Users/cmoullia/.m2/repository/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar
[ERROR] urls[55] = file:/Users/cmoullia/.m2/repository/org/junit/platform/junit-platform-commons/1.9.2/junit-platform-commons-1.9.2.jar
[ERROR] urls[56] = file:/Users/cmoullia/.m2/repository/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar
[ERROR] urls[57] = file:/Users/cmoullia/.m2/repository/org/junit/jupiter/junit-jupiter/5.9.2/junit-jupiter-5.9.2.jar
[ERROR] urls[58] = file:/Users/cmoullia/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.9.2/junit-jupiter-api-5.9.2.jar
[ERROR] urls[59] = file:/Users/cmoullia/.m2/repository/org/junit/jupiter/junit-jupiter-params/5.9.2/junit-jupiter-params-5.9.2.jar
[ERROR] urls[60] = file:/Users/cmoullia/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.9.2/junit-jupiter-engine-5.9.2.jar
[ERROR] urls[61] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-project-core-extension-codestarts/2.16.10.Final/quarkus-project-core-extension-codestarts-2.16.10.Final.jar
[ERROR] urls[62] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-devtools-common/2.16.10.Final/quarkus-devtools-common-2.16.10.Final.jar
[ERROR] urls[63] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-devtools-registry-client/2.16.10.Final/quarkus-devtools-registry-client-2.16.10.Final.jar
[ERROR] urls[64] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-devtools-message-writer/2.16.10.Final/quarkus-devtools-message-writer-2.16.10.Final.jar
[ERROR] urls[65] = file:/Users/cmoullia/.m2/repository/io/smallrye/common/smallrye-common-os/1.13.2/smallrye-common-os-1.13.2.jar
[ERROR] urls[66] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-devtools-base-codestarts/2.16.10.Final/quarkus-devtools-base-codestarts-2.16.10.Final.jar
[ERROR] urls[67] = file:/Users/cmoullia/.m2/repository/io/quarkus/quarkus-devtools-codestarts/2.16.10.Final/quarkus-devtools-codestarts-2.16.10.Final.jar
[ERROR] urls[68] = file:/Users/cmoullia/.m2/repository/io/quarkus/qute/qute-core/2.16.10.Final/qute-core-2.16.10.Final.jar
[ERROR] urls[69] = file:/Users/cmoullia/.m2/repository/io/smallrye/reactive/mutiny/1.9.0/mutiny-1.9.0.jar
[ERROR] urls[70] = file:/Users/cmoullia/.m2/repository/org/reactivestreams/reactive-streams/1.0.3/reactive-streams-1.0.3.jar
[ERROR] urls[71] = file:/Users/cmoullia/.m2/repository/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar
[ERROR] urls[72] = file:/Users/cmoullia/.m2/repository/org/apache/commons/commons-compress/1.22/commons-compress-1.22.jar
[ERROR] urls[73] = file:/Users/cmoullia/.m2/repository/io/smallrye/common/smallrye-common-version/1.13.2/smallrye-common-version-1.13.2.jar
[ERROR] urls[74] = file:/Users/cmoullia/.m2/repository/io/smallrye/common/smallrye-common-constraint/1.13.2/smallrye-common-constraint-1.13.2.jar
[ERROR] urls[75] = file:/Users/cmoullia/.m2/repository/io/fabric8/maven-model-helper/21/maven-model-helper-21.jar
[ERROR] urls[76] = file:/Users/cmoullia/.m2/repository/org/jdom/jdom/1.1.3/jdom-1.1.3.jar
[ERROR] urls[77] = file:/Users/cmoullia/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.14.2/jackson-dataformat-yaml-2.14.2.jar
[ERROR] urls[78] = file:/Users/cmoullia/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar
[ERROR] urls[79] = file:/Users/cmoullia/.m2/repository/org/codehaus/plexus/plexus-utils/3.3.0/plexus-utils-3.3.0.jar
[ERROR] urls[80] = file:/Users/cmoullia/.m2/repository/jakarta/inject/jakarta.inject-api/1.0/jakarta.inject-api-1.0.jar
[ERROR] urls[81] = file:/Users/cmoullia/.m2/repository/jakarta/enterprise/jakarta.enterprise.cdi-api/2.0.2/jakarta.enterprise.cdi-api-2.0.2.jar
[ERROR] urls[82] = file:/Users/cmoullia/.m2/repository/jakarta/el/jakarta.el-api/3.0.3/jakarta.el-api-3.0.3.jar
[ERROR] urls[83] = file:/Users/cmoullia/.m2/repository/jakarta/interceptor/jakarta.interceptor-api/1.2.5/jakarta.interceptor-api-1.2.5.jar
[ERROR] urls[84] = file:/Users/cmoullia/.m2/repository/org/apache/maven/maven-builder-support/3.8.6/maven-builder-support-3.8.6.jar
[ERROR] urls[85] = file:/Users/cmoullia/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.3.4/maven-shared-utils-3.3.4.jar
[ERROR] urls[86] = file:/Users/cmoullia/.m2/repository/com/google/inject/guice/4.2.2/guice-4.2.2-no_aop.jar
[ERROR] urls[87] = file:/Users/cmoullia/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[ERROR] urls[88] = file:/Users/cmoullia/.m2/repository/com/google/guava/guava/31.1-jre/guava-31.1-jre.jar
[ERROR] urls[89] = file:/Users/cmoullia/.m2/repository/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
[ERROR] urls[90] = file:/Users/cmoullia/.m2/repository/com/google/errorprone/error_prone_annotations/2.17.0/error_prone_annotations-2.17.0.jar
[ERROR] urls[91] = file:/Users/cmoullia/.m2/repository/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar
[ERROR] urls[92] = file:/Users/cmoullia/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.26/plexus-interpolation-1.26.jar
[ERROR] urls[93] = file:/Users/cmoullia/.m2/repository/org/codehaus/plexus/plexus-component-annotations/2.1.0/plexus-component-annotations-2.1.0.jar
[ERROR] urls[94] = file:/Users/cmoullia/.m2/repository/org/freemarker/freemarker/2.3.31/freemarker-2.3.31.jar
[ERROR] urls[95] = file:/Users/cmoullia/.m2/repository/org/glassfish/jakarta.json/1.1.6/jakarta.json-1.1.6.jar
[ERROR] urls[96] = file:/Users/cmoullia/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.14.2/jackson-databind-2.14.2.jar
[ERROR] urls[97] = file:/Users/cmoullia/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.14.2/jackson-annotations-2.14.2.jar
[ERROR] urls[98] = file:/Users/cmoullia/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.14.2/jackson-core-2.14.2.jar
[ERROR] urls[99] = file:/Users/cmoullia/.m2/repository/org/twdata/maven/mojo-executor/2.3.1/mojo-executor-2.3.1.jar
[ERROR] urls[100] = file:/Users/cmoullia/.m2/repository/org/jboss/slf4j/slf4j-jboss-logmanager/1.2.0.Final/slf4j-jboss-logmanager-1.2.0.Final.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------
[ERROR] : org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory
[ERROR] -> [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/PluginContainerException
ERROR: something went wrong during command "create"
❌ ERROR: creating Quarkus SonataFlow project exit status 1
Error: exit status 1
Usage:
  kn workflow quarkus create [flags]

Examples:

        # Create a project in the local directory
        # By default the project is named "new-project"
        {{.Name}} create

        # Create a project with an specific name
        {{.Name}} create --name myproject

        # Create a project with additional extensions
        # You can add multiple extensions by separating them with a comma
        {{.Name}} create --extensions kogito-addons-quarkus-persistence-postgresql,quarkus-core

Flags:
  -e, --extension string                   On Quarkus projects, setup project custom Maven extensions, separated with a comma.
  -h, --help                               help for create
  -n, --name string                        Project name created in the current directory. (default "new-project")
  -G, --quarkus-platform-group-id string   On Quarkus projects, setup project group id. (default "io.quarkus.platform")
  -V, --quarkus-version string             On Quarkus projects, setup the project version. (default "2.16.10.Final")

exit status 1
Error: exit status 1

and kn version is:

kn version
Version:      v1.13.0
Build Date:   2024-01-24 16:48:59
Git Revision: 543522a3
Supported APIs:
* Serving
  - serving.knative.dev/v1 (knative-serving v1.13.0)
* Eventing
  - sources.knative.dev/v1 (knative-eventing v1.13.0)
  - eventing.knative.dev/v1 (knative-eventing v1.13.0)
cmoulliard commented 8 months ago

FYI. That fails too using the quarkus client

quarkus create app \
    -x=kogito-quarkus-serverless-workflow \
    -x=quarkus-resteasy-jackson \
    -x=quarkus-smallrye-openapi \
    --no-code \
    org.acme:serverless-workflow-hello-world:1.0.0-SNAPSHOT
Looking for the newly published extensions in registry.quarkus.io
[ERROR] ❗  Cannot find a dependency matching 'kogito-quarkus-serverless-workflow', maybe a typo?
[ERROR] ❗  Unable to create project: Failed to create project because of invalid extensions
LuboTerifaj commented 7 months ago

Hello @ljmotta , I believe this issue was not related to OS. However, you should be able to reproduce the issue on Fedora, or MacOS. The latest SonataFlow plug-in for Knative CLI at the time of reporting can be used to reproduce the issue: v0.32.0.