I am trying to get maven setup to work via gitlab.
Any idea from the error log what I am missing?
Thank you
Here is the output
Running with gitlab-runner 13.3.1 (738bbe5a)
on docker-auto-scale z3WU8uu-
Preparing the “docker+machine” executor
Using Docker executor with image maven:3.6.3-jdk-11 …
Pulling docker image maven:3.6.3-jdk-11 …
Using docker image sha256:1485ecabf6f72c5d38d79cc1442809b7ae7a67d0bc846e6bb19f63e3c397c893 for maven:3.6.3-jdk-11 …
Preparing environment
00:05
Running on runner-z3wu8uu–project-21004546-concurrent-0 via runner-z3wu8uu–srm-1599568571-084ce7a1…
Getting source from Git repository
00:06
$ eval "CI_PRE_CLONE_SCRIPT"
Fetching changes...
Initialized empty Git repository in /builds/asmgidev/wolc_cms_api/.git/
Created fresh repository.
Checking out 94045d28 as develop...
Skipping Git submodules setup
Restoring cache
00:01
Checking cache for sonarcloud-check...
FATAL: file does not exist
Failed to extract cache
Executing "step_script" stage of the job script
00:03
mvn verify sonar:sonar
[INFO] Scanning for projects…
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.165 s
[INFO] Finished at: 2020-09-08T12:37:43Z
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/builds/asmgidev/wolc_cms_api). Please verify you invoked Maven from the correct directory. -> [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/MissingProjectException
ERROR: Job failed: exit code 1
Making a little progress. Here is what I am seeing now. Any advice would be appreciated.
[INFO] Scanning for projects...
[23](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L23)[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[24](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L24)[ERROR] Malformed POM /builds/asmgidev/wolc_cms_api/pom.xml: Expected root element 'project' but found 'properties' (position: START_TAG seen <properties>... @1:12) @ /builds/asmgidev/wolc_cms_api/pom.xml, line 1, column 12
[25](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L25)[ERROR] 'modelVersion' is missing. @ line 1, column 12
[26](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L26)[FATAL] 'groupId' is missing. @ line 1, column 12
[27](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L27)[FATAL] 'artifactId' is missing. @ line 1, column 12
[28](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L28)[FATAL] 'version' is missing. @ line 1, column 12
[29](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L29) @
[30](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L30)[ERROR] The build could not read 1 project -> [Help 1]
[31](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L31)[ERROR]
[32](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L32)[ERROR] The project [unknown-group-id]:[unknown-artifact-id]:[unknown-version] (/builds/asmgidev/wolc_cms_api/pom.xml) has 5 errors
[33](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L33)[ERROR] Malformed POM /builds/asmgidev/wolc_cms_api/pom.xml: Expected root element 'project' but found 'properties' (position: START_TAG seen <properties>... @1:12) @ /builds/asmgidev/wolc_cms_api/pom.xml, line 1, column 12 -> [Help 2]
[34](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L34)[ERROR] 'modelVersion' is missing. @ line 1, column 12
[35](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L35)[ERROR] 'groupId' is missing. @ line 1, column 12
[36](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L36)[ERROR] 'artifactId' is missing. @ line 1, column 12
[37](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L37)[ERROR] 'version' is missing. @ line 1, column 12
[38](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L38)[ERROR]
[39](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L39)[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[40](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L40)[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[41](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L41)[ERROR]
[42](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L42)[ERROR] For more information about the errors and possible solutions, please read the following articles:
[43](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L43)[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[44](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L44)[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException
[45](https://gitlab.com/asmgidev/wolc_cms_api/-/jobs/726755668#L45)ERROR: Job failed: exit code 1