From d8d56072433836b61559fcd1786541a2c1ab22fa Mon Sep 17 00:00:00 2001 From: Robin de Silva Jayasinghe Date: Tue, 13 Feb 2024 16:39:09 +0100 Subject: [PATCH 1/2] some more details about the reuse module creation process --- java/plugins.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/java/plugins.md b/java/plugins.md index 6972cad3c..df01e544a 100644 --- a/java/plugins.md +++ b/java/plugins.md @@ -43,6 +43,17 @@ Starting with the 2.2 release CDS models, CSV import data and i18n files can now Simply create a plain Maven Java project and place your CDS models in the `main/resources/cds` folder of the reuse package under a unique module directory (for example, leveraging group ID and artifact ID): `src/main/resources/cds/com.sap.capire/bookshop/`. With `com.sap.capire` being the group ID and `bookshop` being the artifact ID. +You can simplify the creation of such a **plain Maven Java** project by calling the following Maven archetype command: + +```shell +mvn archetype:generate -DgroupId=com.sap.capire -DartifactId=bookshop -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false +``` + +After the creation you'll need to maintain the plugin versions as well as the desired Java language version (we recommend version 17). + +::: warning Please make sure that your plugin / reuse model project is neither created as a CAP Java project nor as a plain Spring Boot project. +::: + ### Reference the New CDS Model in an Existing CAP Java Project Projects wanting to import the content simply add a Maven dependency to the reuse package to their _srv/pom.xml_ in the `` section. From 355074dba0917e3b256ca925006b7c43f86b5648 Mon Sep 17 00:00:00 2001 From: Robin Date: Tue, 13 Feb 2024 16:45:48 +0100 Subject: [PATCH 2/2] Update java/plugins.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: René Jeglinsky --- java/plugins.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/plugins.md b/java/plugins.md index df01e544a..83d13ba0d 100644 --- a/java/plugins.md +++ b/java/plugins.md @@ -51,7 +51,8 @@ mvn archetype:generate -DgroupId=com.sap.capire -DartifactId=bookshop -Darchetyp After the creation you'll need to maintain the plugin versions as well as the desired Java language version (we recommend version 17). -::: warning Please make sure that your plugin / reuse model project is neither created as a CAP Java project nor as a plain Spring Boot project. +::: warning Only plain Maven Java projects +Please make sure that your plugin / reuse model project is neither created as a CAP Java project nor as a plain Spring Boot project. ::: ### Reference the New CDS Model in an Existing CAP Java Project