swagger-api / swagger-api/swagger-codegen
swagger-codegen-maven plugin templateDirectory fails reading classpath:/ dirs
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
it seems i am not able to specify a classpath:/ dir to the template option for the swagger codegen maven plugin.
doing so just results in it trying to find the actual path, aka not resolving it.
Failed to execute goal io.swagger:swagger-codegen-maven-plugin:2.1.6:generate (default) on project testproject: Execution default of goal io.swagger:swagger-codegen-maven-plugin:2.1.6:generate failed: Illegal char <:> at index 76: C testproject\classpath:\JavaSpringMVC
(the index isn't accurate, because i truncated the path)
excerpt configuration for plugin:
classpath:/JavaSpringMVC/
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 swagger-codegen-maven-plugin generate goal and reproduce the failure using templateDirectory set to classpath:/JavaSpringMVC/. Trace how that option is resolved, then verify that the classpath directory is accepted without the reported Illegal char error.
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
- 30/100