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

Running congen on Windows throws error due to too long CLASSPATH #3808

Open
kristofferjalen opened this issue Dec 16, 2024 · 1 comment
Open
Labels
help wanted kind:bug Something isn't working

Comments

@kristofferjalen
Copy link

We have successfully built congen locally, but, when running congen.bat, setting CLASSPATH throws an error:

The input line is too long.

The reason is the variable is 10 000 characters long.

set CLASSPATH="%BASEDIR%"\etc;"%REPO%"\info\picocli\picocli\4.7.6\picocli-4.7.6.jar;"%REPO%"\io\camunda\connector\element-template-generator-core\8.7.0-SNAPSHOT\element-template-generator-core-8.7.0-SNAPSHOT.jar;"%REPO%"\io\camunda\connector\connector-core\8.7.0-SNAPSHOT\connector-core-8.7.0-SNAPSHOT.jar;"%REPO%"\io\camunda\connector\jackson-datatype-document\8.7.0-SNAPSHOT\jackson-datatype-document-8.7.0-SNAPSHOT.jar;"%REPO%"\io\camunda\connector\connector-document\8.7.0-SNAPSHOT\connector-document-8.7.0-SNAPSHOT.jar;"%REPO%"\io\camunda\zeebe-client-java\8.7.0-alpha2\zeebe-client-java-8.7.0-alpha2.jar;"%REPO%"\io\camunda\zeebe-bpmn-model\8.7.0-alpha2\zeebe-bpmn-model-8.7.0-alpha2.jar;"%REPO%"\org\camunda\bpm\model\camunda-xml-model\7.22.0\camunda-xml-model-7.22.0.jar;"%REPO%"\io\camunda\zeebe-gateway-protocol-impl\8.7.0-alpha2\zeebe-gateway-protocol-impl-8.7.0-alpha2.jar;"%REPO%"\io\grpc\grpc-protobuf\1.68.1\grpc-protobuf-1.68.1.jar;"%REPO%"\com\google\api\grpc\proto-google-common-protos\2.49.0\proto-google-common-protos-2.49.0.jar;"%REPO%"\io\grpc\grpc-protobuf-lite\1.68.1\grpc-protobuf-lite-1.68.1.jar;"%REPO%"\io\grpc\grpc-stub\1.68.1\grpc-stub-1.68.1.jar;"%REPO%"\io\grpc\grpc-core\1.68.1\grpc-core-1.68.1.jar;"%REPO%"\com\google\android\annotations\4.1.1.4\annotations-4.1.1.4.jar;"%REPO%"\org\codehaus\mojo\animal-sniffer-annotations\1.24\animal-sniffer-annotations-1.24.jar;"%REPO%"\io\perfmark\perfmark-api\0.27.0\perfmark-api-0.27.0.jar;"%REPO%"\io\grpc\grpc-api\1.68.1\grpc-api-1.68.1.jar;"%REPO%"\io\grpc\grpc-netty\1.68.1\grpc-netty-1.68.1.jar;"%REPO%"\io\netty\netty-codec-http2\4.1.115.Final\netty-codec-http2-4.1.115.Final.jar;"%REPO%"\io\netty\netty-codec-http\4.1.115.Final\netty-codec-http-4.1.115.Final.jar;"%REPO%"\io\netty\netty-handler-proxy\4.1.115.Final\netty-handler-proxy-4.1.115.Final.jar;"%REPO%"\io\netty\netty-codec-socks\4.1.115.Final\netty-codec-socks-4.1.115.Final.jar;"%REPO%"\io\netty\netty-transport-native-unix-common\4.1.115.Final\netty-transport-native-unix-common-4.1.115.Final.jar;"%REPO%"\io\grpc\grpc-util\1.68.1\grpc-util-1.68.1.jar;"%REPO%"\io\netty\netty-tcnative-boringssl-static\2.0.69.Final\netty-tcnative-boringssl-static-2.0.69.Final.jar;"%REPO%"\io\netty\netty-tcnative-classes\2.0.69.Final\netty-tcnative-classes-2.0.69.Final.jar;"%REPO%"\io\netty\netty-tcnative-boringssl-static\2.0.69.Final\netty-tcnative-boringssl-static-2.0.69.Final-linux-x86_64.jar;"%REPO%"\io\netty\netty-tcnative-boringssl-static\2.0.69.Final\netty-tcnative-boringssl-static-2.0.69.Final-linux-aarch_64.jar;"%REPO%"\io\netty\netty-tcnative-boringssl-static\2.0.69.Final\netty-tcnative-boringssl-static-2.0.69.Final-osx-x86_64.jar;"%REPO%"\io\netty\netty-tcnative-boringssl-static\2.0.69.Final\netty-tcnative-boringssl-static-2.0.69.Final-osx-aarch_64.jar;"%REPO%"\io\netty\netty-tcnative-boringssl-static\2.0.69.Final\netty-tcnative-boringssl-static-2.0.69.Final-windows-x86_64.jar;"%REPO%"\io\netty\netty-handler\4.1.115.Final\netty-handler-4.1.115.Final.jar;"%REPO%"\io\netty\netty-resolver\4.1.115.Final\netty-resolver-4.1.115.Final.jar;"%REPO%"\io\netty\netty-buffer\4.1.115.Final\netty-buffer-4.1.115.Final.jar;"%REPO%"\io\netty\netty-transport\4.1.115.Final\netty-transport-4.1.115.Final.jar;"%REPO%"\io\netty\netty-codec\4.1.115.Final\netty-codec-4.1.115.Final.jar;"%REPO%"\io\netty\netty-common\4.1.115.Final\netty-common-4.1.115.Final.jar;"%REPO%"\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.18.2\jackson-datatype-jdk8-2.18.2.jar;"%REPO%"\jakarta\validation\jakarta.validation-api\3.1.0\jakarta.validation-api-3.1.0.jar;"%REPO%"\org\apache\commons\commons-lang3\3.17.0\commons-lang3-3.17.0.jar;"%REPO%"\io\pebbletemplates\pebble\3.2.2\pebble-3.2.2.jar;"%REPO%"\org\unbescape\unbescape\1.1.6.RELEASE\unbescape-1.1.6.RELEASE.jar;"%REPO%"\net\steppschuh\markdowngenerator\markdowngenerator\1.3.1.1\markdowngenerator-1.3.1.1.jar;"%REPO%"\uk\co\jemos\podam\podam\8.0.2.RELEASE\podam-8.0.2.RELEASE.jar;"%REPO%"\io\camunda\connector\openapi-parser\8.7.0-SNAPSHOT\openapi-parser-8.7.0-SNAPSHOT.jar;"%REPO%"\io\camunda\connector\element-template-generator-http-dsl\8.7.0-SNAPSHOT\element-template-generator-http-dsl-8.7.0-SNAPSHOT.jar;"%REPO%"\io\camunda\connector\connector-http-base\8.7.0-SNAPSHOT\connector-http-base-8.7.0-SNAPSHOT.jar;"%REPO%"\com\google\auth\google-auth-library-oauth2-http\1.30.1\google-auth-library-oauth2-http-1.30.1.jar;"%REPO%"\com\google\auto\value\auto-value-annotations\1.11.0\auto-value-annotations-1.11.0.jar;"%REPO%"\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;"%REPO%"\com\google\auth\google-auth-library-credentials\1.30.0\google-auth-library-credentials-1.30.0.jar;"%REPO%"\com\google\http-client\google-http-client\1.45.0\google-http-client-1.45.0.jar;"%REPO%"\org\apache\httpcomponents\httpcore\4.4.16\httpcore-4.4.16.jar;"%REPO%"\io\grpc\grpc-context\1.68.1\grpc-context-1.68.1.jar;"%REPO%"\io\opencensus\opencensus-api\0.31.1\opencensus-api-0.31.1.jar;"%REPO%"\io\opencensus\opencensus-contrib-http-util\0.31.1\opencensus-contrib-http-util-0.31.1.jar;"%REPO%"\com\google\http-client\google-http-client-gson\1.45.0\google-http-client-gson-1.45.0.jar;"%REPO%"\com\google\guava\guava\33.3.1-jre\guava-33.3.1-jre.jar;"%REPO%"\com\google\guava\failureaccess\1.0.2\failureaccess-1.0.2.jar;"%REPO%"\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;"%REPO%"\org\checkerframework\checker-qual\3.43.0\checker-qual-3.43.0.jar;"%REPO%"\com\google\errorprone\error_prone_annotations\2.36.0\error_prone_annotations-2.36.0.jar;"%REPO%"\org\apache\httpcomponents\core5\httpcore5\5.3.1\httpcore5-5.3.1.jar;"%REPO%"\org\apache\httpcomponents\client5\httpclient5\5.4.1\httpclient5-5.4.1.jar;"%REPO%"\org\apache\httpcomponents\core5\httpcore5-h2\5.3.1\httpcore5-h2-5.3.1.jar;"%REPO%"\org\apache\commons\commons-text\1.13.0\commons-text-1.13.0.jar;"%REPO%"\org\slf4j\jcl-over-slf4j\2.0.16\jcl-over-slf4j-2.0.16.jar;"%REPO%"\com\google\protobuf\protobuf-java-util\4.29.1\protobuf-java-util-4.29.1.jar;"%REPO%"\com\google\protobuf\protobuf-java\3.25.5\protobuf-java-3.25.5.jar;"%REPO%"\com\google\code\gson\gson\2.11.0\gson-2.11.0.jar;"%REPO%"\com\google\j2objc\j2objc-annotations\2.8\j2objc-annotations-2.8.jar;"%REPO%"\io\swagger\parser\v3\swagger-parser\2.1.24\swagger-parser-2.1.24.jar;"%REPO%"\io\swagger\parser\v3\swagger-parser-v2-converter\2.1.24\swagger-parser-v2-converter-2.1.24.jar;"%REPO%"\io\swagger\swagger-core\1.6.14\swagger-core-1.6.14.jar;"%REPO%"\jakarta\xml\bind\jakarta.xml.bind-api\4.0.2\jakarta.xml.bind-api-4.0.2.jar;"%REPO%"\jakarta\activation\jakarta.activation-api\2.1.3\jakarta.activation-api-2.1.3.jar;"%REPO%"\io\swagger\swagger-models\1.6.14\swagger-models-1.6.14.jar;"%REPO%"\io\swagger\swagger-annotations\1.6.14\swagger-annotations-1.6.14.jar;"%REPO%"\io\swagger\swagger-parser\1.0.72\swagger-parser-1.0.72.jar;"%REPO%"\io\swagger\swagger-parser-safe-url-resolver\1.0.72\swagger-parser-safe-url-resolver-1.0.72.jar;"%REPO%"\io\swagger\swagger-compat-spec-parser\1.0.72\swagger-compat-spec-parser-1.0.72.jar;"%REPO%"\com\github\java-json-tools\json-schema-validator\2.2.14\json-schema-validator-2.2.14.jar;"%REPO%"\com\github\java-json-tools\jackson-coreutils-equivalence\1.0\jackson-coreutils-equivalence-1.0.jar;"%REPO%"\com\github\java-json-tools\json-schema-core\1.2.14\json-schema-core-1.2.14.jar;"%REPO%"\com\github\java-json-tools\uri-template\0.10\uri-template-0.10.jar;"%REPO%"\org\mozilla\rhino\1.7.7.2\rhino-1.7.7.2.jar;"%REPO%"\joda-time\joda-time\2.10.5\joda-time-2.10.5.jar;"%REPO%"\com\googlecode\libphonenumber\libphonenumber\8.11.1\libphonenumber-8.11.1.jar;"%REPO%"\net\sf\jopt-simple\jopt-simple\5.0.4\jopt-simple-5.0.4.jar;"%REPO%"\com\github\java-json-tools\json-patch\1.13\json-patch-1.13.jar;"%REPO%"\com\github\java-json-tools\msg-simple\1.2\msg-simple-1.2.jar;"%REPO%"\com\github\java-json-tools\btf\1.3\btf-1.3.jar;"%REPO%"\com\github\java-json-tools\jackson-coreutils\2.0\jackson-coreutils-2.0.jar;"%REPO%"\org\apache\httpcomponents\httpclient\4.5.14\httpclient-4.5.14.jar;"%REPO%"\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;"%REPO%"\commons-codec\commons-codec\1.17.1\commons-codec-1.17.1.jar;"%REPO%"\io\swagger\core\v3\swagger-models\2.2.26\swagger-models-2.2.26.jar;"%REPO%"\io\swagger\parser\v3\swagger-parser-core\2.1.24\swagger-parser-core-2.1.24.jar;"%REPO%"\io\swagger\parser\v3\swagger-parser-v3\2.1.24\swagger-parser-v3-2.1.24.jar;"%REPO%"\io\swagger\core\v3\swagger-core\2.2.26\swagger-core-2.2.26.jar;"%REPO%"\io\swagger\core\v3\swagger-annotations\2.2.26\swagger-annotations-2.2.26.jar;"%REPO%"\io\swagger\parser\v3\swagger-parser-safe-url-resolver\2.1.24\swagger-parser-safe-url-resolver-2.1.24.jar;"%REPO%"\commons-io\commons-io\2.17.0\commons-io-2.17.0.jar;"%REPO%"\io\camunda\connector\postman-collections-parser\8.7.0-SNAPSHOT\postman-collections-parser-8.7.0-SNAPSHOT.jar;"%REPO%"\io\camunda\connector\jackson-datatype-feel\8.7.0-SNAPSHOT\jackson-datatype-feel-8.7.0-SNAPSHOT.jar;"%REPO%"\io\camunda\connector\connector-feel-wrapper\8.7.0-SNAPSHOT\connector-feel-wrapper-8.7.0-SNAPSHOT.jar;"%REPO%"\org\camunda\feel\feel-engine\1.19.0\feel-engine-1.19.0.jar;"%REPO%"\org\scala-lang\scala-library\2.13.15\scala-library-2.13.15.jar;"%REPO%"\com\lihaoyi\fastparse_2.13\3.1.1\fastparse_2.13-3.1.1.jar;"%REPO%"\com\lihaoyi\sourcecode_2.13\0.4.0\sourcecode_2.13-0.4.0.jar;"%REPO%"\com\lihaoyi\geny_2.13\1.1.0\geny_2.13-1.1.0.jar;"%REPO%"\com\fasterxml\uuid\java-uuid-generator\5.1.0\java-uuid-generator-5.1.0.jar;"%REPO%"\com\fasterxml\jackson\module\jackson-module-scala_3\2.18.2\jackson-module-scala_3-2.18.2.jar;"%REPO%"\org\scala-lang\scala3-library_3\3.3.4\scala3-library_3-3.3.4.jar;"%REPO%"\com\thoughtworks\paranamer\paranamer\2.8\paranamer-2.8.jar;"%REPO%"\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.18.2\jackson-datatype-jsr310-2.18.2.jar;"%REPO%"\com\fasterxml\jackson\dataformat\jackson-dataformat-yaml\2.18.2\jackson-dataformat-yaml-2.18.2.jar;"%REPO%"\com\fasterxml\jackson\core\jackson-databind\2.18.2\jackson-databind-2.18.2.jar;"%REPO%"\com\fasterxml\jackson\core\jackson-annotations\2.18.2\jackson-annotations-2.18.2.jar;"%REPO%"\org\yaml\snakeyaml\2.3\snakeyaml-2.3.jar;"%REPO%"\com\fasterxml\jackson\core\jackson-core\2.18.2\jackson-core-2.18.2.jar;"%REPO%"\org\slf4j\slf4j-nop\2.0.16\slf4j-nop-2.0.16.jar;"%REPO%"\org\slf4j\slf4j-api\2.0.16\slf4j-api-2.0.16.jar;"%REPO%"\io\camunda\connector\congen-cli\8.7.0-SNAPSHOT\congen-cli-8.7.0-SNAPSHOT.jar

Any idea how to solve that?

@kristofferjalen kristofferjalen added the kind:bug Something isn't working label Dec 16, 2024
@sbuettner
Copy link
Contributor

@kristofferjalen It looks like one option would be to create a single shaded jar that contains all dependencies. We will look into this but cant commit to a timeline for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted kind:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants