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> |
| 24 | <artifactId>apache-asterixdb</artifactId> |
| 25 | <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> |
| 41 | <source.jdk.version>1.8</source.jdk.version> |
| 42 | <target.jdk.version>1.8</target.jdk.version> |
| 43 | <source.java.package.path>org/apache/asterix/jdbc/</source.java.package.path> |
| 44 | <implementation.title>Apache AsterixDB JDBC Driver</implementation.title> |
| 45 | </properties> |
| 46 | |
| 47 | <dependencies> |
| 48 | <dependency> |
| 49 | <groupId>org.apache.asterix</groupId> |
| 50 | <artifactId>asterix-jdbc-core</artifactId> |
| 51 | <version>${project.version}</version> |
| 52 | </dependency> |
| 53 | </dependencies> |
| 54 | |
| 55 | <build> |
| 56 | <plugins> |
| 57 | <plugin> |
| 58 | <groupId>org.apache.maven.plugins</groupId> |
| 59 | <artifactId>maven-jar-plugin</artifactId> |
| 60 | <configuration> |
| 61 | <archive> |
| 62 | <manifestSections> |
| 63 | <manifestSection> |
| 64 | <name>${source.java.package.path}</name> |
| 65 | <manifestEntries> |
| 66 | <Implementation-Title>${implementation.title}</Implementation-Title> |
| 67 | <Implementation-Version>${project.version}</Implementation-Version> |
| 68 | <Implementation-Vendor>${project.organization.name}</Implementation-Vendor> |
| 69 | </manifestEntries> |
| 70 | </manifestSection> |
| 71 | </manifestSections> |
| 72 | </archive> |
| 73 | </configuration> |
| 74 | </plugin> |
| 75 | <plugin> |
| 76 | <groupId>org.apache.maven.plugins</groupId> |
| 77 | <artifactId>maven-shade-plugin</artifactId> |
| 78 | <executions> |
| 79 | <execution> |
| 80 | <goals> |
| 81 | <goal>shade</goal> |
| 82 | </goals> |
| 83 | <configuration> |
| 84 | <shadedArtifactAttached>true</shadedArtifactAttached> |
| 85 | <shadedClassifierName>dist</shadedClassifierName> |
| 86 | <transformers> |
| 87 | <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer"/> |
| 88 | <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer"> |
| 89 | <addHeader>false</addHeader> |
| 90 | </transformer> |
| 91 | <transformer implementation="org.apache.maven.plugins.shade.resource.PluginXmlResourceTransformer"/> |
| 92 | <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| 93 | </transformers> |
| 94 | <filters> |
| 95 | <filter> |
| 96 | <artifact>org.apache.asterix:asterix-jdbc-core</artifact> |
| 97 | <excludes> |
| 98 | <exclude>META-INF/MANIFEST.MF</exclude> |
| 99 | </excludes> |
| 100 | </filter> |
| 101 | <filter> |
| 102 | <artifact>org.apache.httpcomponents:*</artifact> |
| 103 | <excludes> |
| 104 | <exclude>module-info.class</exclude> |
| 105 | <exclude>META-INF/DEPENDENCIES</exclude> |
| 106 | <exclude>META-INF/MANIFEST.MF</exclude> |
| 107 | </excludes> |
| 108 | </filter> |
| 109 | <filter> |
| 110 | <artifact>commons-logging:*</artifact> |
| 111 | <excludes> |
| 112 | <exclude>module-info.class</exclude> |
| 113 | <exclude>META-INF/MANIFEST.MF</exclude> |
| 114 | </excludes> |
| 115 | </filter> |
| 116 | <filter> |
| 117 | <artifact>commons-codec:*</artifact> |
| 118 | <excludes> |
| 119 | <exclude>module-info.class</exclude> |
| 120 | <exclude>META-INF/MANIFEST.MF</exclude> |
| 121 | </excludes> |
| 122 | </filter> |
| 123 | <filter> |
| 124 | <artifact>com.fasterxml.jackson.core:*</artifact> |
| 125 | <excludes> |
| 126 | <exclude>module-info.class</exclude> |
| 127 | <exclude>META-INF/MANIFEST.MF</exclude> |
| 128 | </excludes> |
| 129 | </filter> |
| 130 | </filters> |
| 131 | </configuration> |
| 132 | </execution> |
| 133 | </executions> |
| 134 | </plugin> |
| 135 | </plugins> |
| 136 | </build> |
| 137 | </project> |