forked from hsperker/product-knowledge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
205 lines (193 loc) · 8.08 KB
/
pom.xml
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<?xml version="1.0" encoding="UTF-8"?>
<!--
* Copyright (c) 2021,2023 Contributors to the Catena-X Association
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
-->
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>io.catenax</groupId>
<artifactId>knowledge</artifactId>
<packaging>pom</packaging>
<version>1.12.19-SNAPSHOT</version>
<name>Catena-X Knowledge Agents</name>
<description>Top Level Project for all Knowledge Agents Modules</description>
<dependencies>
</dependencies>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<skipTests>false</skipTests>
<com.azure.sdk.bom.version>1.2.2</com.azure.sdk.bom.version>
<junit.version>5.9.0</junit.version>
<mockito.version>4.6.1</mockito.version>
<failsafe.version>3.2.4</failsafe.version>
<okhttp.version>4.9.3</okhttp.version>
<rdf4j.version>4.2.0</rdf4j.version>
<slf4j.version>2.0.3</slf4j.version>
<!-- Source characteristics -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- REPO -->
<repo>ghcr.io/catenax-ng/product-knowledge/</repo>
<platform>linux/amd64</platform>
</properties>
<modules>
<module>dataspace</module>
</modules>
<dependencyManagement>
<dependencies>
<!-- BOMs -->
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-sdk-bom</artifactId>
<version>${com.azure.sdk.bom.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-bom</artifactId>
<version>${mockito.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.0</version>
<!-- unfortunately you have to repeat that in all relevant sub-modules -->
<configuration>
<groups>!online</groups>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<!--
NOTE: To build and tag docker images the `docker` executable needs to
be on the PATH to be used by the exec-maven-plugin plugin
-->
<executions>
<execution>
<id>docker-build-${project.artifactId}:${project.version}</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>docker</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>--platform</argument>
<argument>${platform}</argument>
<argument>-f</argument>
<argument>src/main/docker/Dockerfile</argument>
<argument>--build-arg</argument>
<argument>JAR=target/${project.artifactId}.jar</argument>
<argument>--build-arg</argument>
<argument>LIB=target/lib</argument>
<argument>-t</argument>
<argument>${repo}${project.artifactId}:${project.version}</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>docker-tag-${project.artifactId}:latest</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>docker</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>tag</argument>
<argument>${repo}${project.artifactId}:${project.version}</argument>
<argument>${repo}${project.artifactId}:latest</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>docker-push-${project.artifactId}:${project.version}</id>
<phase>deploy</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>docker</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>push</argument>
<argument>${repo}${project.artifactId}:${project.version}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<repositories>
<repository>
<id>central</id>
<name>Maven Central</name>
<url>https://repo1.maven.org/maven2</url>
</repository>
<repository> <!-- webvowl -->
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<repository> <!-- To be able to use Eclipse aas4j -->
<id>aas4j</id>
<url>https://maven.pkg.github.com/arnoweiss/aas4j-transformation-library</url>
</repository>
<repository> <!-- runtime meta-model -->
<id>oss</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>github</id>
<name>Catena-X Maven Repository on Github</name>
<url>https://maven.pkg.github.com/catenax-ng/product-knowledge</url>
</repository>
</distributionManagement>
</project>