title: Missing navigation value to_ScheduleLine in SalesOrderSimulation entity when transferring OData result to Sales Order simulation entity
body: <p>I am using the SAP Cloud SDK to invoke OData service API_SALES_ORDER_SIMULATION_SRV to do sales order simulation.</p>
  
  <p>The pay load I used is as below:</p>
  
  <pre><code>{
      "SalesOrderType"            : "**",
      "SalesOrganization"         : "**",
      "DistributionChannel"       : "01",
      "OrganizationDivision"      : "01",
      "SoldToParty"               : "1000",
      "TransactionCurrency"       : "EUR",
      "PurchaseOrderByCustomer"   : "E2E S4HANA",
      "to_Item":[
          { "SalesOrderItem" : "10",
            "Material"       : "**",
            "RequestedQuantity"  : "1000",
            "to_ScheduleLine"    : []
          }
      ]
  }
  </code></pre>
  
  <p>The response I got from S/4HANA.</p>
  
  <pre><code>{
      "d": {
          "__metadata": {
              "id": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderSimulation('')",
              "uri": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderSimulation('')",
              "type": "API_SALES_ORDER_SIMULATION_SRV.A_SalesOrderSimulationType"
          },
          "SalesOrder": "",
          "SalesOrderType": "YTA",
          "SalesOrganization": "***",
          "DistributionChannel": "01",
          "OrganizationDivision": "01",
          "SalesGroup": "",
          "SalesOffice": "",
          "SalesDistrict": "000002",
          "SoldToParty": "***",
          "PurchaseOrderByCustomer": "E2E S4HANA",
          "CustomerPurchaseOrderType": "",
          "CustomerPurchaseOrderDate": null,
          "SalesOrderDate": "/Date(1571875200000)/",
          "TransactionCurrency": "EUR",
          "SDDocumentReason": "",
          "PricingDate": "/Date(1571875200000)/",
          "RequestedDeliveryDate": "/Date(1571875200000)/",
          "ShippingCondition": "",
          "CompleteDeliveryIsDefined": false,
          "ShippingType": "",
          "IncotermsClassification": "***",
          "IncotermsTransferLocation": "***",
          "IncotermsLocation1": "***",
          "IncotermsLocation2": "",
          "IncotermsVersion": "",
          "CustomerPaymentTerms": "0001",
          "PaymentMethod": "",
          "to_Credit": {
              "__deferred": {
                  "uri": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderSimulation('')/to_Credit"
              }
          },
          "to_Item": {
              "results": [
                  {
                      "__metadata": {
                          "id": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderItemSimulation(SalesOrder='',SalesOrderItem='10')",
                          "uri": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderItemSimulation(SalesOrder='',SalesOrderItem='10')",
                          "type": "API_SALES_ORDER_SIMULATION_SRV.A_SalesOrderItemSimulationType"
                      },
                      "SalesOrder": "",
                      "SalesOrderItem": "10",
                      "HigherLevelItem": "0",
                      "SalesOrderItemCategory": "***",
                      "SalesOrderItemText": "***",
                      "PurchaseOrderByCustomer": "E2E S4HANA",
                      "Material": "***",
                      "MaterialByCustomer": "***",
                      "PricingDate": "/Date(1571875200000)/",
                      "RequestedQuantity": "10000000",
                      "RequestedQuantityUnit": "PC",
                      "TransactionCurrency": "EUR",
                      "NetAmount": "0.00",
                      "TaxAmount": "0.00",
                      "CostAmount": "0.00",
                      "Subtotal1Amount": "0.00",
                      "Subtotal2Amount": "0.00",
                      "Subtotal3Amount": "0.00",
                      "Subtotal4Amount": "0.00",
                      "Subtotal5Amount": "0.00",
                      "Subtotal6Amount": "0.00",
                      "MaterialGroup": "01",
                      "MaterialPricingGroup": "",
                      "Batch": "",
                      "Plant": "***",
                      "StorageLocation": "",
                      "DeliveryGroup": "0",
                      "ShippingPoint": "***",
                      "ShippingType": "",
                      "DeliveryPriority": "0",
                      "IncotermsClassification": "***",
                      "IncotermsTransferLocation": "***",
                      "IncotermsLocation1": "***",
                      "IncotermsLocation2": "",
                      "CustomerPaymentTerms": "0001",
                      "SalesDocumentRjcnReason": "",
                      "to_Partner": {
                          "__deferred": {
                              "uri": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderItemSimulation(SalesOrder='',SalesOrderItem='10')/to_Partner"
                          }
                      },
                      "to_PricingElement": {
                          "__deferred": {
                              "uri": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderItemSimulation(SalesOrder='',SalesOrderItem='10')/to_PricingElement"
                          }
                      },
                      "to_SalesOrder": {
                          "__deferred": {
                              "uri": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderItemSimulation(SalesOrder='',SalesOrderItem='10')/to_SalesOrder"
                          }
                      },
                      "to_ScheduleLine": {
                          "results": [
                              {
                                  "__metadata": {
                                      "id": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderScheduleLineSimln(SalesOrder='',SalesOrderItem='10',ScheduleLine='1')",
                                      "uri": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderScheduleLineSimln(SalesOrder='',SalesOrderItem='10',ScheduleLine='1')",
                                      "type": "API_SALES_ORDER_SIMULATION_SRV.A_SalesOrderScheduleLineSimlnType"
                                  },
                                  "SalesOrder": "",
                                  "SalesOrderItem": "10",
                                  "ScheduleLine": "1",
                                  "RequestedDeliveryDate": "/Date(1571875200000)/",
                                  "ConfirmedDeliveryDate": null,
                                  "OrderQuantityUnit": "PC",
                                  "ScheduleLineOrderQuantity": "10000000",
                                  "ConfdOrderQtyByMatlAvailCheck": "0",
                                  "OpenConfdDelivQtyInOrdQtyUnit": "0",
                                  "CorrectedQtyInOrderQtyUnit": "10000000",
                                  "to_SalesOrder": {
                                      "__deferred": {
                                          "uri": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderScheduleLineSimln(SalesOrder='',SalesOrderItem='10',ScheduleLine='1')/to_SalesOrder"
                                      }
                                  },
                                  "to_SalesOrderItem": {
                                      "__deferred": {
                                          "uri": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderScheduleLineSimln(SalesOrder='',SalesOrderItem='10',ScheduleLine='1')/to_SalesOrderItem"
                                      }
                                  }
                              },
                              {
                                  "__metadata": {
                                      "id": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderScheduleLineSimln(SalesOrder='',SalesOrderItem='10',ScheduleLine='2')",
                                      "uri": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderScheduleLineSimln(SalesOrder='',SalesOrderItem='10',ScheduleLine='2')",
                                      "type": "API_SALES_ORDER_SIMULATION_SRV.A_SalesOrderScheduleLineSimlnType"
                                  },
                                  "SalesOrder": "",
                                  "SalesOrderItem": "10",
                                  "ScheduleLine": "2",
                                  "RequestedDeliveryDate": null,
                                  "ConfirmedDeliveryDate": "/Date(1571961600000)/",
                                  "OrderQuantityUnit": "PC",
                                  "ScheduleLineOrderQuantity": "0",
                                  "ConfdOrderQtyByMatlAvailCheck": "18595.5",
                                  "OpenConfdDelivQtyInOrdQtyUnit": "0",
                                  "CorrectedQtyInOrderQtyUnit": "0",
                                  "to_SalesOrder": {
                                      "__deferred": {
                                          "uri": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderScheduleLineSimln(SalesOrder='',SalesOrderItem='10',ScheduleLine='2')/to_SalesOrder"
                                      }
                                  },
                                  "to_SalesOrderItem": {
                                      "__deferred": {
                                          "uri": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderScheduleLineSimln(SalesOrder='',SalesOrderItem='10',ScheduleLine='2')/to_SalesOrderItem"
                                      }
                                  }
                              }
                          ]
                      }
                  }
              ]
          },
          "to_Partner": {
              "__deferred": {
                  "uri": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderSimulation('')/to_Partner"
              }
          },
          "to_Pricing": {
              "__deferred": {
                  "uri": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderSimulation('')/to_Pricing"
              }
          },
          "to_PricingElement": {
              "__deferred": {
                  "uri": "http://host:port/sap/opu/odata/sap/API_SALES_ORDER_SIMULATION_SRV/A_SalesOrderSimulation('')/to_PricingElement"
              }
          }
      }
  }
  </code></pre>
  
  <p>It works fine in SAP Gateway Client and it returns all the data I want including to_ScheduleLine navigation data in item.</p>
  
  <p>But when I invoke the API using Cloud SDK and set the same payload, the sales order simulation data is returned without the to_ScheduleLine navigation data.</p>
  
  <p>I looked deep into the source code of SDK, and found that this part of data was included in the response. But when transferring odata result to sales order simulation entity, the data is lost.</p>
  
  <p><a href="https://i.stack.imgur.com/55wfp.png" rel="nofollow noreferrer">OData Response</a></p>
  
  <p>The schedule line properties are lost when constructing EntityT with properties in Class FluentHelperCreate.class.</p>
  
  <pre><code>@Override
  @Nonnull
  public EntityT execute( @Nonnull final HttpDestinationProperties destination )
      throws ODataException
  {
      final HttpClient httpClient = HttpClientAccessor.getHttpClient(destination);
      notifyQueryListeners(destination, getEntity());
      final ODataCreateResult result = toQuery().execute(httpClient);
  
      final EntityT createdEntity = new VdmEntityUtil&lt;&gt;(getEntityClass()).fromFields(result.asMap());
      createdEntity.attachToService(getServicePath(), destination);
      return createdEntity;
  }
  </code></pre>
  
  <p>The to_ScheduleLine data is very important to our business workflow. Because when customer does the sales order simulation and provide the RequestedQuantity of item, he or she needs to know whether the storage is enough or not.</p>
  
  <p>Could you help to take a look a this issue?</p>
  
  <p>SAP Cloud SDK Version: 3.3.1
  S/4HANA on premise version: 1909</p>
  
  <p>=============================================================================</p>
  
  <p>Update</p>
  
  <p>pom.xml in root project</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;name&gt;Test3.11 - Root&lt;/name&gt;
      &lt;description&gt;Test3.11 - Root&lt;/description&gt;
  
      &lt;groupId&gt;com.bosch.test&lt;/groupId&gt;
      &lt;artifactId&gt;Test3.11&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
  
      &lt;properties&gt;
          &lt;spring-boot.version&gt;2.2.1.RELEASE&lt;/spring-boot.version&gt;
  
          &lt;java.version&gt;1.8&lt;/java.version&gt;
  
          &lt;maven.compiler.source&gt;${java.version}&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;${java.version}&lt;/maven.compiler.target&gt;
          &lt;maven.compiler.testSource&gt;${java.version}&lt;/maven.compiler.testSource&gt;
          &lt;maven.compiler.testTarget&gt;${java.version}&lt;/maven.compiler.testTarget&gt;
  
          &lt;project.build.resourceEncoding&gt;UTF-8&lt;/project.build.resourceEncoding&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
      &lt;/properties&gt;
  
      &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;com.sap.cloud.sdk&lt;/groupId&gt;
                  &lt;artifactId&gt;sdk-bom&lt;/artifactId&gt;
                  &lt;version&gt;3.13.0&lt;/version&gt;
                  &lt;type&gt;pom&lt;/type&gt;
                  &lt;scope&gt;import&lt;/scope&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-dependencies&lt;/artifactId&gt;
                  &lt;version&gt;${spring-boot.version}&lt;/version&gt;
                  &lt;type&gt;pom&lt;/type&gt;
                  &lt;scope&gt;import&lt;/scope&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;javax.validation&lt;/groupId&gt;
                  &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
                  &lt;version&gt;2.0.1.Final&lt;/version&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
      &lt;/dependencyManagement&gt;
  
      &lt;modules&gt;
          &lt;module&gt;application&lt;/module&gt;
          &lt;module&gt;unit-tests&lt;/module&gt;
          &lt;module&gt;integration-tests&lt;/module&gt;
      &lt;/modules&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-enforcer-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.0.0-M2&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;SAP Cloud SDK Project Structure Checks&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;enforce&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;rules&gt;
                                  &lt;requireMavenVersion&gt;
                                      &lt;version&gt;3.5&lt;/version&gt;
                                  &lt;/requireMavenVersion&gt;
                                  &lt;requireJavaVersion&gt;
                                      &lt;version&gt;${java.version}&lt;/version&gt;
                                  &lt;/requireJavaVersion&gt;
                                  &lt;requireProperty&gt;
                                      &lt;property&gt;project.artifactId&lt;/property&gt;
                                      &lt;regex&gt;[^_]+&lt;/regex&gt;
                                      &lt;regexMessage&gt;"The artifactId should not contain underscores (_) as this causes issues when deploying to Cloud Foundry."&lt;/regexMessage&gt;
                                  &lt;/requireProperty&gt;
                                  &lt;reactorModuleConvergence /&gt;
                              &lt;/rules&gt;
                              &lt;fail&gt;true&lt;/fail&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>pom.xml in application project</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;name&gt;Test3.11 - Application&lt;/name&gt;
      &lt;description&gt;Test3.11 - Application&lt;/description&gt;
  
      &lt;artifactId&gt;Test3.11-application&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
      &lt;parent&gt;
          &lt;groupId&gt;com.bosch.test&lt;/groupId&gt;
          &lt;artifactId&gt;Test3.11&lt;/artifactId&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/parent&gt;
  
      &lt;dependencies&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.h2database&lt;/groupId&gt;
              &lt;artifactId&gt;h2&lt;/artifactId&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- mybatis  --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mybatis.spring.boot&lt;/groupId&gt;
              &lt;artifactId&gt;mybatis-spring-boot-starter&lt;/artifactId&gt;
              &lt;version&gt;2.1.1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
              &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
              &lt;!--&lt;version&gt;42.2.8&lt;/version&gt;--&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.sap.xs2.security&lt;/groupId&gt;
              &lt;artifactId&gt;security-commons&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sap.xs2.security&lt;/groupId&gt;
              &lt;artifactId&gt;java-container-security&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sap.xs2.security&lt;/groupId&gt;
              &lt;artifactId&gt;java-container-security-api&lt;/artifactId&gt;
              &lt;version&gt;0.28.6&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sap.security.nw.sso.linuxx86_64.opt&lt;/groupId&gt;
              &lt;artifactId&gt;sapjwt.linuxx86_64&lt;/artifactId&gt;
              &lt;version&gt;1.1.19&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-jwt&lt;/artifactId&gt;
              &lt;version&gt;1.0.10.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security.oauth&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-oauth2&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sap.cloud.security.xsuaa&lt;/groupId&gt;
              &lt;artifactId&gt;api&lt;/artifactId&gt;
              &lt;version&gt;2.2.0&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.github.ben-manes.caffeine&lt;/groupId&gt;
              &lt;artifactId&gt;jcache&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;io.springfox&lt;/groupId&gt;
              &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
              &lt;version&gt;2.9.2&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;io.springfox&lt;/groupId&gt;
              &lt;artifactId&gt;springfox-swagger-ui&lt;/artifactId&gt;
              &lt;version&gt;2.9.2&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
              &lt;artifactId&gt;lombok&lt;/artifactId&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.sap.cloud.sdk.cloudplatform&lt;/groupId&gt;
              &lt;artifactId&gt;scp-cf&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sap.cloud.sdk.s4hana&lt;/groupId&gt;
              &lt;artifactId&gt;s4hana-all&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;jcl-over-slf4j&lt;/artifactId&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
              &lt;artifactId&gt;logback-classic&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sap.hcp.cf.logging&lt;/groupId&gt;
              &lt;artifactId&gt;cf-java-logging-support-logback&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-actuator&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;commons-logging&lt;/groupId&gt;
                      &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
  
          &lt;!--
          Since com.sap.xs2.security:java-container-security is not available in Maven Central as of today,
          you need to download this dependency manually.
  
          The library is available for download at:
          https://launchpad.support.sap.com/#/softwarecenter/search/XS_JAVA
          --&gt;
  
          &lt;!-- Dependencies for security setup --&gt;
          &lt;!--
          &lt;dependency&gt;
              &lt;groupId&gt;com.sap.xs2.security&lt;/groupId&gt;
              &lt;artifactId&gt;java-container-security&lt;/artifactId&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;com.unboundid.components&lt;/groupId&gt;
                      &lt;artifactId&gt;json&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                      &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate.validator&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-config&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security.oauth&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-oauth2&lt;/artifactId&gt;
          &lt;/dependency&gt;
          --&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;javax.inject&lt;/groupId&gt;
              &lt;artifactId&gt;javax.inject&lt;/artifactId&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;finalName&gt;${project.artifactId}&lt;/finalName&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${spring-boot.version}&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;attach&gt;false&lt;/attach&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;repackage&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;com.sap.cloud.sdk.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;usage-analytics-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.13.0&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;usage-analytics&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;skipUsageAnalytics&gt;false&lt;/skipUsageAnalytics&gt;
                              &lt;generateSalt&gt;true&lt;/generateSalt&gt;
                              &lt;!--
                              Note: A random salt is auto-generated once the project is built for the first time.
                              Please keep the generated salt in the POM file, for example, when pushing to git.
  
                              To learn more, visit: https://blogs.sap.com/2018/10/23/usage-analytics-s4sdk/
                              --&gt;
                              &lt;salt&gt;438271d5d965d55c65e6913db160e0f9b6001952410dcb2f8e3d6956cbf14112&lt;/salt&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Thanks,</p>
  
  <p>Jerry</p>