bw6-plugin-maven
bw6-plugin-maven copied to clipboard
Error while generating EAR from Azure DevOps pipeline using the pom.xml generated using bw maven plugin
BUG REPORT INFORMATION
Use the commands below to provide key information from your environment: You do NOT have to include this information if this is a FEATURE REQUEST --> Maven Plugin version: 2.3.1
Maven version: 3.6.1
Product : TIBCO ActiveMatrix Businessworks
Product version: BW 6.5, Hotfix 8
Component: Either of Maven Eclipse Plugin or Maven build plugin
Steps to reproduce the issue:
- Generated the POM file for the application from eclipse
- Used the Pom.xml from Azure Devops to build the EAR of the application
- While running the build from Azure Pipeline it results into below error:
Additional environment details if any: BW service for which we are trying to build EAR has dependency on 3 shared modules, below is the directory structure in GIT for business applications and shared modules: TibcoESB/Applications - contains all the application modules TibcoESB/SharedModules - contains all the shared modules that the applications have dependency on Attating the pom.xml used to build the EAR from Azure Devops ( converted it to text file as I was not able to attach xml file) pom.txt
vops resulting into below error
Describe the results you received:
2020-02-26T16:08:41.1125289Z ##[section]Starting: Maven Build
2020-02-26T16:08:41.3195457Z ==============================================================================
2020-02-26T16:08:41.3195883Z Task : Maven
2020-02-26T16:08:41.3196179Z Description : Build, test, and deploy with Apache Maven
2020-02-26T16:08:41.3198746Z Version : 3.164.0
2020-02-26T16:08:41.3199034Z Author : Microsoft Corporation
2020-02-26T16:08:41.3199404Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/maven
2020-02-26T16:08:41.3199834Z ==============================================================================
2020-02-26T16:08:43.5352377Z [command]C:\Windows\system32\reg.exe query "HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.8" /v JavaHome /reg:64
2020-02-26T16:08:43.6538379Z
2020-02-26T16:08:43.6539901Z HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.8
2020-02-26T16:08:43.6541525Z JavaHome REG_SZ C:\Program Files\Java\jdk1.8.0_152
2020-02-26T16:08:43.6542247Z
2020-02-26T16:08:43.7468804Z [command]C:\Windows\system32\cmd.exe /D /S /C "D:\apache-maven-3.6.3\bin\mvn.cmd -version"
2020-02-26T16:08:45.2283206Z Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
2020-02-26T16:08:45.2284574Z Maven home: D:\apache-maven-3.6.3\bin..
2020-02-26T16:08:45.2285086Z Java version: 1.8.0_152, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_152\jre
2020-02-26T16:08:45.2285611Z Default locale: en_US, platform encoding: Cp1252
2020-02-26T16:08:45.2286139Z OS name: "windows server 2012 r2", version: "6.3", arch: "amd64", family: "windows"
2020-02-26T16:08:45.4341044Z SYSTEMVSSCONNECTION exists true
2020-02-26T16:08:45.4342791Z [command]C:\Windows\system32\cmd.exe /D /S /C "D:\apache-maven-3.6.3\bin\mvn.cmd -f d:\VSTS_agent_work\11\s\Applications\ws.travelerlist.svc.application.parent\pom.xml package"
2020-02-26T16:08:49.3426370Z [INFO] Scanning for projects...
2020-02-26T16:08:49.5066943Z [ERROR] [ERROR] Some problems were encountered while processing the POMs:
2020-02-26T16:08:49.5068465Z [ERROR] Child module d:\VSTS_agent_work\11\s\Applications\ws.travelerlist.svc.application.parent....\SharedModules\AzureTokenValidation\pom.xml of d:\VSTS_agent_work\11\s\Applications\ws.travelerlist.svc.application.parent\pom.xml does not exist @
2020-02-26T16:08:49.5069849Z [ERROR] Child module d:\VSTS_agent_work\11\s\Applications\ws.travelerlist.svc.application.parent....\SharedModules\ws.cmn.cle.framework\pom.xml of d:\VSTS_agent_work\11\s\Applications\ws.travelerlist.svc.application.parent\pom.xml does not exist @
2020-02-26T16:08:49.5071217Z [ERROR] Child module d:\VSTS_agent_work\11\s\Applications\ws.travelerlist.svc.application.parent....\SharedModules\ws.cmn.AzureToken\pom.xml of d:\VSTS_agent_work\11\s\Applications\ws.travelerlist.svc.application.parent\pom.xml does not exist @
2020-02-26T16:08:49.5071939Z @
2020-02-26T16:08:49.5090767Z [ERROR] The build could not read 1 project -> [Help 1]
2020-02-26T16:08:49.5091157Z [ERROR]
2020-02-26T16:08:49.5092049Z [ERROR] The project com.tibco.bw:ws.travelerlist.svc.application.parent:1.21.0-SNAPSHOT (d:\VSTS_agent_work\11\s\Applications\ws.travelerlist.svc.application.parent\pom.xml) has 3 errors
2020-02-26T16:08:49.5116878Z [ERROR] Child module d:\VSTS_agent_work\11\s\Applications\ws.travelerlist.svc.application.parent....\SharedModules\AzureTokenValidation\pom.xml of d:\VSTS_agent_work\11\s\Applications\ws.travelerlist.svc.application.parent\pom.xml does not exist
2020-02-26T16:08:49.5273756Z [ERROR] Child module d:\VSTS_agent_work\11\s\Applications\ws.travelerlist.svc.application.parent....\SharedModules\ws.cmn.cle.framework\pom.xml of d:\VSTS_agent_work\11\s\Applications\ws.travelerlist.svc.application.parent\pom.xml does not exist
2020-02-26T16:08:49.5363840Z [ERROR] Child module d:\VSTS_agent_work\11\s\Applications\ws.travelerlist.svc.application.parent....\SharedModules\ws.cmn.AzureToken\pom.xml of d:\VSTS_agent_work\11\s\Applications\ws.travelerlist.svc.application.parent\pom.xml does not exist
2020-02-26T16:08:49.5368800Z [ERROR]
2020-02-26T16:08:49.5369569Z [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
2020-02-26T16:08:49.5370188Z [ERROR] Re-run Maven using the -X switch to enable full debug logging.
2020-02-26T16:08:49.5476003Z [ERROR]
2020-02-26T16:08:49.5476843Z [ERROR] For more information about the errors and possible solutions, please read the following articles:
2020-02-26T16:08:49.5478077Z [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
2020-02-26T16:08:49.8951494Z The process 'D:\apache-maven-3.6.3\bin\mvn.cmd' failed with exit code 1
2020-02-26T16:08:49.8954562Z Could not retrieve code analysis results - Maven run failed.
2020-02-26T16:08:49.9039187Z ##[error]Build failed.
2020-02-26T16:08:49.9373849Z ##[section]Finishing: Maven Build
Describe the results you expected: Build is able to find the dependent shared module and generate the EAR of the application
Additional information you deem important (e.g. issue happens only occasionally):
what was the command you executed in azure devops?