Gitlab-CI, Maven and Java 10: build always fail - cannot find symbol

1.8k views Asked by At

You can check the full project here: https://gitlab.com/tyvain/parcoursup

Build history here: https://gitlab.com/tyvain/parcoursup/pipelines

Since a week gitlab-ci doesn't build anymore. It doesn't look like a code problem, but more a 'path' problem:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project importparcoursup: Compilation failure: Compilation failure: 
[ERROR] /builds/tyvain/parcoursup/src/main/java/nc/unc/importparcoursup/view/AdmisMainView.java:[9,55] cannot find symbol
[ERROR]   symbol:   class AdmisRejetRepository
[ERROR]   location: package nc.unc.importparcoursup.dao.admisDAO.repository
[ERROR] /builds/tyvain/parcoursup/src/main/java/nc/unc/importparcoursup/view/components/InformationComponent.java:[7,55] cannot find symbol
[ERROR]   symbol:   class AdmisRejetRepository
[ERROR]   location: package nc.unc.importparcoursup.dao.admisDAO.repository
[ERROR] /builds/tyvain/parcoursup/src/main/java/nc/unc/importparcoursup/view/AdmisMainView.java:[30,37] cannot find symbol
[ERROR]   symbol:   class AdmisRejetRepository
[...]

The build works locally (on windows).

I tried to upgrade the docker image and tried to look in history what could be wrong. But so far I have no idea why it fails.

1

There are 1 answers

1
wirnse On BEST ANSWER

The problems started with commit and the corrisponding build failed

When i check your files at https://gitlab.com/tyvain/parcoursup/find_file/master there is no PreCandidature or AdmisRejetRepository

Maybe you just forgot to add the files to git? Maybe they are ignored?