Skip to content

Commit a36aa32

Browse files
Automatic commit: Move 'create-hello-world-mta' from QA to Production
1 parent 938256e commit a36aa32

File tree

1 file changed

+19
-26
lines changed

1 file changed

+19
-26
lines changed

tutorials/create-hello-world-mta/create-hello-world-mta.md

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
---
2-
title: Create a Hello World Multitarget Application
3-
description: This tutorial will help you create a module that describes a Java application, a resource that describes your database binding and additional metadata required for the deployment.
2+
parser: v2
43
auto_validation: true
54
time: 20
65
tags: [ tutorial>beginner, programming-tool>java]
76
primary_tag: software-product>sap-business-technology-platform
87
---
98

9+
# Create a Hello World Multitarget Application
10+
<!-- description --> This tutorial will help you create a module that describes a Java application, a resource that describes your database binding and additional metadata required for the deployment.
11+
1012
## Prerequisites
1113
- You have created a Java application `.war file.`
1214
- You have an SAP BTP database configured in your subaccount and valid credentials.
1315

14-
## Details
15-
### You will learn
16+
## You will learn
1617
- How to create a module that describes a Java application
1718
- How to create a resource that describes your database binding
1819
- How to create additional metadata required for the deployment
1920

2021

2122
---
2223

23-
[ACCORDION-BEGIN [Step 1: ](Modeling the MTA deployment descriptor)]
24+
### Modeling the MTA deployment descriptor
25+
2426

2527
You define the entities that have to be deployed, namely modules and resources related to other modules, in the MTA deployment descriptor. This is a YAML file that defines the contract between you as a deployable artifact provider and the SAP BTP as a deployer tool. Initially, you have to describe the metadata required for the deployment.
2628

2729
1. Create an empty text file and name it `mtad.yaml.`
2830
2. Using a text editor, enter the following data in the file:
29-
>
30-
> #### Note
31-
>
31+
3232
>Strictly adhere to the correct indentations when working with YAML files, and do not use the tabulator character.
3333
3434
``` YAML
@@ -86,14 +86,12 @@ You define the entities that have to be deployed, namely modules and resources r
8686

8787
The information about your database ID and credentials are, however, subaccount-specific. To keep the `mtad.yaml` target platform independent, you have to create an MTA extension descriptor. This file is used in addition to your primary descriptor file, and contains data that is account-specific.
8888

89-
> #### Note
90-
>
91-
>Security-sensitive data, for example database credentials, should be always deployed using an MTA extension descriptor, so that this data is encrypted.
89+
>Security-sensitive data, for example database credentials, should be always deployed using an MTA extension descriptor, so that this data is encrypted.
90+
91+
9292

93-
[VALIDATE_1]
94-
[ACCORDION-END]
93+
### Create the MTA extension descriptor
9594

96-
[ACCORDION-BEGIN [Step 2: ](Create the MTA extension descriptor)]
9795

9896
1. Create an empty text file and name it `dev.mtaext.`
9997

@@ -128,11 +126,11 @@ The example above instructs the SAP BTP to:
128126

129127
The MTA archive contains all entities that have to be deployed. It also contains a manifest file, which links the modules and resources described into the MTA deployment descriptor file using their location in the archive. Using this data, the SAP BTP deploys the Multitarget Application archive as a solution.
130128

131-
[VALIDATE_2]
132-
[ACCORDION-END]
133129

134130

135-
[ACCORDION-BEGIN [Step 3: ](Packaging your Multitarget Application)]
131+
132+
### Packaging your Multitarget Application
133+
136134

137135
1. Create an empty text file and name it `MANIFEST.MF`. Explicitly use upper-case letters.
138136

@@ -153,20 +151,17 @@ The example above instructs the SAP BTP to:
153151
>
154152
>Make sure that the `MANIFEST.MF` is compliant to the JAR file specification.
155153

156-
[DONE]
157-
[ACCORDION-END]
158154

159-
[ACCORDION-BEGIN [Step 4: ](Create your Multitarget Application archive)]
155+
### Create your Multitarget Application archive
156+
160157

161158
MTA archives are compliant to the JAR file specification. This allows you to use commonly available tools for creating, modifying, and signing such archives. For the sake of the tutorial, we assume that you have a root directory named ***/*** where you place all the parts of the Multitarget Application before creating the archive.
162159

163160
1. Create a folder called `META-INF` in the root directory.
164161
2. Place the `mtad.yaml` and the `MANIFEST.MF` files inside the `META-INF` directory.
165162
3. Place the `example.war` archive inside the root directory.
166-
>
167-
> #### Note
168-
>
169-
>The MTA extension descriptor file is deployed separately from the MTA archive.
163+
164+
>The MTA extension descriptor file is deployed separately from the MTA archive.
170165

171166
The root directory should now be structured as follows:
172167

@@ -181,8 +176,6 @@ MTA archives are compliant to the JAR file specification. This allows you to use
181176

182177
After you have created your Multitarget Application archive, you are ready to deploy it into the SAP BTP as a solution. To deploy the archive, proceed as described in [Deploy a Standard Solution](https://help.sap.com/docs/BTP/ea72206b834e4ace9cd834feed6c0e09/fea07defe09f44c09e03269705550335.html).
183178

184-
[DONE]
185-
[ACCORDION-END]
186179

187180

188181

0 commit comments

Comments
 (0)