blob: 75c288a8f3f718ed61a0b37a596a0f45e58d8675 [file] [log] [blame]
Ian Maxon0cb72192021-10-01 15:55:37 -07001<!--
2 ! Licensed to the Apache Software Foundation (ASF) under one
3 ! or more contributor license agreements. See the NOTICE file
4 ! distributed with this work for additional information
5 ! regarding copyright ownership. The ASF licenses this file
6 ! to you under the Apache License, Version 2.0 (the
7 ! "License"); you may not use this file except in compliance
8 ! with the License. You may obtain a copy of the License at
9 !
10 ! http://www.apache.org/licenses/LICENSE-2.0
11 !
12 ! Unless required by applicable law or agreed to in writing,
13 ! software distributed under the License is distributed on an
14 ! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 ! KIND, either express or implied. See the License for the
16 ! specific language governing permissions and limitations
17 ! under the License.
18 !-->
19<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21 <modelVersion>4.0.0</modelVersion>
22
23 <parent>
Dmitry Lychaginb9a7be22021-10-06 09:33:42 -070024 <artifactId>apache-asterixdb-jdbc</artifactId>
Ian Maxon0cb72192021-10-01 15:55:37 -070025 <groupId>org.apache.asterix</groupId>
26 <version>0.9.7-SNAPSHOT</version>
27 </parent>
28 <artifactId>asterix-jdbc-driver</artifactId>
29
30 <licenses>
31 <license>
32 <name>Apache License, Version 2.0</name>
33 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
34 <distribution>repo</distribution>
35 <comments>A business-friendly OSS license</comments>
36 </license>
37 </licenses>
38
39 <properties>
40 <root.dir>${basedir}/..</root.dir>
Ian Maxon0cb72192021-10-01 15:55:37 -070041 <source.java.package.path>org/apache/asterix/jdbc/</source.java.package.path>
42 <implementation.title>Apache AsterixDB JDBC Driver</implementation.title>
43 </properties>
44
45 <dependencies>
46 <dependency>
47 <groupId>org.apache.asterix</groupId>
48 <artifactId>asterix-jdbc-core</artifactId>
49 <version>${project.version}</version>
50 </dependency>
Dmitry Lychagin5995f6c2021-10-12 20:49:40 -070051 <dependency>
52 <groupId>com.fasterxml.jackson.core</groupId>
53 <artifactId>jackson-core</artifactId>
54 </dependency>
55 <dependency>
56 <groupId>com.fasterxml.jackson.core</groupId>
57 <artifactId>jackson-databind</artifactId>
58 </dependency>
59 <dependency>
60 <groupId>org.apache.httpcomponents</groupId>
61 <artifactId>httpclient</artifactId>
62 </dependency>
63 <dependency>
64 <groupId>org.apache.httpcomponents</groupId>
65 <artifactId>httpcore</artifactId>
66 </dependency>
Ian Maxon0cb72192021-10-01 15:55:37 -070067 </dependencies>
68
69 <build>
70 <plugins>
71 <plugin>
72 <groupId>org.apache.maven.plugins</groupId>
73 <artifactId>maven-jar-plugin</artifactId>
74 <configuration>
75 <archive>
76 <manifestSections>
77 <manifestSection>
78 <name>${source.java.package.path}</name>
79 <manifestEntries>
80 <Implementation-Title>${implementation.title}</Implementation-Title>
81 <Implementation-Version>${project.version}</Implementation-Version>
82 <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
83 </manifestEntries>
84 </manifestSection>
85 </manifestSections>
86 </archive>
87 </configuration>
88 </plugin>
89 <plugin>
90 <groupId>org.apache.maven.plugins</groupId>
91 <artifactId>maven-shade-plugin</artifactId>
92 <executions>
93 <execution>
94 <goals>
95 <goal>shade</goal>
96 </goals>
97 <configuration>
98 <shadedArtifactAttached>true</shadedArtifactAttached>
99 <shadedClassifierName>dist</shadedClassifierName>
100 <transformers>
101 <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer"/>
102 <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
103 <addHeader>false</addHeader>
104 </transformer>
105 <transformer implementation="org.apache.maven.plugins.shade.resource.PluginXmlResourceTransformer"/>
106 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
107 </transformers>
Dmitry Lychagin41ba90a2022-01-06 09:58:09 -0800108 <relocations>
109 <relocation>
110 <pattern>com.fasterxml.jackson</pattern>
111 <shadedPattern>org.apache.asterix.jdbc.core.deps.com.fasterxml.jackson</shadedPattern>
112 </relocation>
113 </relocations>
Ian Maxon0cb72192021-10-01 15:55:37 -0700114 <filters>
115 <filter>
116 <artifact>org.apache.asterix:asterix-jdbc-core</artifact>
117 <excludes>
118 <exclude>META-INF/MANIFEST.MF</exclude>
119 </excludes>
120 </filter>
121 <filter>
122 <artifact>org.apache.httpcomponents:*</artifact>
123 <excludes>
124 <exclude>module-info.class</exclude>
Dmitry Lychagin41ba90a2022-01-06 09:58:09 -0800125 <exclude>META-INF/maven/org.apache.httpcomponents/*/pom.*</exclude>
126 <exclude>META-INF/NOTICE</exclude>
127 <exclude>META-INF/LICENSE</exclude>
Ian Maxon0cb72192021-10-01 15:55:37 -0700128 <exclude>META-INF/DEPENDENCIES</exclude>
129 <exclude>META-INF/MANIFEST.MF</exclude>
130 </excludes>
131 </filter>
132 <filter>
133 <artifact>commons-logging:*</artifact>
134 <excludes>
135 <exclude>module-info.class</exclude>
Dmitry Lychagin41ba90a2022-01-06 09:58:09 -0800136 <exclude>META-INF/maven/commons-logging/*/pom.*</exclude>
137 <exclude>META-INF/NOTICE</exclude>
138 <exclude>META-INF/LICENSE</exclude>
Ian Maxon0cb72192021-10-01 15:55:37 -0700139 <exclude>META-INF/MANIFEST.MF</exclude>
140 </excludes>
141 </filter>
142 <filter>
143 <artifact>commons-codec:*</artifact>
144 <excludes>
145 <exclude>module-info.class</exclude>
Dmitry Lychagin41ba90a2022-01-06 09:58:09 -0800146 <exclude>META-INF/maven/commons-codec/*/pom.*</exclude>
147 <exclude>META-INF/NOTICE</exclude>
148 <exclude>META-INF/LICENSE</exclude>
Ian Maxon0cb72192021-10-01 15:55:37 -0700149 <exclude>META-INF/MANIFEST.MF</exclude>
150 </excludes>
151 </filter>
152 <filter>
153 <artifact>com.fasterxml.jackson.core:*</artifact>
154 <excludes>
155 <exclude>module-info.class</exclude>
Dmitry Lychagin41ba90a2022-01-06 09:58:09 -0800156 <exclude>META-INF/maven/com.fasterxml.jackson.core/*/pom.*</exclude>
157 <exclude>META-INF/services/**</exclude>
158 <exclude>META-INF/NOTICE</exclude>
159 <exclude>META-INF/LICENSE</exclude>
Ian Maxon0cb72192021-10-01 15:55:37 -0700160 <exclude>META-INF/MANIFEST.MF</exclude>
161 </excludes>
162 </filter>
163 </filters>
164 </configuration>
165 </execution>
166 </executions>
167 </plugin>
168 </plugins>
169 </build>
170</project>