forked from hsperker/product-knowledge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
207 lines (195 loc) · 8.22 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
206
207
<?xml version="1.0" encoding="UTF-8"?>
<!--
Pom for building complete product
See copyright notice in the top folder
See authors file in the top folder
See license file in the top folder
-->
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>io.catenax</groupId>
<artifactId>knowledge</artifactId>
<packaging>pom</packaging>
<version>0.7.4-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>
<tx.edc.version>0.2.0</tx.edc.version>
<edc.version>0.0.1-20221006-SNAPSHOT</edc.version>
<failsafe.version>3.2.4</failsafe.version>
<okhttp.version>4.10.0</okhttp.version>
<rdf4j.version>4.2.0</rdf4j.version>
<slf4j.version>2.0.0-alpha7</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>
<!-- uncomment once the jitpack problem is resolved -->
<module>ontology</module>
<!-- uncomment once the .env problem has been solved by SSO -->
<!--<module>ux</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.0.0-M7</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>2.4.3</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> To be able to use product edc patch "releases"
<id>ka-edc-snapshots</id>
<url>https://maven.pkg.github.com/catenax/ka-product-edc</url>
</repository>-->
<repository> <!-- To be able to use edc patch "releases" -->
<id>ka-dsc-snapshots</id>
<url>https://maven.pkg.github.com/catenax/ka-DataspaceConnector</url>
</repository>
<repository> <!-- webvowl -->
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<repository> <!-- To be able to use product edc releases -->
<id>edc</id>
<url>https://maven.pkg.github.com/catenax-ng/product-edc</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>