Skip to content

Commit 37f4f7d

Browse files
authored
Added a Main project for ClickHouse (#2197)
1 parent 276d015 commit 37f4f7d

10 files changed

Lines changed: 460 additions & 38 deletions

File tree

example/main-clickhouse/pom.xml

Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,216 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<parent>
6+
<groupId>org.finos.vuu</groupId>
7+
<artifactId>example</artifactId>
8+
<version>6.2.0-SNAPSHOT</version>
9+
</parent>
10+
11+
<artifactId>main-clickhouse</artifactId>
12+
<name>${project.artifactId}</name>
13+
14+
<dependencies>
15+
16+
<dependency>
17+
<groupId>org.finos.vuu</groupId>
18+
<artifactId>vuu</artifactId>
19+
<version>6.2.0-SNAPSHOT</version>
20+
</dependency>
21+
22+
<dependency>
23+
<groupId>org.finos.vuu</groupId>
24+
<artifactId>permission</artifactId>
25+
<version>6.2.0-SNAPSHOT</version>
26+
</dependency>
27+
28+
<dependency>
29+
<groupId>org.finos.vuu.plugin</groupId>
30+
<artifactId>clickhouse-plugin</artifactId>
31+
<version>6.2.0-SNAPSHOT</version>
32+
</dependency>
33+
34+
<dependency>
35+
<groupId>org.finos.vuu.plugin</groupId>
36+
<artifactId>clickhouse-plugin</artifactId>
37+
<version>6.2.0-SNAPSHOT</version>
38+
<classifier>tests</classifier>
39+
<type>test-jar</type>
40+
</dependency>
41+
42+
<dependency>
43+
<groupId>org.scala-lang</groupId>
44+
<artifactId>scala3-library_3</artifactId>
45+
<version>${scala.version}</version>
46+
</dependency>
47+
48+
<dependency>
49+
<groupId>com.typesafe</groupId>
50+
<artifactId>config</artifactId>
51+
<version>${typesafe.conf.version}</version>
52+
</dependency>
53+
54+
<dependency>
55+
<groupId>ch.qos.logback</groupId>
56+
<artifactId>logback-classic</artifactId>
57+
<version>${logback.version}</version>
58+
</dependency>
59+
60+
<dependency>
61+
<groupId>org.testcontainers</groupId>
62+
<artifactId>testcontainers</artifactId>
63+
<version>${testcontainers.version}</version>
64+
</dependency>
65+
66+
<dependency>
67+
<groupId>com.dimafeng</groupId>
68+
<artifactId>testcontainers-scala-scalatest_3</artifactId>
69+
<version>${testcontainers.scalatest.version}</version>
70+
</dependency>
71+
72+
<dependency>
73+
<groupId>org.scalatest</groupId>
74+
<artifactId>scalatest_3</artifactId>
75+
<version>${scalatest.version}</version>
76+
<scope>test</scope>
77+
<exclusions>
78+
<exclusion>
79+
<groupId>org.scala-lang</groupId>
80+
<artifactId>scala3-library_3</artifactId>
81+
</exclusion>
82+
</exclusions>
83+
</dependency>
84+
85+
</dependencies>
86+
87+
<build>
88+
<sourceDirectory>src/main/java</sourceDirectory>
89+
<testSourceDirectory>src/test/java</testSourceDirectory>
90+
91+
<plugins>
92+
93+
<plugin>
94+
<groupId>org.apache.maven.plugins</groupId>
95+
<artifactId>maven-source-plugin</artifactId>
96+
<executions>
97+
<execution>
98+
<phase>compile</phase>
99+
<goals>
100+
<goal>jar</goal>
101+
</goals>
102+
</execution>
103+
</executions>
104+
</plugin>
105+
106+
<plugin>
107+
<groupId>org.apache.maven.plugins</groupId>
108+
<artifactId>maven-release-plugin</artifactId>
109+
</plugin>
110+
111+
<plugin>
112+
<groupId>org.apache.maven.plugins</groupId>
113+
<artifactId>maven-javadoc-plugin</artifactId>
114+
<executions>
115+
<execution>
116+
<id>attach-javadocs</id>
117+
<goals>
118+
<goal>jar</goal>
119+
</goals>
120+
</execution>
121+
</executions>
122+
</plugin>
123+
124+
<plugin>
125+
<groupId>net.alchim31.maven</groupId>
126+
<artifactId>scala-maven-plugin</artifactId>
127+
<executions>
128+
<execution>
129+
<goals>
130+
<goal>compile</goal>
131+
<goal>testCompile</goal>
132+
</goals>
133+
</execution>
134+
</executions>
135+
<configuration>
136+
<sourceDir>src/main/scala</sourceDir>
137+
<testSourceDir>src/test/scala</testSourceDir>
138+
<args>
139+
<arg>-deprecation</arg>
140+
</args>
141+
<jvmArgs>
142+
<jvmArg>-Xms64m</jvmArg>
143+
<jvmArg>-Xmx1024m</jvmArg>
144+
</jvmArgs>
145+
</configuration>
146+
</plugin>
147+
148+
<plugin>
149+
<groupId>org.codehaus.mojo</groupId>
150+
<artifactId>exec-maven-plugin</artifactId>
151+
<executions>
152+
<execution>
153+
<goals>
154+
<goal>exec</goal>
155+
</goals>
156+
</execution>
157+
</executions>
158+
<configuration>
159+
<executable>java</executable>
160+
<arguments>
161+
<argument>-Xmx10G</argument>
162+
<argument>-classpath</argument>
163+
<classpath />
164+
<argument>-Dvuu.webroot=../../vuu-ui/deployed_apps/app-vuu-example</argument>
165+
<argument>-Dvuu.keyPath=src/main/resources/certs/key.pem</argument>
166+
<argument>-Dvuu.certPath=src/main/resources/certs/cert.pem</argument>
167+
<argument>-Dlogback.configurationFile=logback-netty.xml</argument>
168+
<argument>org.finos.vuu.SimulMain</argument>
169+
</arguments>
170+
</configuration>
171+
</plugin>
172+
173+
<plugin>
174+
<groupId>org.apache.maven.plugins</groupId>
175+
<artifactId>maven-jar-plugin</artifactId>
176+
<executions>
177+
<execution>
178+
<goals>
179+
<goal>test-jar</goal>
180+
</goals>
181+
</execution>
182+
</executions>
183+
</plugin>
184+
185+
<!-- disable surefire -->
186+
<plugin>
187+
<groupId>org.apache.maven.plugins</groupId>
188+
<artifactId>maven-surefire-plugin</artifactId>
189+
<configuration>
190+
<!--skipTests>true</skipTests-->
191+
</configuration>
192+
</plugin>
193+
194+
<!-- enable scalatest -->
195+
<plugin>
196+
<groupId>org.scalatest</groupId>
197+
<artifactId>scalatest-maven-plugin</artifactId>
198+
<configuration>
199+
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
200+
<junitxml>.</junitxml>
201+
<filereports>test-reports.txt</filereports>
202+
</configuration>
203+
<executions>
204+
<execution>
205+
<id>test</id>
206+
<goals>
207+
<goal>test</goal>
208+
</goals>
209+
</execution>
210+
</executions>
211+
</plugin>
212+
213+
</plugins>
214+
</build>
215+
216+
</project>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
vuu.webroot="vuu-ui/deployed_apps/app-vuu-example"
2+
vuu.certPath="example/main/src/main/resources/certs/cert.pem"
3+
vuu.keyPath="example/main/src/main/resources/certs/key.pem"
4+
vuu.ssl=true
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<configuration>
2+
3+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
4+
<!-- encoders are assigned the type
5+
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
6+
<encoder>
7+
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
8+
</encoder>
9+
</appender>
10+
11+
<logger name="org.finos.vuu" level="DEBUG"/>
12+
13+
<root level="INFO">
14+
<appender-ref ref="STDOUT"/>
15+
</root>
16+
17+
18+
</configuration>

0 commit comments

Comments
 (0)