swagger-api / swagger-api/swagger-codegen
[Maven plugin] Cannot build project generated by maven plugin (dateLibrary ignored)
Open
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
Using the maven plugin to generate sources yields a series of errors during compile related to Jodatime dependency missing:
[ERROR] /.../JSON.java:[35,21] package org.joda.time does not exist
[ERROR] /.../JSON.java:[36,21] package org.joda.time does not exist
[ERROR] /.../JSON.java:[37,28] package org.joda.time.format does not exist
[ERROR] /.../JSON.java:[38,28] package org.joda.time.format does not exist
My plugin execution is configured as follow:
<configOptions>
<dateLibrary>threetenbp</dateLibrary>
</configOptions>
so Jodatime shouldn't be used at all.
Swagger-codegen version
1.2.15
swagger-codegen-maven-plugin version
2.2.3
Command line used for generation
mvn clean package
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
Reproduce the issue with the Maven plugin configuration shown and run mvn clean package. Inspect the generated JSON.java imports and the plugin's dateLibrary handling; done means a project generated with threetenbp compiles without requiring Joda-Time.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100