-
Notifications
You must be signed in to change notification settings - Fork 3
/
pom.xml
199 lines (180 loc) · 6.64 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
<!--
~ Smart Data Lake Examples - Build your data lake the smart way.
~
~ Copyright © 2019 ELCA Informatique SA (<https://www.elca.ch>)
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!--
By setting sdl-parent as parent you get proper dependency management for Spark and predefined plugin management
Alternatively you could import Spark dependency management from sdl-parent with scope=import (or also directly from spark-parent),
and need to copy all version properties from sdl-parent.pom into this pom.
-->
<parent>
<groupId>io.smartdatalake</groupId>
<artifactId>sdl-parent</artifactId>
<!--
Set the smartdatalake version to use here.
If version cannot be resolved, make sure maven central repository is defined in settings.xml and the corresponding profile activated.
If version in IntelliJ still cannot be resolved, a restart of IntelliJ might help!
-->
<version>2.5.2</version>
</parent>
<artifactId>sdl-examples</artifactId>
<name>Smart Data Lake Examples</name>
<properties>
<!-- default scala version - use predefined maven profiles to override -->
<scala.minor.version>2.12</scala.minor.version>
<scala.version>${scala.minor.version}.18</scala.version>
<!-- must match Python arrow version defined in requirements.txt -->
<!-- see also sdl-parent pom.xml for arrow version that spark is built against -->
<arrow.version>7.0.0</arrow.version>
<!-- additional java cmd line properties for java 17, set automatically through profile jvm17, otherwise dummy value stays -->
<jvm17.opens>-Ddummy</jvm17.opens>
</properties>
<profiles>
<profile>
<id>jdk17</id>
<activation>
<jdk>[17, ]</jdk>
</activation>
<properties>
<jvm17.opens>--add-opens=java.base/sun.nio.ch=ALL-UNNAMED</jvm17.opens>
</properties>
</profile>
</profiles>
<repositories>
<repository>
<id>sonatype-snapshot</id>
<name>Sonatype Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
<build>
<sourceDirectory>src/main/scala</sourceDirectory>
<outputDirectory>target</outputDirectory>
<plugins>
<!-- Compiles Scala sources. -->
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
</plugin>
<!-- Copies files in resources folders to target folder. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<!-- Creates the jar without dependencies -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
</plugin>
<!-- Checks for declared but unused and undeclared but used dependencies in the verify stage -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
</plugin>
<!-- check for dependency version conflicts -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
<!-- Executes examples -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>all</id>
<phase>verify</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<arguments>
<argument>${jvm17.opens}</argument>
<argument>-classpath</argument>
<classpath/>
<argument>io.smartdatalake.app.LocalSmartDataLakeBuilder</argument>
<argument>--feed-sel</argument>
<argument>.*</argument>
<argument>--config</argument>
<argument>${project.build.directory}</argument>
</arguments>
</configuration>
</execution>
</executions>
<configuration>
<executable>java</executable>
<workingDirectory>${project.build.directory}</workingDirectory>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<!-- smartdatalakebuilder -->
<dependency>
<groupId>io.smartdatalake</groupId>
<artifactId>sdl-core_${scala.minor.version}</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>io.smartdatalake</groupId>
<artifactId>sdl-deltalake_${scala.minor.version}</artifactId>
<version>${project.parent.version}</version>
</dependency>
<!-- override scope for spark dependencies to include/exclude them correctly for the fat-jar -->
<!-- note that the corresponding profile defining spark.deps.scope is inherited from sdl-parent -->
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_${scala.minor.version}</artifactId>
<version>${spark.version}</version>
<scope>${spark.deps.scope}</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_${scala.minor.version}</artifactId>
<version>${spark.version}</version>
<scope>${spark.deps.scope}</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-hive_${scala.minor.version}</artifactId>
<version>${spark.version}</version>
<scope>${spark.deps.scope}</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-catalyst_${scala.minor.version}</artifactId>
<version>${spark.version}</version>
<scope>${spark.deps.scope}</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-avro_${scala.minor.version}</artifactId>
<version>${spark.version}</version>
<scope>${spark.deps.scope}</scope>
</dependency>
<dependency>
<groupId>io.smartdatalake</groupId>
<artifactId>sdl-core_${scala.minor.version}</artifactId>
<version>${project.parent.version}</version>
<classifier>test-jar</classifier>
<scope>test</scope>
</dependency>
</dependencies>
</project>