we've a problem building a java CAP app. Without any profiles the build is working without any problem.
But when adding:
profiles: [ 'cloud' ]
we're getting an exception.
info mtaBuild - fatal error: errorDetails{"category":"undefined","correlationId":"https://repo.org/project/_build/results?buildId=523813","error":"failed to unmarshal settings xml file '/usr/share/maven/conf/settings.xml': expected element \u003csettings\u003e in name space http://maven.apache.org/SETTINGS/1.0.0 but have [http://maven.apache.org/SETTINGS/1.2.0","library":"SAP/jenkins-library","message":"failed](http://maven.apache.org/SETTINGS/1.2.0%22,%22library%22:%22SAP/jenkins-library%22,%22message%22:%22failed) to execute mta build","result":"failure","stepName":"mtaBuild","time":"2024-05-17T06:25:04.145037251Z"}
Hello SAP,
we've a problem building a java CAP app. Without any profiles the build is working without any problem. But when adding:
profiles: [ 'cloud' ]
we're getting an exception.
info mtaBuild - fatal error: errorDetails{"category":"undefined","correlationId":"https://repo.org/project/_build/results?buildId=523813","error":"failed to unmarshal settings xml file '/usr/share/maven/conf/settings.xml': expected element \u003csettings\u003e in name space http://maven.apache.org/SETTINGS/1.0.0 but have [http://maven.apache.org/SETTINGS/1.2.0","library":"SAP/jenkins-library","message":"failed](http://maven.apache.org/SETTINGS/1.2.0%22,%22library%22:%22SAP/jenkins-library%22,%22message%22:%22failed) to execute mta build","result":"failure","stepName":"mtaBuild","time":"2024-05-17T06:25:04.145037251Z"}