SAP学习笔记 - 开发12 - CAP 之 开发准备,添加服务
上一章说了RAP(RESTful Application Programming)的HelloWord。
SAP学习笔记 - 开发11 - RAP(RESTful Application Programming)简介-CSDN博客
本章开始学学CAP (Cloud Application Model)。
有关CAP,可以参照下面这篇文章。RAP是ABAP BTP开发,CAP是ABAP以外的BTP开发。
CAP BTP开发目前支持 Java,Node.js,Python。
SAP学习笔记 - 开发09 - BTP简介,BTP在SAP产品中的位置-CSDN博客
目录
1,准备工作
1-1,安装软件和插件
- VSCode
- VSCode插件
- Marven
- Nodejs and NPM
1-2,创建Project的几种方式
- Marven 命令
- VSCode
- CDS SDK命令
- Project创建完成
2,Project里添加Service
2-1,添加 cds 和 handler类
2-2,编译
- mvn clean install
- 编译结果
3,运行
- mvn clean spring-boot:run
- localhost:8080
- Postman测试
下面是详细内容。
1,准备工作
1-1,安装软件和插件
- VSCode
网上到处都是教程,也可以参照下面文章。
需要说明的一点是,现在网上到处都是VSCode开发CAP BTP,用Eclipse也是可以的。
SAP学习笔记 - 开发04 - Fiori UI5 开发环境搭建_fiori开发环境安装-CSDN博客
- VSCode插件
- Extension Pack for Java
- SAP Fiori Tools - Extension Pack
- Spring Boot Extension Pack
- SAP CDS Language Support
我这里就截一张图,其他的挨个加就可以
- Marven
URL: Download Apache Maven – Maven / https://maven.apache.org/download.cgi
说是安装,其实就是解压而已
设置一下环境变量:设置到 bin 文件夹,比如我这里的 E:\Maven\bin
用下面命令来查看一下是不是都设置好了
mvn - version
- Nodejs and NPM
SAP学习笔记 - 开发04 - Fiori UI5 开发环境搭建_fiori开发环境安装-CSDN博客
然后再加个 npm package:
npm install --global @sap/cds-dk
后面编译的时候出错的话,把--global给去掉试试看
npm install @sap/cds-dk
1-2,创建Project的几种方式
- Marven 命令
哎,这么长,谁会直接用啊
mvn org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate -DarchetypeArtifactId="cds-services-archetype" -DarchetypeGroupId="com.sap.cds" -DarchetypeVersion="1.32.0" -DgroupId="com.alvachien.learncap" -DartifactId="CAP-Test01"mvn archetype:generate -DarchetypeArtifactId=cds-services-archetype -DarchetypeGroupId=com.sap.cds -DarchetypeVersion=3.9.1 -DinteractiveMode=false -DartifactId=CAP-Test03 -DgroupId=customer -Dpackage=customer.cap_test03 -Dstyle.color=always
- VSCode
按下 Ctrl + Shift + P
或者直接点 Menu > Command Palette 也可以
选 Java:Create Java Project
如果没这选项,那就输入一下,然后再选
然后接着选 Marven Create from archetype
然后输入archetype
cds-service-archetype
再就是要输入Project的GroupID什么的
- CDS SDK命令
cds init CAP-Test03 --add java
有可能会出乱码,在环境变了或Project配置里指定编码就可以了
SAP学习笔记 - 开发 - CDS SDK命令出乱码 (cds init CAP-Test03 --add java)-CSDN博客
- Project创建完成
Project建好之后,文件放在哪里了呢?其实就是建的时候的文件夹直下
另外一点,大家好不好奇这些download的Jar包都放哪儿了呢??
C:\Users\abcta\.m2\repository
不知道为啥叫.m2 这么奇怪的名字
根据包名,还搞了子文件夹,这样就可以找到Jar包了
感觉好像还不错哈,所有Jar包都放在这里管理,下次下载的时候,有了的话是不是就不用下了
上面用cds sdk 方式创建了一个Project,我们后面的学习就用它了。
2,Project里添加Service
2-1,添加 cds 和 handler类
- DemoService.cds
service DemoService {entity DemoEntity {key ID: Integer;title: String(111);descr: String(1111);}
}
- DemoService.java
package customer.captest03.handlers;import java.util.HashMap;
import java.util.Map;import org.springframework.stereotype.Component;import com.sap.cds.services.cds.CdsCreateEventContext;
import com.sap.cds.services.cds.CdsReadEventContext;
import com.sap.cds.services.cds.CqnService;
import com.sap.cds.services.handler.annotations.On;
import com.sap.cds.services.handler.annotations.ServiceName;@Component
@ServiceName("DemoService")
public class DemoService {private Map<Object, Map<String, Object>> dataInMemory = new HashMap<>();@On(event = CqnService.EVENT_CREATE, entity = "DemoService.DemoEntity")public void onCreate(CdsCreateEventContext context) {context.getCqn().entries().forEach(e -> dataInMemory.put(e.get("ID"), e));context.setResult(context.getCqn().entries());}@On(event = CqnService.EVENT_READ, entity = "DemoService.DemoEntity")public void onRead(CdsReadEventContext context) {context.setResult(dataInMemory.values());}
}
网上好多代码用CdsService,可是它已经过期,用什么代替呢? 就用CqnService
SAP学习笔记 - 开发豆知识02 - com.sap.cds.services.cds.CdsService 废止,那么用什么代替呢?-CSDN博客
2-2,编译
- mvn clean install
初次用下面命令来build一下
mvn clean install
出错了,说Java版本要求 21 以上
现在最新版已经是 24.x了
我下的是 x64 Compressed Archive
别忘了改一下环境变量
再编译,好像OK了哈
PS C:\Users\abcta\CAPTest03> mvn clean install
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.fusesource.jansi.internal.JansiLoader in an unnamed module (file:/E:/Maven/lib/jansi-2.4.1.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabledWARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper (file:/E:/Maven/lib/guava-33.2.1-jre.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] CAPTest03 parent [pom]
[INFO] CAPTest03 [jar]
[INFO]
[INFO] ---------------------< customer:CAPTest03-parent >----------------------
[INFO] Building CAPTest03 parent 1.0.0-SNAPSHOT [1/2]
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ CAPTest03-parent ---
[INFO]
[INFO] --- flatten:1.7.0:clean (flatten.clean) @ CAPTest03-parent ---
[INFO] Deleting C:\Users\abcta\CAPTest03\.flattened-pom.xml
[INFO]
[INFO] --- enforcer:3.5.0:enforce (Project Structure Checks) @ CAPTest03-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed
[INFO] Rule 1: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed
[INFO] Rule 2: org.apache.maven.enforcer.rules.ReactorModuleConvergence passed
[INFO]
[INFO] --- flatten:1.7.0:flatten (flatten) @ CAPTest03-parent ---
[INFO] Generating flattened POM of project customer:CAPTest03-parent:pom:1.0.0-SNAPSHOT...
[INFO]
[INFO] --- install:3.1.2:install (default-install) @ CAPTest03-parent ---
[INFO] Installing C:\Users\abcta\CAPTest03\.flattened-pom.xml to C:\Users\abcta\.m2\repository\customer\CAPTest03-parent\1.0.0-SNAPSHOT\CAPTest03-parent-1.0.0-SNAPSHOT.pom
[INFO]
[INFO] -------------------------< customer:CAPTest03 >-------------------------
[INFO] Building CAPTest03 1.0.0-SNAPSHOT [2/2]
[INFO] from srv\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ CAPTest03 ---
[INFO] Deleting C:\Users\abcta\CAPTest03\srv\target
[INFO]
[INFO] --- flatten:1.7.0:clean (flatten.clean) @ CAPTest03 ---
[INFO] Deleting C:\Users\abcta\CAPTest03\srv\.flattened-pom.xml
[INFO]
[INFO] --- cds:3.9.1:clean (cds.clean) @ CAPTest03 ---
[INFO] CleanMojo: Deleting C:\Users\abcta\CAPTest03\srv\src\gen
[INFO] CleanMojo: Deleting C:\Users\abcta\CAPTest03\srv\src\main\resources\edmx\csn.json
[INFO] CleanMojo: Deleting C:\Users\abcta\CAPTest03\srv\src\main\resources\edmx
[INFO] CleanMojo: Deleting C:\Users\abcta\CAPTest03\srv\src\main\resources\schema-h2.sql
[INFO]
[INFO] --- enforcer:3.5.0:enforce (Project Structure Checks) @ CAPTest03 ---
[INFO]
[INFO] --- cds:3.9.1:install-node (cds.install-node) @ CAPTest03 ---
[INFO] InstallNodeMojo: Node.js v20.19.0 already installed.
[INFO]
[INFO] --- cds:3.9.1:npm (cds.npm-ci) @ CAPTest03 ---
[INFO] NpmMojo: Using npm provided by goal install-node: C:\Users\abcta\.m2\repository\com\sap\cds\cds-maven-plugin\cache\unpacked\20.19.0\unpacked-20.19.0-win-x64.zip\node-v20.19.0-win-x64\npm.cmd
[INFO] NpmMojo: Identified C:\Users\abcta\CAPTest03 as reactor base directory.
[INFO] NpmMojo: Using directory containing a .cdsrc.json as working directory: C:\Users\abcta\CAPTest03
[INFO] NpmMojo: Executing [C:\Users\abcta\.m2\repository\com\sap\cds\cds-maven-plugin\cache\unpacked\20.19.0\unpacked-20.19.0-win-x64.zip\node-v20.19.0-win-x64\npm.cmd, ci] in working directory C:\Users\abcta\CAPTest03
[INFO] NpmMojo:
added 251 packages, and audited 252 packages in 30s49 packages are looking for fundingrun `npm fund` for detailsfound 0 vulnerabilities[INFO]
[INFO] --- cds:3.9.1:resolve (cds.resolve) @ CAPTest03 ---
[INFO]
[INFO] --- cds:3.9.1:cds (cds.build) @ CAPTest03 ---
[INFO] CdsMojo: Using npx provided by goal install-node: C:\Users\abcta\.m2\repository\com\sap\cds\cds-maven-plugin\cache\unpacked\20.19.0\unpacked-20.19.0-win-x64.zip\node-v20.19.0-win-x64\npx.cmd
[INFO] CdsMojo: Using directory containing a .cdsrc.json as working directory: C:\Users\abcta\CAPTest03
[INFO] CdsMojo: Executing [C:\Users\abcta\.m2\repository\com\sap\cds\cds-maven-plugin\cache\unpacked\20.19.0\unpacked-20.19.0-win-x64.zip\node-v20.19.0-win-x64\npx.cmd, -c, cds version] in working directory C:\Users\abcta\CAPTest03
[INFO] CdsMojo: Using configured working directory: C:\Users\abcta\CAPTest03
[INFO] CdsMojo: Executing [C:\Users\abcta\.m2\repository\com\sap\cds\cds-maven-plugin\cache\unpacked\20.19.0\unpacked-20.19.0-win-x64.zip\node-v20.19.0-win-x64\npx.cmd, -c, cds build --for java] in working directory C:\Users\abcta\CAPTest03
[INFO] CdsMojo: building project with {versions: { cds: '8.9.2', compiler: '5.9.2', dk: '8.9.3' },target: '.',tasks: [{ src: 'srv', for: 'java', options: { model: [ 'db', 'srv' ] } }]
}
writing generation log to [C:\Users\abcta\CAPTest03\srv\target\cds-build.log]done > wrote output to:srv\src\main\resources\edmx\csn.jsonsrv\src\main\resources\edmx\odata\v4\DemoService.xmlbuild completed in 1835 ms
[INFO] CdsMojo: Executing [C:\Users\abcta\.m2\repository\com\sap\cds\cds-maven-plugin\cache\unpacked\20.19.0\unpacked-20.19.0-win-x64.zip\node-v20.19.0-win-x64\npx.cmd, -c, cds deploy --to h2 --with-mocks --dry --out \"C:\Users\abcta\CAPTest03\srv/src/main/resources/schema-h2.sql\"] in working directory C:\Users\abcta\CAPTest03
[INFO] CdsMojo:
[INFO]
[INFO] --- cds:3.9.1:generate (cds.generate) @ CAPTest03 ---
[INFO] GenerateMojo: Adding code output directory C:\Users\abcta\CAPTest03\srv\src\gen\java to compile source directories.
[INFO] GenerateMojo: Adding directory C:\Users\abcta\CAPTest03\srv\src\gen\resources to resources.
[INFO] GenerateMojo: Using C:\Users\abcta\CAPTest03\srv\src\main\resources\edmx\csn.json to generate Java classes into C:\Users\abcta\CAPTest03\srv\src\gen.
[INFO] GenerateMojo: Using module srv: groupId=customer, artifactId=CAPTest03, version=1.0.0-SNAPSHOT
[INFO] GenerateMojo: Class generation finished successfully
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ CAPTest03 ---
[INFO] Copying 4 resources from src\main\resources to target\classes
[INFO] Copying 1 resource from src\gen\resources to target\classes
[INFO]
[INFO] --- flatten:1.7.0:flatten (flatten) @ CAPTest03 ---
[INFO] Generating flattened POM of project customer:CAPTest03:jar:1.0.0-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ CAPTest03 ---
[INFO] Recompiling the module because of added or removed source files.
[INFO] Compiling 6 source files with javac [debug release 21] to target\classes
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ CAPTest03 ---
[INFO] skip non existing resourceDirectory C:\Users\abcta\CAPTest03\srv\src\test\resources
[INFO]
[INFO] --- compiler:3.14.0:testCompile (default-testCompile) @ CAPTest03 ---
[INFO] No sources to compile
[INFO]
[INFO] --- surefire:3.5.2:test (default-test) @ CAPTest03 ---
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/3.5.2/surefire-api-3.5.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/3.5.2/surefire-api-3.5.2.pom (3.5 kB at 2.5 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-logger-api/3.5.2/surefire-logger-api-3.5.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-logger-api/3.5.2/surefire-logger-api-3.5.2.pom (3.3 kB at 5.9 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-shared-utils/3.5.2/surefire-shared-utils-3.5.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-shared-utils/3.5.2/surefire-shared-utils-3.5.2.pom (4.7 kB at 9.8 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-extensions-api/3.5.2/surefire-extensions-api-3.5.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-extensions-api/3.5.2/surefire-extensions-api-3.5.2.pom (3.5
kB at 8.4 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/3.5.2/maven-surefire-common-3.5.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/3.5.2/maven-surefire-common-3.5.2.pom (7.8 kB at 107 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/3.5.2/surefire-booter-3.5.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/3.5.2/surefire-booter-3.5.2.pom (4.8 kB at 69 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-extensions-spi/3.5.2/surefire-extensions-spi-3.5.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-extensions-spi/3.5.2/surefire-extensions-spi-3.5.2.pom (1.8
kB at 24 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-common-artifact-filters/3.4.0/maven-common-artifact-filters-3.4.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-common-artifact-filters/3.4.0/maven-common-artifact-filters-3.4.0.pom (5.4 kB at 18 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-java/1.3.0/plexus-java-1.3.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-java/1.3.0/plexus-java-1.3.0.pom (14 kB at 48 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/ow2/asm/asm/9.7/asm-9.7.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/ow2/asm/asm/9.7/asm-9.7.pom (2.4 kB at 26 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/thoughtworks/qdox/qdox/2.1.0/qdox-2.1.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/com/thoughtworks/qdox/qdox/2.1.0/qdox-2.1.0.pom (18 kB at 93 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/3.5.2/surefire-api-3.5.2.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/3.5.2/surefire-api-3.5.2.jar (171 kB at 970 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-logger-api/3.5.2/surefire-logger-api-3.5.2.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-shared-utils/3.5.2/surefire-shared-utils-3.5.2.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-extensions-api/3.5.2/surefire-extensions-api-3.5.2.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/3.5.2/maven-surefire-common-3.5.2.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/3.5.2/surefire-booter-3.5.2.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/3.5.2/maven-surefire-common-3.5.2.jar (311 kB at 1.8 MB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-extensions-spi/3.5.2/surefire-extensions-spi-3.5.2.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-extensions-api/3.5.2/surefire-extensions-api-3.5.2.jar (26 kB at 94 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-common-artifact-filters/3.4.0/maven-common-artifact-filters-3.4.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-extensions-spi/3.5.2/surefire-extensions-spi-3.5.2.jar (8.2
kB at 28 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-java/1.3.0/plexus-java-1.3.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/3.5.2/surefire-booter-3.5.2.jar (118 kB at 324 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/ow2/asm/asm/9.7/asm-9.7.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-logger-api/3.5.2/surefire-logger-api-3.5.2.jar (14 kB at 37
kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/com/thoughtworks/qdox/qdox/2.1.0/qdox-2.1.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-common-artifact-filters/3.4.0/maven-common-artifact-filters-3.4.0.jar (58 kB at 159 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-java/1.3.0/plexus-java-1.3.0.jar (57 kB at 153 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/com/thoughtworks/qdox/qdox/2.1.0/qdox-2.1.0.jar (348 kB at 642 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/ow2/asm/asm/9.7/asm-9.7.jar (125 kB at 218 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-shared-utils/3.5.2/surefire-shared-utils-3.5.2.jar (2.8 MB at 1.0 MB/s)
[INFO] No tests to run.
[INFO]
[INFO] --- jar:3.4.1:jar (default-jar) @ CAPTest03 ---
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/file-management/3.1.0/file-management-3.1.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/file-management/3.1.0/file-management-3.1.0.pom (4.5 kB at 22 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/36/maven-shared-components-36.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/36/maven-shared-components-36.pom (4.9 kB at 56 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/file-management/3.1.0/file-management-3.1.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/file-management/3.1.0/file-management-3.1.0.jar (36 kB at 454 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-archiver/4.9.2/plexus-archiver-4.9.2.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/3.4.2/plexus-io-3.4.2.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-compress/1.26.1/commons-compress-1.26.1.jar
Downloading from central: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.16.1/commons-codec-1.16.1.jar
Downloading from central: https://repo.maven.apache.org/maven2/com/github/luben/zstd-jni/1.5.5-11/zstd-jni-1.5.5-11.jar
Downloaded from central: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.16.1/commons-codec-1.16.1.jar (365 kB at 1.9 MB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/3.4.2/plexus-io-3.4.2.jar (79 kB at 405 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-archiver/4.9.2/plexus-archiver-4.9.2.jar (225 kB at 575 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-compress/1.26.1/commons-compress-1.26.1.jar (1.1 MB at 2.4 MB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/com/github/luben/zstd-jni/1.5.5-11/zstd-jni-1.5.5-11.jar (6.8 MB at 3.4 MB/s)
[INFO] Building jar: C:\Users\abcta\CAPTest03\srv\target\CAPTest03.jar
[INFO]
[INFO] --- spring-boot:3.4.4:repackage (repackage) @ CAPTest03 ---
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-buildpack-platform/3.4.4/spring-boot-buildpack-platform-3.4.4.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-buildpack-platform/3.4.4/spring-boot-buildpack-platform-3.4.4.pom (3.2 kB at 32 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/net/java/dev/jna/jna-platform/5.13.0/jna-platform-5.13.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/net/java/dev/jna/jna-platform/5.13.0/jna-platform-5.13.0.pom (2.3 kB at 33 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/net/java/dev/jna/jna/5.13.0/jna-5.13.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/net/java/dev/jna/jna/5.13.0/jna-5.13.0.pom (2.0 kB at 29 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-compress/1.25.0/commons-compress-1.25.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-compress/1.25.0/commons-compress-1.25.0.pom (22 kB at 265 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/client5/httpclient5/5.4.2/httpclient5-5.4.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/client5/httpclient5/5.4.2/httpclient5-5.4.2.pom (6.1 kB at 83 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/client5/httpclient5-parent/5.4.2/httpclient5-parent-5.4.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/client5/httpclient5-parent/5.4.2/httpclient5-parent-5.4.2.pom (16 kB
at 220 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-parent/13/httpcomponents-parent-13.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-parent/13/httpcomponents-parent-13.pom (30 kB at 392 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/apache/27/apache-27.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/apache/27/apache-27.pom (20 kB at 261 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/core5/httpcore5/5.3.3/httpcore5-5.3.3.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/core5/httpcore5/5.3.3/httpcore5-5.3.3.pom (3.9 kB at 40 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/core5/httpcore5-parent/5.3.3/httpcore5-parent-5.3.3.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/core5/httpcore5-parent/5.3.3/httpcore5-parent-5.3.3.pom (14 kB at 179 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/core5/httpcore5-h2/5.3.3/httpcore5-h2-5.3.3.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/core5/httpcore5-h2/5.3.3/httpcore5-h2-5.3.3.pom (3.6 kB at 34 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/tomlj/tomlj/1.0.0/tomlj-1.0.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/tomlj/tomlj/1.0.0/tomlj-1.0.0.pom (2.8 kB at 25 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/antlr/antlr4-runtime/4.7.2/antlr4-runtime-4.7.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/antlr/antlr4-runtime/4.7.2/antlr4-runtime-4.7.2.pom (3.6 kB at 17 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/antlr/antlr4-master/4.7.2/antlr4-master-4.7.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/antlr/antlr4-master/4.7.2/antlr4-master-4.7.2.pom (4.4 kB at 71 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-loader-tools/3.4.4/spring-boot-loader-tools-3.4.4.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-loader-tools/3.4.4/spring-boot-loader-tools-3.4.4.pom (2.2 kB at 23 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-common-artifact-filters/3.3.2/maven-common-artifact-filters-3.3.2.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-common-artifact-filters/3.3.2/maven-common-artifact-filters-3.3.2.pom (5.3 kB at 81 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/37/maven-shared-components-37.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/37/maven-shared-components-37.pom (4.9 kB at 102 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/37/maven-parent-37.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/37/maven-parent-37.pom (46 kB at 787 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-shade-plugin/3.5.0/maven-shade-plugin-3.5.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-shade-plugin/3.5.0/maven-shade-plugin-3.5.0.pom (12 kB at 207 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.7.32/slf4j-api-1.7.32.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.7.32/slf4j-api-1.7.32.pom (3.8 kB at 55 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-parent/1.7.32/slf4j-parent-1.7.32.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-parent/1.7.32/slf4j-parent-1.7.32.pom (14 kB at 105 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/ow2/asm/asm/9.5/asm-9.5.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/ow2/asm/asm/9.5/asm-9.5.pom (2.4 kB at 42 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/ow2/asm/asm-commons/9.5/asm-commons-9.5.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/ow2/asm/asm-commons/9.5/asm-commons-9.5.pom (2.8 kB at 44 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/ow2/asm/asm-tree/9.5/asm-tree-9.5.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/ow2/asm/asm-tree/9.5/asm-tree-9.5.pom (2.6 kB at 49 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-dependency-tree/3.2.1/maven-dependency-tree-3.2.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-dependency-tree/3.2.1/maven-dependency-tree-3.2.1.pom (6.2 kB at
75 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-util/1.0.0.v20140518/aether-util-1.0.0.v20140518.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-util/1.0.0.v20140518/aether-util-1.0.0.v20140518.pom (2.2 kB at 47 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/aether/aether/1.0.0.v20140518/aether-1.0.0.v20140518.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/aether/aether/1.0.0.v20140518/aether-1.0.0.v20140518.pom (30 kB at 569 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-api/1.0.0.v20140518/aether-api-1.0.0.v20140518.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-api/1.0.0.v20140518/aether-api-1.0.0.v20140518.pom (1.9 kB at 37 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/commons-io/commons-io/2.13.0/commons-io-2.13.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/commons-io/commons-io/2.13.0/commons-io-2.13.0.pom (20 kB at 339 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-parent/58/commons-parent-58.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-parent/58/commons-parent-58.pom (83 kB at 562 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/vafer/jdependency/2.8.0/jdependency-2.8.0.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/vafer/jdependency/2.8.0/jdependency-2.8.0.pom (14 kB at 217 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-collections4/4.4/commons-collections4-4.4.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-collections4/4.4/commons-collections4-4.4.pom (24 kB at 425 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-buildpack-platform/3.4.4/spring-boot-buildpack-platform-3.4.4.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-buildpack-platform/3.4.4/spring-boot-buildpack-platform-3.4.4.jar (299 kB at 3.6 MB/s)
Downloading from central: https://repo.maven.apache.org/maven2/net/java/dev/jna/jna-platform/5.13.0/jna-platform-5.13.0.jar
Downloading from central: https://repo.maven.apache.org/maven2/net/java/dev/jna/jna/5.13.0/jna-5.13.0.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-compress/1.25.0/commons-compress-1.25.0.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/client5/httpclient5/5.4.2/httpclient5-5.4.2.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/core5/httpcore5/5.3.3/httpcore5-5.3.3.jar
Downloaded from central: https://repo.maven.apache.org/maven2/net/java/dev/jna/jna-platform/5.13.0/jna-platform-5.13.0.jar (1.4 MB at 2.9 MB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/core5/httpcore5-h2/5.3.3/httpcore5-h2-5.3.3.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/core5/httpcore5/5.3.3/httpcore5-5.3.3.jar (907 kB at 1.9 MB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/tomlj/tomlj/1.0.0/tomlj-1.0.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/core5/httpcore5-h2/5.3.3/httpcore5-h2-5.3.3.jar (241 kB at 382 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/antlr/antlr4-runtime/4.7.2/antlr4-runtime-4.7.2.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/tomlj/tomlj/1.0.0/tomlj-1.0.0.jar (157 kB at 239 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-loader-tools/3.4.4/spring-boot-loader-tools-3.4.4.jar
Downloaded from central: https://repo.maven.apache.org/maven2/net/java/dev/jna/jna/5.13.0/jna-5.13.0.jar (1.9 MB at 2.8 MB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-common-artifact-filters/3.3.2/maven-common-artifact-filters-3.3.2.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/httpcomponents/client5/httpclient5/5.4.2/httpclient5-5.4.2.jar (909 kB at 1.3 MB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-shade-plugin/3.5.0/maven-shade-plugin-3.5.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-loader-tools/3.4.4/spring-boot-loader-tools-3.4.4.jar (465 kB at 676 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/ow2/asm/asm/9.5/asm-9.5.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/antlr/antlr4-runtime/4.7.2/antlr4-runtime-4.7.2.jar (338 kB at 489 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/ow2/asm/asm-commons/9.5/asm-commons-9.5.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-common-artifact-filters/3.3.2/maven-common-artifact-filters-3.3.2.jar (58 kB at 78 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/ow2/asm/asm-tree/9.5/asm-tree-9.5.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/ow2/asm/asm-commons/9.5/asm-commons-9.5.jar (72 kB at 87 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-dependency-tree/3.2.1/maven-dependency-tree-3.2.1.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/ow2/asm/asm-tree/9.5/asm-tree-9.5.jar (52 kB at 62 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-util/1.0.0.v20140518/aether-util-1.0.0.v20140518.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/ow2/asm/asm/9.5/asm-9.5.jar (122 kB at 144 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-api/1.0.0.v20140518/aether-api-1.0.0.v20140518.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-shade-plugin/3.5.0/maven-shade-plugin-3.5.0.jar (147 kB at 172 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/commons-io/commons-io/2.13.0/commons-io-2.13.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-dependency-tree/3.2.1/maven-dependency-tree-3.2.1.jar (43 kB at 44 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/vafer/jdependency/2.8.0/jdependency-2.8.0.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-api/1.0.0.v20140518/aether-api-1.0.0.v20140518.jar (136 kB at 132 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-collections4/4.4/commons-collections4-4.4.jar
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-compress/1.25.0/commons-compress-1.25.0.jar (1.1 MB at 1.0 MB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/commons-io/commons-io/2.13.0/commons-io-2.13.0.jar (484 kB at 452 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/eclipse/aether/aether-util/1.0.0.v20140518/aether-util-1.0.0.v20140518.jar (146 kB at 136 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/vafer/jdependency/2.8.0/jdependency-2.8.0.jar (233 kB at 208 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-collections4/4.4/commons-collections4-4.4.jar (752 kB at 667 kB/s)
[INFO] Attaching repackaged archive C:\Users\abcta\CAPTest03\srv\target\CAPTest03-exec.jar with classifier exec
[INFO]
[INFO] --- install:3.1.2:install (default-install) @ CAPTest03 ---
[INFO] Installing C:\Users\abcta\CAPTest03\srv\.flattened-pom.xml to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSHOT.pom
[INFO] Installing C:\Users\abcta\CAPTest03\srv\target\CAPTest03.jar to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSHOT.jar
[INFO] Installing C:\Users\abcta\CAPTest03\srv\target\CAPTest03-exec.jar to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSHOT-exec.jar
[INFO] Installing C:\Users\abcta\CAPTest03\srv\.flattened-pom.xml to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSHOT.pom
[INFO] Installing C:\Users\abcta\CAPTest03\srv\target\CAPTest03.jar to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSHOT.jar
[INFO] Installing C:\Users\abcta\CAPTest03\srv\target\CAPTest03-exec.jar to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-S[INFO] Installing C:\Users\abcta\CAPTest03\srv\.flattened-pom.xml to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSHOT.pom
[INFO] Installing C:\Users\abcta\CAPTest03\srv\target\CAPTest03.jar to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSHOT.jar
[INFO] Installing C:\Users\abcta\CAPTest03\srv\.flattened-pom.xml to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSHOT.pom
[INFO] Installing C:\Users\abcta\CAPTest03\srv\target\CAPTest03.jar to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSHOT.jar
[INFO] Installing C:\Users\abcta\CAPTest03\srv\.flattened-pom.xml to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSHOT.pom
[INFO] Installing C:\Users\abcta\CAPTest03\srv\target\CAPTest03.jar to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSH[INFO] Installing C:\Users\abcta\CAPTest03\srv\.flattened-pom.xml to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSHOT.pom
[INFO] Installing C:\Users\abcta\CAPTest03\srv\target\CAPTest03.jar to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSH[INFO] Installing C:\Users\abcta\CAPTest03\srv\.flattened-pom.xml to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSHOT.pom
.pom
[INFO] Installing C:\Users\abcta\CAPTest03\srv\target\CAPTest03.jar to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSHOT.jar
[INFO] Installing C:\Users\abcta\CAPTest03\srv\target\CAPTest03.jar to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSHOT.jar
[INFO] Installing C:\Users\abcta\CAPTest03\srv\target\CAPTest03-exec.jar to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SOT.jar
[INFO] Installing C:\Users\abcta\CAPTest03\srv\target\CAPTest03-exec.jar to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-S[INFO] Installing C:\Users\abcta\CAPTest03\srv\target\CAPTest03-exec.jar to C:\Users\abcta\.m2\repository\customer\CAPTest03\1.0.0-SNAPSHOT\CAPTest03-1.0.0-SNAPSHOT-exec.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for CAPTest03 parent 1.0.0-SNAPSHOT:
[INFO]
[INFO] CAPTest03 parent ................................... SUCCESS [ 3.275 s]
[INFO] CAPTest03 .......................................... SUCCESS [01:31 min]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for CAPTest03 parent 1.0.0-SNAPSHOT:
[INFO]
[INFO] CAPTest03 parent ................................... SUCCESS [ 3.275 s]
[INFO] CAPTest03 .......................................... SUCCESS [01:31 min]
[INFO] Reactor Summary for CAPTest03 parent 1.0.0-SNAPSHOT:
[INFO]
[INFO] CAPTest03 parent ................................... SUCCESS [ 3.275 s]
[INFO] CAPTest03 .......................................... SUCCESS [01:31 min]
[INFO]
[INFO] CAPTest03 parent ................................... SUCCESS [ 3.275 s]
[INFO] CAPTest03 .......................................... SUCCESS [01:31 min]
[INFO] CAPTest03 parent ................................... SUCCESS [ 3.275 s]
[INFO] CAPTest03 .......................................... SUCCESS [01:31 min]
[INFO] CAPTest03 .......................................... SUCCESS [01:31 min]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:35 min
[INFO] Finished at: 2025-05-17T12:23:09+09:00
[INFO] ------------------------------------------------------------------------
- 编译结果
编译完都干些什么呢?
除了target/classes下面,还生成了一堆文件,比如 srv/src/resources/edmx 下面的各种文件
注意这里的odata是V4的
已经建好Project,也建了一个Service,咱们来测试一下
3,运行
- mvn clean spring-boot:run
用这个命令来启动Service
PS C:\Users\abcta\CAPTest03> mvn clean spring-boot:run
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.fusesource.jansi.internal.JansiLoader in an unnamed module (file:/E:/Maven/lib/jansi-2.4.1.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabledWARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper (file:/E:/Maven/lib/guava-33.2.1-jre.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] CAPTest03 parent [pom]
[INFO] CAPTest03 [jar]
[INFO]
[INFO] ---------------------< customer:CAPTest03-parent >----------------------
[INFO] Building CAPTest03 parent 1.0.0-SNAPSHOT [1/2]
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ CAPTest03-parent ---
[INFO]
[INFO] --- flatten:1.7.0:clean (flatten.clean) @ CAPTest03-parent ---
[INFO] Deleting C:\Users\abcta\CAPTest03\.flattened-pom.xml
[INFO]
[INFO] >>> spring-boot:3.4.4:run (default-cli) > test-compile @ CAPTest03-parent >>>
[INFO]
[INFO] --- enforcer:3.5.0:enforce (Project Structure Checks) @ CAPTest03-parent ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed
[INFO] Rule 1: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed
[INFO] Rule 2: org.apache.maven.enforcer.rules.ReactorModuleConvergence passed
[INFO]
[INFO] --- flatten:1.7.0:flatten (flatten) @ CAPTest03-parent ---
[INFO] Generating flattened POM of project customer:CAPTest03-parent:pom:1.0.0-SNAPSHOT...
[INFO]
[INFO] <<< spring-boot:3.4.4:run (default-cli) < test-compile @ CAPTest03-parent <<<
[INFO]
[INFO]
[INFO] --- spring-boot:3.4.4:run (default-cli) @ CAPTest03-parent ---
[INFO]
[INFO] -------------------------< customer:CAPTest03 >-------------------------
[INFO] Building CAPTest03 1.0.0-SNAPSHOT [2/2]
[INFO] from srv\pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ CAPTest03 ---
[INFO] Deleting C:\Users\abcta\CAPTest03\srv\target
[INFO]
[INFO] --- flatten:1.7.0:clean (flatten.clean) @ CAPTest03 ---
[INFO] Deleting C:\Users\abcta\CAPTest03\srv\.flattened-pom.xml
[INFO]
[INFO] --- cds:3.9.1:clean (cds.clean) @ CAPTest03 ---
[INFO] CleanMojo: Deleting C:\Users\abcta\CAPTest03\srv\src\gen
[INFO] CleanMojo: Deleting C:\Users\abcta\CAPTest03\srv\src\main\resources\edmx\csn.json
[INFO] CleanMojo: Deleting C:\Users\abcta\CAPTest03\srv\src\main\resources\edmx
[INFO] CleanMojo: Deleting C:\Users\abcta\CAPTest03\srv\src\main\resources\schema-h2.sql
[INFO]
[INFO] >>> spring-boot:3.4.4:run (default-cli) > test-compile @ CAPTest03 >>>
[INFO]
[INFO] --- enforcer:3.5.0:enforce (Project Structure Checks) @ CAPTest03 ---
[INFO]
[INFO] --- cds:3.9.1:install-node (cds.install-node) @ CAPTest03 ---
[INFO] InstallNodeMojo: Node.js v20.19.0 already installed.
[INFO]
[INFO] --- cds:3.9.1:npm (cds.npm-ci) @ CAPTest03 ---
[INFO] NpmMojo: Using npm provided by goal install-node: C:\Users\abcta\.m2\repository\com\sap\cds\cds-maven-plugin\cache\unpacked\20.19.0\unpacked-20.19.0-win-x64.zip\node-v20.19.0-win-x64\npm.cmd
[INFO] NpmMojo: Identified C:\Users\abcta\CAPTest03 as reactor base directory.
[INFO] NpmMojo: Using directory containing a .cdsrc.json as working directory: C:\Users\abcta\CAPTest03
[INFO] NpmMojo: Executing [C:\Users\abcta\.m2\repository\com\sap\cds\cds-maven-plugin\cache\unpacked\20.19.0\unpacked-20.19.0-win-x64.zip\node-v20.19.0-win-x64\npm.cmd, ci] in working directory C:\Users\abcta\CAPTest03
[INFO] NpmMojo:
added 251 packages, and audited 252 packages in 41s49 packages are looking for fundingrun `npm fund` for detailsfound 0 vulnerabilities[INFO]
[INFO] --- cds:3.9.1:resolve (cds.resolve) @ CAPTest03 ---
[INFO]
[INFO] --- cds:3.9.1:cds (cds.build) @ CAPTest03 ---
[INFO] CdsMojo: Using npx provided by goal install-node: C:\Users\abcta\.m2\repository\com\sap\cds\cds-maven-plugin\cache\unpacked\20.19.0\unpacked-20.19.0-win-x64.zip\node-v20.19.0-win-x64\npx.cmd
[INFO] CdsMojo: Using directory containing a .cdsrc.json as working directory: C:\Users\abcta\CAPTest03
[INFO] CdsMojo: Executing [C:\Users\abcta\.m2\repository\com\sap\cds\cds-maven-plugin\cache\unpacked\20.19.0\unpacked-20.19.0-win-x64.zip\node-v20.19.0-win-x64\npx.cmd, -c, cds version] in working directory C:\Users\abcta\CAPTest03
[INFO] CdsMojo: Using configured working directory: C:\Users\abcta\CAPTest03
[INFO] CdsMojo: Executing [C:\Users\abcta\.m2\repository\com\sap\cds\cds-maven-plugin\cache\unpacked\20.19.0\unpacked-20.19.0-win-x64.zip\node-v20.19.0-win-x64\npx.cmd, -c, cds build --for java] in working directory C:\Users\abcta\CAPTest03
[INFO] CdsMojo: building project with {versions: { cds: '8.9.2', compiler: '5.9.2', dk: '8.9.3' },target: '.',tasks: [{ src: 'srv', for: 'java', options: { model: [ 'db', 'srv' ] } }]
}
writing generation log to [C:\Users\abcta\CAPTest03\srv\target\cds-build.log]done > wrote output to:srv\src\main\resources\edmx\csn.jsonsrv\src\main\resources\edmx\odata\v4\DemoService.xmlbuild completed in 2181 ms
[INFO] CdsMojo: Executing [C:\Users\abcta\.m2\repository\com\sap\cds\cds-maven-plugin\cache\unpacked\20.19.0\unpacked-20.19.0-win-x64.zip\node-v20.19.0-win-x64\npx.cmd, -c, cds deploy --to h2 --with-mocks --dry --out \"C:\Users\abcta\CAPTest03\srv/src/main/resources/schema-h2.sql\"] in working directory C:\Users\abcta\CAPTest03
[INFO] CdsMojo:
[INFO]
[INFO] --- cds:3.9.1:generate (cds.generate) @ CAPTest03 ---
[INFO] GenerateMojo: Adding code output directory C:\Users\abcta\CAPTest03\srv\src\gen\java to compile source directories.
[INFO] GenerateMojo: Adding directory C:\Users\abcta\CAPTest03\srv\src\gen\resources to resources.
[INFO] GenerateMojo: Using C:\Users\abcta\CAPTest03\srv\src\main\resources\edmx\csn.json to generate Java classes into C:\Users\abcta\CAPTest03\srv\src\gen.
[INFO] GenerateMojo: Using module srv: groupId=customer, artifactId=CAPTest03, version=1.0.0-SNAPSHOT
[INFO] GenerateMojo: Class generation finished successfully
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ CAPTest03 ---
[INFO] Copying 4 resources from src\main\resources to target\classes
[INFO] Copying 1 resource from src\gen\resources to target\classes
[INFO]
[INFO] --- flatten:1.7.0:flatten (flatten) @ CAPTest03 ---
[INFO] Generating flattened POM of project customer:CAPTest03:jar:1.0.0-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.14.0:compile (default-compile) @ CAPTest03 ---
[INFO] Recompiling the module because of added or removed source files.
[INFO] Compiling 6 source files with javac [debug release 21] to target\classes
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ CAPTest03 ---
[INFO] skip non existing resourceDirectory C:\Users\abcta\CAPTest03\srv\src\test\resources
[INFO]
[INFO] --- compiler:3.14.0:testCompile (default-testCompile) @ CAPTest03 ---
[INFO] No sources to compile
[INFO]
[INFO] <<< spring-boot:3.4.4:run (default-cli) < test-compile @ CAPTest03 <<<
[INFO]
[INFO]
[INFO] --- spring-boot:3.4.4:run (default-cli) @ CAPTest03 ---
[INFO] Attaching agents: []
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8. ____ _ __ _ _/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \\\/ ___)| |_)| | | | | || (_| | ) ) ) )' |____| .__|_| |_|_| |_\__, | / / / /=========|_|==============|___/=/_/_/_/:: Spring Boot :: (v3.4.4)2025-05-17T13:29:04.343+09:00 INFO 19584 --- [ restartedMain] customer.captest03.Application : Starting Application using Java 24.0.1 with PID 19584 (C:\Users\abcta\CAPTest03\srv\target\classes started by abcta in C:\Users\abcta\CAPTest03\srv)
2025-05-17T13:29:04.350+09:00 INFO 19584 --- [ restartedMain] customer.captest03.Application : No active profile set, falling back to 1 default profile: "default"
2025-05-17T13:29:04.479+09:00 INFO 19584 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2025-05-17T13:29:04.480+09:00 INFO 19584 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2025-05-17T13:29:06.051+09:00 INFO 19584 --- [ restartedMain] c.s.c.services.impl.utils.CdsModelUtils : Loaded CDS model from CSN resource path 'edmx/csn.json'
2025-05-17T13:29:06.158+09:00 INFO 19584 --- [ restartedMain] c.s.c.services.impl.ServiceCatalogImpl : Registered service OutboxService$InMemory
2025-05-17T13:29:06.167+09:00 INFO 19584 --- [ restartedMain] c.s.c.services.impl.ServiceCatalogImpl : Registered service ApplicationLifecycleService$Default
2025-05-17T13:29:06.178+09:00 INFO 19584 --- [ restartedMain] c.s.c.services.impl.ServiceCatalogImpl : Registered service AuthorizationService$Default
2025-05-17T13:29:06.186+09:00 INFO 19584 --- [ restartedMain] c.s.c.services.impl.ServiceCatalogImpl : Registered service TenantProviderService$Default
2025-05-17T13:29:06.199+09:00 INFO 19584 --- [ restartedMain] c.s.c.services.impl.ServiceCatalogImpl : Registered service DeploymentService$Default
2025-05-17T13:29:06.227+09:00 INFO 19584 --- [ restartedMain] c.s.c.services.impl.ServiceCatalogImpl : Registered service AuditLogService$Default
2025-05-17T13:29:06.302+09:00 INFO 19584 --- [ restartedMain] c.s.c.services.impl.ServiceCatalogImpl : Registered service DemoService
2025-05-17T13:29:06.303+09:00 INFO 19584 --- [ restartedMain] .s.c.r.CdsRuntimeBeanDefinitionRegistrar : Auto-configuration of DataSource beans is explicitly disabled.
2025-05-17T13:29:07.929+09:00 INFO 19584 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8080 (http)
2025-05-17T13:29:07.961+09:00 INFO 19584 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2025-05-17T13:29:07.962+09:00 INFO 19584 --- [ restartedMain] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.39]
2025-05-17T13:29:08.102+09:00 INFO 19584 --- [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext2025-05-17T13:29:08.104+09:00 INFO 19584 --- [ restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 3620 ms
2025-05-17T13:29:08.301+09:00 INFO 19584 --- [ restartedMain] c.s.c.f.s.c.adapter.AdapterBeanFactory : Servlet CdsODataV4Servlet mapped to /odata/v4
2025-05-17T13:29:08.319+09:00 INFO 19584 --- [ restartedMain] c.s.c.f.s.c.adapter.AdapterBeanFactory : Servlet IndexPageServlet mapped to /
2025-05-17T13:29:08.330+09:00 INFO 19584 --- [ restartedMain] c.s.c.f.s.c.adapter.AdapterBeanFactory : Servlet CdsFioriPreviewServlet mapped to /$fiori-preview
2025-05-17T13:29:08.974+09:00 INFO 19584 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2025-05-17T13:29:09.358+09:00 INFO 19584 --- [ restartedMain] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection conn0: url=jdbc:h2:mem:43a17619-9a82-4f03-a01f-0c2ec22faad1 user=SA
2025-05-17T13:29:09.363+09:00 INFO 19584 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2025-05-17T13:29:09.468+09:00 INFO 19584 --- [ restartedMain] c.s.c.services.impl.ServiceCatalogImpl : Registered service PersistenceService$Default
2025-05-17T13:29:09.679+09:00 INFO 19584 --- [ restartedMain] .s.c.a.o.v.m.p.EdmxProviderConfiguration : Initialized Default EDMX V4 Provider
2025-05-17T13:29:09.682+09:00 INFO 19584 --- [ restartedMain] .s.c.a.o.v.m.p.EdmxProviderConfiguration : Initialized Default EDMX I18n Provider
2025-05-17T13:29:09.802+09:00 INFO 19584 --- [ restartedMain] c.sap.cds.services.impl.utils.BuildInfo : git.commit.id: bc6c83d24e9a3ad327d29c7d3ea52ba9cc4cad25
2025-05-17T13:29:09.804+09:00 INFO 19584 --- [ restartedMain] c.sap.cds.services.impl.utils.BuildInfo : maven.version: 3.9.1
2025-05-17T13:29:09.909+09:00 INFO 19584 --- [ restartedMain] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:43a17619-9a82-4f03-a01f-0c2ec22faad1'
2025-05-17T13:29:10.077+09:00 INFO 19584 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729
2025-05-17T13:29:10.163+09:00 INFO 19584 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8080 (http) with context path '/'
2025-05-17T13:29:10.190+09:00 INFO 19584 --- [ restartedMain] customer.captest03.Application : Started Application in 6.771 seconds (process running for 7.771)
- localhost:8080
{"@context":"$metadata#DemoEntity","@metadataEtag":"W/\"86ee92062baef6a3851c524ef6524d42a4d6f666adbecad8ef9a2f398f3e0504\"","value":[]}
点DemoEntity
点 $metadata
点 Fiori Preview
- Postman测试
URL:
http://localhost:8080/odata/v4/DemoService/DemoEntityInput:
{"ID":42, "title":"LSG CSDN Blog", "descr":"Great Job LSG"}Output:
{"@context": "$metadata#DemoEntity/$entity","@metadataEtag": "W/\"86ee92062baef6a3851c524ef6524d42a4d6f666adbecad8ef9a2f398f3e0504\"","ID": 42,"title": "LSG CSDN Blog","descr": "Great Job LSG"
}
以上就是本篇的全部内容。
更多SAP顾问业务知识请点击下面目录链接或东京老树根的博客主页
https://blog.csdn.net/shi_ly/category_12216766.html
东京老树根-CSDN博客