swagger-api / swagger-api/swagger-codegen
Installing via Docker on Mac: Freezes at swagger-codegen tests
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
On a Mac, I installed Java 1.7 and am using Docker to install.
The install freezes at the test stage for the swagger-codegen stage.
Any ideas?
Thanks,
Larry
./run-in-docker.sh mvn package
- docker run -it -w /gen -v /Users/larry.kluger/www/swagger-codegen:/gen -v /Users/larry.kluger/.m2/repository:/root/.m2/repository maven:3-jdk-7 mvn package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.swagger:swagger-codegen🫙2.1.5-SNAPSHOT
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-jar-plugin @ io.swagger:swagger-codegen:[unknown-version], /gen/modules/swagger-codegen/pom.xml, line 106, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] swagger-codegen-project
[INFO] swagger-codegen (core library)
[INFO] swagger-codegen (executable)
[INFO] swagger-codegen (maven-plugin)
[INFO] swagger-generator
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building swagger-codegen-project 2.1.5-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-maven) @ swagger-codegen-project ---
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (test-testng) @ swagger-codegen-project ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (default) @ swagger-codegen-project ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building swagger-codegen (core library) 2.1.5-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-maven) @ swagger-codegen ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ swagger-codegen ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 390 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ swagger-codegen ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 64 source files to /gen/modules/swagger-codegen/target/classes
[WARNING] /gen/modules/swagger-codegen/src/main/java/io/swagger/codegen/InlineModelResolver.java:[3,52] com.sun.org.apache.xpath.internal.operations.Mod is internal proprietary API and may be removed in a future release
[WARNING] /gen/modules/swagger-codegen/src/main/java/io/swagger/codegen/InlineModelResolver.java:[3,52] com.sun.org.apache.xpath.internal.operations.Mod is internal proprietary API and may be removed in a future release
[WARNING] /gen/modules/swagger-codegen/src/main/java/io/swagger/codegen/InlineModelResolver.java:[3,52] com.sun.org.apache.xpath.internal.operations.Mod is internal proprietary API and may be removed in a future release
[WARNING] /gen/modules/swagger-codegen/src/main/java/io/swagger/codegen/auth/AuthParser.java: /gen/modules/swagger-codegen/src/main/java/io/swagger/codegen/auth/AuthParser.java uses or overrides a deprecated API.
[WARNING] /gen/modules/swagger-codegen/src/main/java/io/swagger/codegen/auth/AuthParser.java: Recompile with -Xlint:deprecation for details.
[WARNING] /gen/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java: Some input files use unchecked or unsafe operations.
[WARNING] /gen/modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ swagger-codegen ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 17 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ swagger-codegen ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 84 source files to /gen/modules/swagger-codegen/target/test-classes
[WARNING] /gen/modules/swagger-codegen/src/test/java/io/swagger/codegen/ClientAuthInputTest.java: /gen/modules/swagger-codegen/src/test/java/io/swagger/codegen/ClientAuthInputTest.java uses or overrides a deprecated API.
[WARNING] /gen/modules/swagger-codegen/src/test/java/io/swagger/codegen/ClientAuthInputTest.java: Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ swagger-codegen ---
[INFO] Surefire report directory: /gen/modules/swagger-codegen/target/surefire-reports
T E S T S
[No output for over 10 minutes]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with ./run-in-docker.sh and reproduce the reported mvn package run using the Maven JDK 7 container. Inspect the swagger-codegen Surefire tests and reports after the build stops at the test stage, then determine which test or environment condition causes the freeze. Done means the Docker build completes reliably on Mac or documents a confirmed blocker and workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, java
- Domain
- build-system, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100