-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathpom.xml
More file actions
138 lines (131 loc) · 4.57 KB
/
pom.xml
File metadata and controls
138 lines (131 loc) · 4.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.digitaltwin.basyx</groupId>
<artifactId>basyx.submodelregistry</artifactId>
<version>${revision}</version>
</parent>
<artifactId>basyx.submodelregistry-client-native</artifactId>
<name>BaSyx Submodel Registry Client Native</name>
<description>BaSyx Submodel Registry Client Native</description>
<packaging>jar</packaging>
<properties>
<openapi.result.folder>${project.basedir}/${openapi.folder.name}</openapi.result.folder>
<openapi.result.file>${openapi.result.folder}/${openapi.name}</openapi.result.file>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}/${generated.folder}</directory>
<excludes>
<exclude>**/.gitkeep</exclude>
</excludes>
<followSymlinks>false</followSymlinks>
</fileset>
<fileset>
<directory>${openapi.result.folder}</directory>
<excludes>
<exclude>**/.gitkeep</exclude>
</excludes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>de.dfki.cos.basys.common</groupId>
<artifactId>jsonpatch-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>jsonpatch-maven-plugin</goal>
</goals>
<configuration>
<input>${project.basedir}/../${openapi.folder.name}/${openapi.base.name}</input>
<patch>${project.basedir}/../${openapi.folder.name}/${patch.base-extensions.name}</patch>
<output>${openapi.result.file}</output>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<generatorName>java</generatorName>
<library>native</library>
<inputSpec>${openapi.result.file}</inputSpec>
<output>${project.basedir}/${generated.folder}</output>
<apiPackage>org.eclipse.digitaltwin.basyx.submodelregistry.client.api</apiPackage>
<invokerPackage>org.eclipse.digitaltwin.basyx.submodelregistry.client</invokerPackage>
<modelPackage>org.eclipse.digitaltwin.basyx.submodelregistry.client.model</modelPackage>
<generateModels>true</generateModels>
<generateApis>true</generateApis>
<generateApiTests>false</generateApiTests>
<generateModelDocumentation>false</generateModelDocumentation>
<generateApiDocumentation>false</generateApiDocumentation>
<generateSupportingFiles>true</generateSupportingFiles>
<templateDirectory>${project.basedir}/templates</templateDirectory>
<supportingFilesToGenerate>
AbstractOpenApiSchema.java,ServerConfiguration.java,ServerVariable.java,Configuration.java,JSON.java,ApiException.java,ApiResponse.java,ApiClient.java,Pair.java,RFC3339DateFormat.java
</supportingFilesToGenerate>
<configOptions>
<java8>true</java8>
<dateLibrary>java8</dateLibrary>
<sourceFolder>java</sourceFolder>
<useJakartaEe>true</useJakartaEe>
</configOptions>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.9.0</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</dependency>
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.digitaltwin.basyx</groupId>
<artifactId>basyx.client</artifactId>
</dependency>
</dependencies>
</project>