github / github/codeql

Can't get it work with maven project

Ouverte
#7,157 7 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
question
Langage dominant
CodeQL
Étoiles
10.1k
Forks
2.1k
Merge moyen
2 j 15 h
PR mergées (30 j)
141

Description

### Problems

I'm trying to build codeql with Webgoat. mvn build succeed, but no source code detected

### Steps to reproduct

1. git clone https://github.com/WebGoat/WebGoat.git
2. codeql database create java-database -l=java -c="mvn package -DskipTests=true"

Results

```
Finalizing database at /tmp/WebGoat/java-database.
No source code was seen and extracted to /tmp/WebGoat/java-database.
This can occur if the specified build commands failed to compile or process any code.
- Confirm that there is some source code for the specified language in the project.
- For codebases written in Go, JavaScript, TypeScript, and Python, do not specify
an explicit --command.
- For other languages, the --command must specify a "clean" build which compiles
all the source code files without reusing existing build artefacts.
```

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.