Ian Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 1 | <!-- |
| 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 Lychagin | b9a7be2 | 2021-10-06 09:33:42 -0700 | [diff] [blame] | 24 | <artifactId>apache-asterixdb-jdbc</artifactId> |
Ian Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 25 | <groupId>org.apache.asterix</groupId> |
Dmitry Lychagin | d934ea8 | 2022-03-30 11:50:50 -0700 | [diff] [blame^] | 26 | <version>0.9.8-SNAPSHOT</version> |
Ian Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 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 Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 41 | <source.java.package.path>org/apache/asterix/jdbc/</source.java.package.path> |
| 42 | <implementation.title>Apache AsterixDB JDBC Driver</implementation.title> |
Dmitry Lychagin | 70139ba | 2022-02-23 13:19:13 -0800 | [diff] [blame] | 43 | <build.dist.classifier>dist</build.dist.classifier> |
| 44 | <build.license.directory>${project.build.directory}/license</build.license.directory> |
| 45 | <build.license.resources.directory>${build.license.directory}/resources</build.license.resources.directory> |
Ian Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 46 | </properties> |
| 47 | |
| 48 | <dependencies> |
| 49 | <dependency> |
| 50 | <groupId>org.apache.asterix</groupId> |
| 51 | <artifactId>asterix-jdbc-core</artifactId> |
| 52 | <version>${project.version}</version> |
| 53 | </dependency> |
Dmitry Lychagin | 5995f6c | 2021-10-12 20:49:40 -0700 | [diff] [blame] | 54 | <dependency> |
| 55 | <groupId>com.fasterxml.jackson.core</groupId> |
| 56 | <artifactId>jackson-core</artifactId> |
| 57 | </dependency> |
| 58 | <dependency> |
| 59 | <groupId>com.fasterxml.jackson.core</groupId> |
| 60 | <artifactId>jackson-databind</artifactId> |
| 61 | </dependency> |
| 62 | <dependency> |
| 63 | <groupId>org.apache.httpcomponents</groupId> |
| 64 | <artifactId>httpclient</artifactId> |
| 65 | </dependency> |
| 66 | <dependency> |
| 67 | <groupId>org.apache.httpcomponents</groupId> |
| 68 | <artifactId>httpcore</artifactId> |
| 69 | </dependency> |
Ian Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 70 | </dependencies> |
| 71 | |
| 72 | <build> |
| 73 | <plugins> |
| 74 | <plugin> |
Dmitry Lychagin | 70139ba | 2022-02-23 13:19:13 -0800 | [diff] [blame] | 75 | <artifactId>maven-antrun-plugin</artifactId> |
| 76 | <executions> |
| 77 | <execution> |
| 78 | <!-- Copy license for jar --> |
| 79 | <id>copy-license</id> |
| 80 | <phase>prepare-package</phase> |
| 81 | <goals> |
| 82 | <goal>run</goal> |
| 83 | </goals> |
| 84 | <configuration> |
| 85 | <target> |
| 86 | <copy todir="${project.build.directory}/classes/META-INF" overwrite="true"> |
| 87 | <fileset dir="${root.dir}"> |
| 88 | <include name="LICENSE"/> |
| 89 | <include name="NOTICE"/> |
| 90 | </fileset> |
| 91 | </copy> |
| 92 | </target> |
| 93 | </configuration> |
| 94 | </execution> |
| 95 | </executions> |
| 96 | </plugin> |
| 97 | <plugin> |
| 98 | <!-- Generate license for dist jar --> |
| 99 | <groupId>org.apache.hyracks</groupId> |
| 100 | <artifactId>license-automation-plugin</artifactId> |
| 101 | <executions> |
| 102 | <execution> |
| 103 | <phase>prepare-package</phase> |
| 104 | <goals> |
| 105 | <goal>generate</goal> |
| 106 | </goals> |
| 107 | </execution> |
| 108 | </executions> |
| 109 | <configuration> |
| 110 | <outputDir>${build.license.resources.directory}/META-INF</outputDir> |
| 111 | <templateRootDir>${root.dir}</templateRootDir> |
| 112 | <generatedFiles> |
| 113 | <generatedFile> |
| 114 | <template>src/main/licenses/templates/asterix-jdbc-driver-license.ftl</template> |
| 115 | <outputFile>LICENSE</outputFile> |
| 116 | </generatedFile> |
| 117 | <generatedFile> |
| 118 | <template>src/main/licenses/templates/asterix-jdbc-driver-notice.ftl</template> |
| 119 | <outputFile>NOTICE</outputFile> |
| 120 | </generatedFile> |
| 121 | </generatedFiles> |
| 122 | <licenseDirectory>${root.dir}/src/main/licenses/content</licenseDirectory> |
| 123 | <licenseMapOutputFile>${build.license.directory}/license_map.json</licenseMapOutputFile> |
| 124 | <location>${project.artifactId}-${project.version}-${build.dist.classifier}.jar/</location> |
| 125 | <timeoutSecs>10</timeoutSecs> |
| 126 | <downloadDir>${build.license.directory}/download</downloadDir> |
| 127 | <excludedScopes> |
| 128 | <excludedScope>test</excludedScope> |
| 129 | </excludedScopes> |
| 130 | <excludes> |
| 131 | <exclude>org.apache.asterix:*</exclude> |
| 132 | </excludes> |
| 133 | <templateProperties> |
| 134 | <packageName>${implementation.title}</packageName> |
| 135 | </templateProperties> |
| 136 | </configuration> |
| 137 | </plugin> |
| 138 | <plugin> |
Ian Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 139 | <groupId>org.apache.maven.plugins</groupId> |
| 140 | <artifactId>maven-jar-plugin</artifactId> |
| 141 | <configuration> |
| 142 | <archive> |
| 143 | <manifestSections> |
| 144 | <manifestSection> |
| 145 | <name>${source.java.package.path}</name> |
| 146 | <manifestEntries> |
| 147 | <Implementation-Title>${implementation.title}</Implementation-Title> |
| 148 | <Implementation-Version>${project.version}</Implementation-Version> |
| 149 | <Implementation-Vendor>${project.organization.name}</Implementation-Vendor> |
| 150 | </manifestEntries> |
| 151 | </manifestSection> |
| 152 | </manifestSections> |
| 153 | </archive> |
| 154 | </configuration> |
| 155 | </plugin> |
| 156 | <plugin> |
| 157 | <groupId>org.apache.maven.plugins</groupId> |
| 158 | <artifactId>maven-shade-plugin</artifactId> |
| 159 | <executions> |
| 160 | <execution> |
| 161 | <goals> |
| 162 | <goal>shade</goal> |
| 163 | </goals> |
| 164 | <configuration> |
| 165 | <shadedArtifactAttached>true</shadedArtifactAttached> |
Dmitry Lychagin | 70139ba | 2022-02-23 13:19:13 -0800 | [diff] [blame] | 166 | <shadedClassifierName>${build.dist.classifier}</shadedClassifierName> |
Ian Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 167 | <transformers> |
Ian Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 168 | <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
Dmitry Lychagin | 70139ba | 2022-02-23 13:19:13 -0800 | [diff] [blame] | 169 | <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| 170 | <resource>META-INF/LICENSE</resource> |
| 171 | <file>${build.license.resources.directory}/META-INF/LICENSE</file> |
| 172 | </transformer> |
| 173 | <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| 174 | <resource>META-INF/NOTICE</resource> |
| 175 | <file>${build.license.resources.directory}/META-INF/NOTICE</file> |
| 176 | </transformer> |
Ian Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 177 | </transformers> |
Dmitry Lychagin | 41ba90a | 2022-01-06 09:58:09 -0800 | [diff] [blame] | 178 | <relocations> |
| 179 | <relocation> |
| 180 | <pattern>com.fasterxml.jackson</pattern> |
| 181 | <shadedPattern>org.apache.asterix.jdbc.core.deps.com.fasterxml.jackson</shadedPattern> |
| 182 | </relocation> |
| 183 | </relocations> |
Ian Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 184 | <filters> |
| 185 | <filter> |
Dmitry Lychagin | 70139ba | 2022-02-23 13:19:13 -0800 | [diff] [blame] | 186 | <artifact>org.apache.asterix:asterix-jdbc-driver</artifact> |
| 187 | <excludes> |
| 188 | <exclude>META-INF/NOTICE</exclude> |
| 189 | <exclude>META-INF/LICENSE</exclude> |
| 190 | </excludes> |
| 191 | </filter> |
| 192 | <filter> |
Ian Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 193 | <artifact>org.apache.asterix:asterix-jdbc-core</artifact> |
| 194 | <excludes> |
Dmitry Lychagin | 70139ba | 2022-02-23 13:19:13 -0800 | [diff] [blame] | 195 | <exclude>META-INF/NOTICE</exclude> |
| 196 | <exclude>META-INF/LICENSE</exclude> |
Ian Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 197 | <exclude>META-INF/MANIFEST.MF</exclude> |
| 198 | </excludes> |
| 199 | </filter> |
| 200 | <filter> |
| 201 | <artifact>org.apache.httpcomponents:*</artifact> |
| 202 | <excludes> |
| 203 | <exclude>module-info.class</exclude> |
Dmitry Lychagin | 41ba90a | 2022-01-06 09:58:09 -0800 | [diff] [blame] | 204 | <exclude>META-INF/maven/org.apache.httpcomponents/*/pom.*</exclude> |
| 205 | <exclude>META-INF/NOTICE</exclude> |
| 206 | <exclude>META-INF/LICENSE</exclude> |
Ian Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 207 | <exclude>META-INF/DEPENDENCIES</exclude> |
| 208 | <exclude>META-INF/MANIFEST.MF</exclude> |
| 209 | </excludes> |
| 210 | </filter> |
| 211 | <filter> |
| 212 | <artifact>commons-logging:*</artifact> |
| 213 | <excludes> |
| 214 | <exclude>module-info.class</exclude> |
Dmitry Lychagin | 41ba90a | 2022-01-06 09:58:09 -0800 | [diff] [blame] | 215 | <exclude>META-INF/maven/commons-logging/*/pom.*</exclude> |
Dmitry Lychagin | 70139ba | 2022-02-23 13:19:13 -0800 | [diff] [blame] | 216 | <exclude>META-INF/NOTICE.*</exclude> |
| 217 | <exclude>META-INF/LICENSE.*</exclude> |
Ian Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 218 | <exclude>META-INF/MANIFEST.MF</exclude> |
| 219 | </excludes> |
| 220 | </filter> |
| 221 | <filter> |
| 222 | <artifact>commons-codec:*</artifact> |
| 223 | <excludes> |
| 224 | <exclude>module-info.class</exclude> |
Dmitry Lychagin | 41ba90a | 2022-01-06 09:58:09 -0800 | [diff] [blame] | 225 | <exclude>META-INF/maven/commons-codec/*/pom.*</exclude> |
Dmitry Lychagin | 70139ba | 2022-02-23 13:19:13 -0800 | [diff] [blame] | 226 | <exclude>META-INF/NOTICE.*</exclude> |
| 227 | <exclude>META-INF/LICENSE.*</exclude> |
Ian Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 228 | <exclude>META-INF/MANIFEST.MF</exclude> |
| 229 | </excludes> |
| 230 | </filter> |
| 231 | <filter> |
| 232 | <artifact>com.fasterxml.jackson.core:*</artifact> |
| 233 | <excludes> |
| 234 | <exclude>module-info.class</exclude> |
Dmitry Lychagin | 41ba90a | 2022-01-06 09:58:09 -0800 | [diff] [blame] | 235 | <exclude>META-INF/maven/com.fasterxml.jackson.core/*/pom.*</exclude> |
| 236 | <exclude>META-INF/services/**</exclude> |
| 237 | <exclude>META-INF/NOTICE</exclude> |
| 238 | <exclude>META-INF/LICENSE</exclude> |
Ian Maxon | 0cb7219 | 2021-10-01 15:55:37 -0700 | [diff] [blame] | 239 | <exclude>META-INF/MANIFEST.MF</exclude> |
| 240 | </excludes> |
| 241 | </filter> |
| 242 | </filters> |
| 243 | </configuration> |
| 244 | </execution> |
| 245 | </executions> |
| 246 | </plugin> |
| 247 | </plugins> |
| 248 | </build> |
| 249 | </project> |