jenkins-x / jx

Jenkins X provides automated CI+CD for Kubernetes with Preview Environments on Pull Requests using Cloud Native pipelines from Tekton
https://jenkins-x.io/
Apache License 2.0
4.54k stars 784 forks source link

Error executing Maven #8648

Closed pkranjan001 closed 1 month ago

pkranjan001 commented 5 months ago

Running as SYSTEM Building in workspace C:\ProgramData\Jenkins.jenkins\workspace\multi-poly-sapiCompile The recommended git tool is: NONE using credential b20caf94-ed44-4461-a2fc-e06bb9d83f2a

C:\Program Files\Git\cmd\git.exe rev-parse --resolve-git-dir C:\ProgramData\Jenkins.jenkins\workspace\multi-poly-sapiCompile.git # timeout=10 Fetching changes from the remote Git repository C:\Program Files\Git\cmd\git.exe config remote.origin.url https://github.com/pkranjan001/multi-poly-sapi.git # timeout=10 Fetching upstream changes from https://github.com/pkranjan001/multi-poly-sapi.git C:\Program Files\Git\cmd\git.exe --version # timeout=10 git --version # 'git version 2.43.0.windows.1' using GIT_ASKPASS to set credentials C:\Program Files\Git\cmd\git.exe fetch --tags --force --progress -- https://github.com/pkranjan001/multi-poly-sapi.git +refs/heads/:refs/remotes/origin/ # timeout=10 C:\Program Files\Git\cmd\git.exe rev-parse "refs/remotes/origin/main^{commit}" # timeout=10 Checking out Revision 523cecdd49dd4ed6fdbafb1c1d7c8cd4097743df (refs/remotes/origin/main) C:\Program Files\Git\cmd\git.exe config core.sparsecheckout # timeout=10 C:\Program Files\Git\cmd\git.exe checkout -f 523cecdd49dd4ed6fdbafb1c1d7c8cd4097743df # timeout=10 Commit message: "Merge pull request #1 from pkranjan001/feature" C:\Program Files\Git\cmd\git.exe rev-list --no-walk 523cecdd49dd4ed6fdbafb1c1d7c8cd4097743df # timeout=10 [multi-poly-sapiCompile] $ cmd.exe /C "C:\ProgramData\Jenkins.jenkins\tools\hudson.tasks.Maven_MavenInstallation\M3\bin\mvn.cmd -s C:\apache-maven-3.8.4\bin\mvn -gs C:\apache-maven-3.8.4\bin\mvn Compile && exit %%ERRORLEVEL%%" [ERROR] Error executing Maven. [ERROR] 2 problems were encountered while building the effective settings [FATAL] Non-parseable settings C:\apache-maven-3.8.4\bin\mvn: only whitespace content allowed before start tag and not # (position: START_DOCUMENT seen #... @1:1) @ C:\apache-maven-3.8.4\bin\mvn, line 1, column 1 [FATAL] Non-parseable settings C:\apache-maven-3.8.4\bin\mvn: only whitespace content allowed before start tag and not # (position: START_DOCUMENT seen #... @1:1) @ C:\apache-maven-3.8.4\bin\mvn, line 1, column 1

Build step 'Invoke top-level Maven targets' marked build as failure Finished: FAILURE

pkranjan001 commented 5 months ago

How we can resolved this issue