Azure Pipeline Error:

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 [INFO] ------------------------------------------------------------------------
2023-12-15T04:19:14.3678044Z [INFO] BUILD FAILURE
2023-12-15T04:19:14.3678331Z [INFO] ------------------------------------------------------------------------
2023-12-15T04:19:14.3678569Z [INFO] Total time:  55.563 s
2023-12-15T04:19:14.3678810Z [INFO] Finished at: 2023-12-15T04:19:14Z
2023-12-15T04:19:14.3679111Z [INFO] ------------------------------------------------------------------------
2023-12-15T04:19:14.3683497Z [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project yoodle: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1]
2023-12-15T04:19:14.3684148Z [ERROR] 
2023-12-15T04:19:14.3684443Z [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
2023-12-15T04:19:14.3684755Z [ERROR] Re-run Maven using the -X switch to enable full debug logging.
2023-12-15T04:19:14.3684963Z [ERROR] 
2023-12-15T04:19:14.3685263Z [ERROR] For more information about the errors and possible solutions, please read the following articles:
2023-12-15T04:19:14.3685612Z [ERROR] [Help 1] 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 [INFO] --- maven-install-plugin:2.4:install (default-install) @ yoodle ---
2023-12-15T04:23:06.9559774Z [INFO] 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 [INFO] 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 [INFO] 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 [INFO] 
2023-12-15T04:23:06.9947446Z [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ yoodle ---
2023-12-15T04:23:07.0502114Z [INFO] ------------------------------------------------------------------------
2023-12-15T04:23:07.0502833Z [INFO] BUILD FAILURE
2023-12-15T04:23:07.0503306Z [INFO] ------------------------------------------------------------------------
2023-12-15T04:23:07.0503736Z [INFO] Total time:  8.371 s
2023-12-15T04:23:07.0504162Z [INFO] Finished at: 2023-12-15T04:23:07Z
2023-12-15T04:23:07.0573893Z [INFO] ------------------------------------------------------------------------
2023-12-15T04:23:07.0627997Z [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project yoodle: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1]
2023-12-15T04:23:07.0628800Z [ERROR] 
2023-12-15T04:23:07.0629224Z [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
2023-12-15T04:23:07.0629845Z [ERROR] Re-run Maven using the -X switch to enable full debug logging.
2023-12-15T04:23:07.0630220Z [ERROR] 
2023-12-15T04:23:07.0664324Z [ERROR] For more information about the errors and possible solutions, please read the following articles:
2023-12-15T04:23:07.0664915Z [ERROR] [Help 1] 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
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x