swagger-api / swagger-api/swagger-codegen

building the package: Generate.java:[125,119] cannot find symbol [ERROR] symbol: variable IGNORE_FILE_OVERRIDE_DESC

Open
#4,821 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

I cloned the master and made a

mvn -f modules/swagger-codegen-cli/pom.xml clean package -Dmaven.test.skip=true
and I got the following error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project swagger-codegen-cli: Compilation failure
[ERROR] /home/joergi/dev/projects/rest_api_blog/swagger-codegen/modules/swagger-codegen-cli/src/main/java/io/swagger/codegen/cmd/Generate.java:[125,119] cannot find symbol
[ERROR] symbol: variable IGNORE_FILE_OVERRIDE_DESC
[ERROR] location: class io.swagger.codegen.CodegenConstants
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Got this error with Java7 and Java8

Swagger-codegen version

Building swagger-codegen (executable) 2.2.2-SNAPSHOT

Command line used for generation
git clone https://github.com/swagger-api/swagger-codegen.git 
mvn -f swagger-codegen/modules/swagger-codegen-cli/pom.xml clean package -Dmaven.test.skip=true
$ mvn -version
Apache Maven 3.3.3
Maven home: /usr/share/maven
Java version: 1.8.0_102, vendor: Oracle Corporation
Java home: /home/joergi/dev/java/jdk1.8.0_102/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux", version: "4.2.0-42-generic", arch: "amd64", family: "unix"

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 by reproducing the reported Maven command for modules/swagger-codegen-cli, then inspect Generate.java at line 125 and the referenced CodegenConstants class. Done means the clean package command compiles successfully without the IGNORE_FILE_OVERRIDE_DESC error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.