|
| 1 | +<!-- |
| 2 | +Copyright (c) 1997-2011, PostgreSQL Global Development Group |
| 3 | +All rights reserved. |
| 4 | +
|
| 5 | +Redistribution and use in source and binary forms, with or without |
| 6 | +modification, are permitted provided that the following conditions are met: |
| 7 | +
|
| 8 | +1. Redistributions of source code must retain the above copyright notice, |
| 9 | + this list of conditions and the following disclaimer. |
| 10 | +2. Redistributions in binary form must reproduce the above copyright notice, |
| 11 | + this list of conditions and the following disclaimer in the documentation |
| 12 | + and/or other materials provided with the distribution. |
| 13 | +3. Neither the name of the PostgreSQL Global Development Group nor the names |
| 14 | + of its contributors may be used to endorse or promote products derived |
| 15 | + from this software without specific prior written permission. |
| 16 | +
|
| 17 | +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 18 | +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 19 | +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 20 | +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
| 21 | +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 22 | +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 23 | +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 24 | +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 25 | +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 26 | +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 27 | +POSSIBILITY OF SUCH DAMAGE. |
| 28 | +--> |
| 29 | + |
| 30 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 31 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 32 | + <modelVersion>4.0.0</modelVersion> |
| 33 | + |
| 34 | + <groupId>org.postgresql</groupId> |
| 35 | + <artifactId>pgjdbc-benchmark</artifactId> |
| 36 | + <version>1.0</version> |
| 37 | + <packaging>jar</packaging> |
| 38 | + |
| 39 | + <name>JDBC driver performance benchmarks</name> |
| 40 | + |
| 41 | + <prerequisites> |
| 42 | + <maven>3.0</maven> |
| 43 | + </prerequisites> |
| 44 | + |
| 45 | + <dependencies> |
| 46 | + <dependency> |
| 47 | + <groupId>org.openjdk.jmh</groupId> |
| 48 | + <artifactId>jmh-core</artifactId> |
| 49 | + <version>${jmh.version}</version> |
| 50 | + </dependency> |
| 51 | + <dependency> |
| 52 | + <groupId>org.openjdk.jmh</groupId> |
| 53 | + <artifactId>jmh-generator-annprocess</artifactId> |
| 54 | + <version>${jmh.version}</version> |
| 55 | + <scope>provided</scope> |
| 56 | + </dependency> |
| 57 | + <dependency> |
| 58 | + <groupId>org.postgresql</groupId> |
| 59 | + <artifactId>postgresql</artifactId> |
| 60 | + <version>9.4-1201-jdbc41</version> |
| 61 | + <scope>provided</scope> |
| 62 | + </dependency> |
| 63 | + </dependencies> |
| 64 | + |
| 65 | + <properties> |
| 66 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 67 | + <jmh.version>1.9.3</jmh.version> |
| 68 | + <javac.target>1.6</javac.target> |
| 69 | + <uberjar.name>benchmarks</uberjar.name> |
| 70 | + </properties> |
| 71 | + |
| 72 | + <build> |
| 73 | + <plugins> |
| 74 | + <plugin> |
| 75 | + <groupId>org.apache.maven.plugins</groupId> |
| 76 | + <artifactId>maven-compiler-plugin</artifactId> |
| 77 | + <version>3.1</version> |
| 78 | + <configuration> |
| 79 | + <compilerVersion>${javac.target}</compilerVersion> |
| 80 | + <source>${javac.target}</source> |
| 81 | + <target>${javac.target}</target> |
| 82 | + </configuration> |
| 83 | + </plugin> |
| 84 | + <plugin> |
| 85 | + <groupId>org.apache.maven.plugins</groupId> |
| 86 | + <artifactId>maven-shade-plugin</artifactId> |
| 87 | + <version>2.2</version> |
| 88 | + <executions> |
| 89 | + <execution> |
| 90 | + <phase>package</phase> |
| 91 | + <goals> |
| 92 | + <goal>shade</goal> |
| 93 | + </goals> |
| 94 | + <configuration> |
| 95 | + <finalName>${uberjar.name}</finalName> |
| 96 | + <transformers> |
| 97 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 98 | + <mainClass>org.openjdk.jmh.Main</mainClass> |
| 99 | + </transformer> |
| 100 | + </transformers> |
| 101 | + <filters> |
| 102 | + <filter> |
| 103 | + <!-- |
| 104 | + Shading signed JARs will fail without this. |
| 105 | + http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar |
| 106 | + --> |
| 107 | + <artifact>*:*</artifact> |
| 108 | + <excludes> |
| 109 | + <exclude>META-INF/*.SF</exclude> |
| 110 | + <exclude>META-INF/*.DSA</exclude> |
| 111 | + <exclude>META-INF/*.RSA</exclude> |
| 112 | + </excludes> |
| 113 | + </filter> |
| 114 | + </filters> |
| 115 | + </configuration> |
| 116 | + </execution> |
| 117 | + </executions> |
| 118 | + </plugin> |
| 119 | + </plugins> |
| 120 | + <pluginManagement> |
| 121 | + <plugins> |
| 122 | + <plugin> |
| 123 | + <artifactId>maven-clean-plugin</artifactId> |
| 124 | + <version>2.5</version> |
| 125 | + </plugin> |
| 126 | + <plugin> |
| 127 | + <artifactId>maven-deploy-plugin</artifactId> |
| 128 | + <version>2.8.1</version> |
| 129 | + </plugin> |
| 130 | + <plugin> |
| 131 | + <artifactId>maven-install-plugin</artifactId> |
| 132 | + <version>2.5.1</version> |
| 133 | + </plugin> |
| 134 | + <plugin> |
| 135 | + <artifactId>maven-jar-plugin</artifactId> |
| 136 | + <version>2.4</version> |
| 137 | + </plugin> |
| 138 | + <plugin> |
| 139 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 140 | + <version>2.9.1</version> |
| 141 | + </plugin> |
| 142 | + <plugin> |
| 143 | + <artifactId>maven-resources-plugin</artifactId> |
| 144 | + <version>2.6</version> |
| 145 | + </plugin> |
| 146 | + <plugin> |
| 147 | + <artifactId>maven-site-plugin</artifactId> |
| 148 | + <version>3.3</version> |
| 149 | + </plugin> |
| 150 | + <plugin> |
| 151 | + <artifactId>maven-source-plugin</artifactId> |
| 152 | + <version>2.2.1</version> |
| 153 | + </plugin> |
| 154 | + <plugin> |
| 155 | + <artifactId>maven-surefire-plugin</artifactId> |
| 156 | + <version>2.17</version> |
| 157 | + </plugin> |
| 158 | + </plugins> |
| 159 | + </pluginManagement> |
| 160 | + </build> |
| 161 | + |
| 162 | +</project> |
0 commit comments