|
| 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>tech.ydb.jdbc.examples</groupId> |
| 7 | + <artifactId>ydb-jdbc-examples</artifactId> |
| 8 | + <version>1.1.0-SNAPSHOT</version> |
| 9 | + </parent> |
| 10 | + |
| 11 | + <artifactId>ydb-jdbc-basic-example</artifactId> |
| 12 | + <name>Basic JDBC Example</name> |
| 13 | + <packaging>jar</packaging> |
| 14 | + |
| 15 | + <dependencies> |
| 16 | + <dependency> |
| 17 | + <groupId>org.apache.logging.log4j</groupId> |
| 18 | + <artifactId>log4j-slf4j-impl</artifactId> |
| 19 | + </dependency> |
| 20 | + |
| 21 | + <dependency> |
| 22 | + <groupId>org.slf4j</groupId> |
| 23 | + <artifactId>jul-to-slf4j</artifactId> |
| 24 | + </dependency> |
| 25 | + |
| 26 | + <dependency> |
| 27 | + <groupId>tech.ydb.jdbc</groupId> |
| 28 | + <artifactId>ydb-jdbc-driver-shaded</artifactId> |
| 29 | + </dependency> |
| 30 | + </dependencies> |
| 31 | + |
| 32 | + <build> |
| 33 | + <finalName>jdbc-basic-example</finalName> |
| 34 | + <plugins> |
| 35 | + <!-- copy dependencies to libs folder --> |
| 36 | + <plugin> |
| 37 | + <groupId>org.apache.maven.plugins</groupId> |
| 38 | + <artifactId>maven-dependency-plugin</artifactId> |
| 39 | + </plugin> |
| 40 | + <!-- add libs folder to classpath --> |
| 41 | + <plugin> |
| 42 | + <groupId>org.apache.maven.plugins</groupId> |
| 43 | + <artifactId>maven-jar-plugin</artifactId> |
| 44 | + <configuration> |
| 45 | + <archive> |
| 46 | + <manifest> |
| 47 | + <addClasspath>true</addClasspath> |
| 48 | + <classpathPrefix>libs/</classpathPrefix> |
| 49 | + <mainClass>tech.ydb.jdbc.example.Main</mainClass> |
| 50 | + </manifest> |
| 51 | + </archive> |
| 52 | + </configuration> |
| 53 | + </plugin> |
| 54 | + </plugins> |
| 55 | + </build> |
| 56 | +</project> |
0 commit comments