Skip to Content

error with creation of mtar archive

we are using the Cloud MTA Build Tool for building our maven based project and create a mtar

we have our mtad.yaml defined as below ,where the war file is generated by the assembly project as war which needs to be just archived as mtar .

from the exising project war creation is fine , but while creating a mtar we are seeing the below error

error

path does not exist; the content type was not defined

_schema-version: "3.1"
ID: com.sap.api.cf.module
version: 1.0.0
modules:
- name: modulename
  type: java.tomee
  path: modulename/target/modulename.war
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 15, 2019 at 02:38 PM

    Hi Sandeep Manjunath,

    I don't think you have to specify the war file on an mtar yaml file. It is different than a manifest file.

    The file extension is not configurable; it is predefined by the module type (.zip or .war).

    https://help.sap.com/viewer/58746c584026430a890170ac4d87d03b/Cloud/en-US/b55e2d06ca7048f087d09ad437336847.html

    The module's type is the way the mtar builder knows how to build that module and what to look for in terms of deployable artifact.

    path is just the means to point a module to a directory where it should find that module. Name is just a name, you could choose whatever is easier to read and reference modules across the yaml.

    Best regards,
    Ivan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.