Open nathany-copia opened 3 years ago
./run-in-docker.sh mvn package
does work
@anmlnath thanks for reporting the issue. Can you please try the following to skip javadoc as a workaround?
mvn clean package -Dmaven.javadoc.skip=true
Thanks for the response.
Running mvn clean package -Dmaven.javadoc.skip=true
reports a tonne of errors in the form:
java.lang.instrument.IllegalClassFormatException: Error while instrumenting org/openapitools/codegen/languages/PythonClientCodegen$MockitoMock$1700579199$auxiliary$BQ4PxCPc.
at org.jacoco.agent.rt.internal_43f5073.CoverageTransformer.transform(CoverageTransformer.java:94)
Since the Docker package works, I assume this is something with my environment, like the Java JDK version?
Right, we've not yet tested this project with JDK 16. Please use ./run-in-docker.sh mvn package
for the time being.
Same experience here. Skipping JavaDoc doesn't solve it for me either. Java and Maven version info:
java version "1.8.0_341" Java(TM) SE Runtime Environment (build 1.8.0_341-b10) Java HotSpot(TM) 64-Bit Server VM (build 25.341-b10, mixed mode)
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63) Maven home: /usr/local/Cellar/maven/3.8.6/libexec Java version: 18.0.2.1, vendor: Homebrew, runtime: /usr/local/Cellar/openjdk/18.0.2.1/libexec/openjdk.jdk/Contents/Home
The Docker option doesn't work, because although I have Docker installed, the script mentioned above fails with:
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Aaaand this turns out to be a big PITA on Macs, which require a bunch of other stuff to run the Docker daemon, despite the fact that you can type "docker" at the command line and it spits out a bunch of info. Thus it would be really great to have the core problem fixed.
Bug Report Checklist
Description
I would like to contribute to openapi-generator's language support, but I'm not very familiar with Java, and the build is failing on my system.
openapi-generator version
master (2e85ccdec8c3304e42c3434ef6da54a637a13e1a)
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
mvn clean install -e
Related issues/PRs
9804 a different build error
Suggest a fix