Error
2023-12-15T04:15:34.3863280Z ##[section]Starting: Maven
2023-12-15T04:15:34.3877434Z ==============================================================================
2023-12-15T04:15:34.3877597Z Task : Maven
2023-12-15T04:15:34.3877660Z Description : Build, test, and deploy with Apache Maven
2023-12-15T04:15:34.3877760Z Version : 3.231.5
2023-12-15T04:15:34.3877842Z Author : Microsoft Corporation
2023-12-15T04:15:34.3877936Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/maven
2023-12-15T04:15:34.3878052Z ==============================================================================
2023-12-15T04:15:36.9740195Z ##[error]Unhandled: Failed to find the specified JDK version. Please ensure the specified JDK version is installed on the agent and the environment variable 'JAVA_HOME_8_X64' exists and is set to the location of a corresponding JDK or use the [Java Tool Installer](https://go.microsoft.com/fwlink/?linkid=875287) task to install the desired JDK.
2023-12-15T04:15:36.9760865Z ##[error]Error: Failed to find the specified JDK version. Please ensure the specified JDK version is installed on the agent and the environment variable 'JAVA_HOME_8_X64' exists and is set to the location of a corresponding JDK or use the [Java Tool Installer](https://go.microsoft.com/fwlink/?linkid=875287) task to install the desired JDK.
at Object.findJavaHome (/home/rajesh/_work/_tasks/Maven_ac4ee482-65da-4485-a532-7b085873e532/3.231.5/node_modules/azure-pipelines-tasks-java-common/java-common.js:124:23)
at Object.<anonymous> (/home/rajesh/_work/_tasks/Maven_ac4ee482-65da-4485-a532-7b085873e532/3.231.5/maventask.js:110:41)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47
2023-12-15T04:15:36.9771517Z ##[section]Finishing: Maven
2023-12-15T04:17:04.4350371Z ##[section]Starting: Maven
2023-12-15T04:17:04.4363161Z ==============================================================================
2023-12-15T04:17:04.4363322Z Task : Maven
2023-12-15T04:17:04.4363386Z Description : Build, test, and deploy with Apache Maven
2023-12-15T04:17:04.4363487Z Version : 3.231.5
2023-12-15T04:17:04.4363552Z Author : Microsoft Corporation
2023-12-15T04:17:04.4363645Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/maven
2023-12-15T04:17:04.4363764Z ==============================================================================
2023-12-15T04:17:06.8280422Z ##[error]Unhandled: Failed to find the specified JDK version. Please ensure the specified JDK version is installed on the agent and the environment variable 'JAVA_HOME_11_X64' exists and is set to the location of a corresponding JDK or use the [Java Tool Installer](https://go.microsoft.com/fwlink/?linkid=875287) task to install the desired JDK.
2023-12-15T04:17:06.8517850Z ##[error]Error: Failed to find the specified JDK version. Please ensure the specified JDK version is installed on the agent and the environment variable 'JAVA_HOME_11_X64' exists and is set to the location of a corresponding JDK or use the [Java Tool Installer](https://go.microsoft.com/fwlink/?linkid=875287) task to install the desired JDK.
at Object.findJavaHome (/home/rajesh/_work/_tasks/Maven_ac4ee482-65da-4485-a532-7b085873e532/3.231.5/node_modules/azure-pipelines-tasks-java-common/java-common.js:124:23)
at Object.<anonymous> (/home/rajesh/_work/_tasks/Maven_ac4ee482-65da-4485-a532-7b085873e532/3.231.5/maventask.js:110:41)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47
2023-12-15T04:17:06.8939984Z ##[section]Finishing: Maven\
2023-12-15T04:19:14.3677370Z Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar (251 kB at 1.8 MB/s)
2023-12-15T04:19:14.3677732Z [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
2023-12-15T04:19:14.3678044Z [[1;34mINFO[m] [1;31mBUILD FAILURE[m
2023-12-15T04:19:14.3678331Z [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
2023-12-15T04:19:14.3678569Z [[1;34mINFO[m] Total time: 55.563 s
2023-12-15T04:19:14.3678810Z [[1;34mINFO[m] Finished at: 2023-12-15T04:19:14Z
2023-12-15T04:19:14.3679111Z [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
2023-12-15T04:19:14.3683497Z [[1;31mERROR[m] Failed to execute goal [32morg.apache.maven.plugins:maven-deploy-plugin:2.7:deploy[m [1m(default-deploy)[m on project [36myoodle[m: [1;31mDeployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter[m -> [1m[Help 1][m
2023-12-15T04:19:14.3684148Z [[1;31mERROR[m]
2023-12-15T04:19:14.3684443Z [[1;31mERROR[m] To see the full stack trace of the errors, re-run Maven with the [1m-e[m switch.
2023-12-15T04:19:14.3684755Z [[1;31mERROR[m] Re-run Maven using the [1m-X[m switch to enable full debug logging.
2023-12-15T04:19:14.3684963Z [[1;31mERROR[m]
2023-12-15T04:19:14.3685263Z [[1;31mERROR[m] For more information about the errors and possible solutions, please read the following articles:
2023-12-15T04:19:14.3685612Z [[1;31mERROR[m] [1m[Help 1][m http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
2023-12-15T04:19:14.3685733Z
2023-12-15T04:19:17.8559773Z Result Attachments will be stored in LogStore
2023-12-15T04:19:17.8646491Z Run Attachments will be stored in LogStore
2023-12-15T04:19:17.9344706Z ##[error]Build failed.
2023-12-15T04:19:17.9436032Z ##[section]Async Command Start: Publish test results
2023-12-15T04:19:18.0583367Z Publishing test results to test run '3'.
2023-12-15T04:19:18.0616122Z TestResults To Publish 1, Test run id:3
2023-12-15T04:19:18.0654329Z Test results publishing 1, remaining: 0. Test run id: 3
2023-12-15T04:19:18.6536524Z Published Test Run : https://dev.azure.com/xopsschool/DevOpsXBasic/_TestManagement/Runs?runId=3&_a=runCharts
2023-12-15T04:19:18.7047357Z ##[section]Async Command End: Publish test results
2023-12-15T04:19:18.7048417Z ##[section]Finishing: Maven
2023-12-15T04:23:06.8588049Z [[1;34mINFO[m] [1m--- [0;32mmaven-install-plugin:2.4:install[m [1m(default-install)[m @ [36myoodle[0;1m ---[m
2023-12-15T04:23:06.9559774Z [[1;34mINFO[m] Installing /home/rajesh/_work/3/s/target/yoodle-215.jar to /home/rajesh/.m2/repository/com/scmgalaxy/mavensample/yoodle/215/yoodle-215.jar
2023-12-15T04:23:06.9613258Z [[1;34mINFO[m] Installing /home/rajesh/_work/3/s/pom.xml to /home/rajesh/.m2/repository/com/scmgalaxy/mavensample/yoodle/215/yoodle-215.pom
2023-12-15T04:23:06.9828749Z [[1;34mINFO[m] Installing /home/rajesh/_work/3/s/target/yoodle-215-javadoc.jar to /home/rajesh/.m2/repository/com/scmgalaxy/mavensample/yoodle/215/yoodle-215-javadoc.jar
2023-12-15T04:23:06.9859952Z [[1;34mINFO[m]
2023-12-15T04:23:06.9947446Z [[1;34mINFO[m] [1m--- [0;32mmaven-deploy-plugin:2.7:deploy[m [1m(default-deploy)[m @ [36myoodle[0;1m ---[m
2023-12-15T04:23:07.0502114Z [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
2023-12-15T04:23:07.0502833Z [[1;34mINFO[m] [1;31mBUILD FAILURE[m
2023-12-15T04:23:07.0503306Z [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
2023-12-15T04:23:07.0503736Z [[1;34mINFO[m] Total time: 8.371 s
2023-12-15T04:23:07.0504162Z [[1;34mINFO[m] Finished at: 2023-12-15T04:23:07Z
2023-12-15T04:23:07.0573893Z [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
2023-12-15T04:23:07.0627997Z [[1;31mERROR[m] Failed to execute goal [32morg.apache.maven.plugins:maven-deploy-plugin:2.7:deploy[m [1m(default-deploy)[m on project [36myoodle[m: [1;31mDeployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter[m -> [1m[Help 1][m
2023-12-15T04:23:07.0628800Z [[1;31mERROR[m]
2023-12-15T04:23:07.0629224Z [[1;31mERROR[m] To see the full stack trace of the errors, re-run Maven with the [1m-e[m switch.
2023-12-15T04:23:07.0629845Z [[1;31mERROR[m] Re-run Maven using the [1m-X[m switch to enable full debug logging.
2023-12-15T04:23:07.0630220Z [[1;31mERROR[m]
2023-12-15T04:23:07.0664324Z [[1;31mERROR[m] For more information about the errors and possible solutions, please read the following articles:
2023-12-15T04:23:07.0664915Z [[1;31mERROR[m] [1m[Help 1][m http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
2023-12-15T04:23:07.1141592Z
2023-12-15T04:23:07.1162269Z The process '/usr/bin/mvn' failed with exit code 1
2023-12-15T04:23:07.1170348Z Could not retrieve code analysis results - Maven run failed.
2023-12-15T04:23:10.9195120Z Result Attachments will be stored in LogStore
2023-12-15T04:23:10.9288909Z Run Attachments will be stored in LogStore
2023-12-15T04:23:10.9783250Z ##[error]Build failed.
2023-12-15T04:23:10.9866516Z ##[section]Async Command Start: Publish test results
2023-12-15T04:23:11.1026890Z Publishing test results to test run '4'.
2023-12-15T04:23:11.1058931Z TestResults To Publish 1, Test run id:4
2023-12-15T04:23:11.1096593Z Test results publishing 1, remaining: 0. Test run id: 4
2023-12-15T04:23:11.6339898Z Published Test Run : https://dev.azure.com/xopsschool/DevOpsXBasic/_TestManagement/Runs?runId=4&_a=runCharts
2023-12-15T04:23:11.6872759Z ##[section]Async Command End: Publish test results
2023-12-15T04:23:11.6873874Z ##[section]Finishing: Maven
Latest posts by rajeshkumar (see all)
- Building, Orchestrating, and Deploying Multi-Agent Systems for AI Agents - November 24, 2024
- Git error: GH001: Large files detected. You may want to try Git Large File - November 15, 2024
- List of information providers that offer APIs to fetch vehicle bikes, cars, trucks details - October 16, 2024