swagger-api / swagger-api/swagger-codegen

swagger-codegen-maven plugin templateDirectory fails reading classpath:/ dirs

Open
#2,636 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Swagger Codegen Maven Plugin
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.