OpenAPITools / OpenAPITools/openapi-generator
Java Play-framework server is using a library that is not available anymore (com.typesafe.play/sbt-plugin/2.8.3)
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Unable to deploy Java Play-framework server since it is using a library that is not available in maven anymore. Do you have any suggestion how to bypass this problem?
Here is a problematic library:
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.3")
in a generated file https://github.com/broadinstitute/molecular-data-provider/blob/molepro-code-gen/MoleProAPI/java-play-framework-server/project/plugins.sbt
openapi-generator version
java -jar ../../../openapi-generator/openapi-generator-cli-7.4.0.jar generate -i molecular_data_provider.yml -g java-play-framework -o java-play-framework-server --additional-properties=hideGenerationTimestamp=true
OpenAPI declaration file content or url
Generation Details
#13 24.98 [info] loading settings for project base-build from plugins.sbt ...
#13 25.47 [info] loading project definition from /usr/src/base/project
#13 32.27 [warn]
#13 32.27 [warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
#13 32.29 [warn] com.typesafe.play:sbt-plugin:2.8.3 (sbtVersion=1.0, scalaVersion=2.12)
#13 32.29 [warn]
#13 32.29 [warn] Note: Unresolved dependencies path:
#13 32.43 [error] sbt.librarymanagement.ResolveException: Error downloading com.typesafe.play:sbt-plugin;sbtVersion=1.0;scalaVersion=2.12:2.8.3
#13 32.43 [error] Not found
#13 32.43 [error] Not found
#13 32.43 [error] not found: https://repo1.maven.org/maven2/com/typesafe/play/sbt-plugin_2.12_1.0/2.8.3/sbt-plugin-2.8.3.pom
#13 32.43 [error] not found: /root/.ivy2/local/com.typesafe.play/sbt-plugin/scala_2.12/sbt_1.0/2.8.3/ivys/ivy.xml
Steps to reproduce
Related issues/PRs
Suggest a fix
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 the generated java-play-framework project/plugins.sbt and reproduce the issue using the openapi-generator CLI command and the supplied OpenAPI declaration. Trace the generator template responsible for that file and determine the supported dependency configuration. Done means the generated server can resolve its SBT dependencies and deploy without the reported Maven resolution error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100