1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 ~ Copyright 2011 Google Inc. 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17 18 <project xmlns="http://maven.apache.org/POM/4.0.0" 19 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 20 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 21 <modelVersion>4.0.0</modelVersion> 22 <parent> 23 <groupId>org.sonatype.oss</groupId> 24 <artifactId>oss-parent</artifactId> 25 <version>7</version> 26 </parent> 27 28 <groupId>com.google.caliper</groupId> 29 <artifactId>caliper</artifactId> 30 <version>1.0-SNAPSHOT</version> 31 <packaging>jar</packaging> 32 33 <name>caliper</name> 34 <description>Caliper: Microbenchmarking Framework for Java</description> 35 36 <url>http://code.google.com/p/caliper/</url> 37 38 <inceptionYear>2009</inceptionYear> 39 40 <organization> 41 <name>Google Inc.</name> 42 <url>http://www.google.com</url> 43 </organization> 44 45 <developers> 46 <developer> 47 <name>Gregory Kick</name> 48 <organization>Google Inc.</organization> 49 </developer> 50 <developer> 51 <name>Jesse Wilson</name> 52 </developer> 53 </developers> 54 55 <licenses> 56 <license> 57 <name>The Apache Software License, Version 2.0</name> 58 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> 59 <distribution>repo</distribution> 60 </license> 61 </licenses> 62 63 <scm> 64 <connection>scm:git:http://code.google.com/p/caliper/</connection> 65 <developerConnection>scm:git:http://code.google.com/p/caliper/</developerConnection> 66 <url>http://code.google.com/p/caliper/source/browse</url> 67 </scm> 68 69 <issueManagement> 70 <system>Google Code Issue Tracking</system> 71 <url>http://code.google.com/p/caliper/issues/list</url> 72 </issueManagement> 73 74 <properties> 75 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 76 <gpg.skip>true</gpg.skip> 77 </properties> 78 79 <dependencies> 80 <dependency> 81 <groupId>com.google.code.findbugs</groupId> 82 <artifactId>jsr305</artifactId> 83 <version>1.3.9</version> 84 <scope>provided</scope><!-- used only for annotations --> 85 </dependency> 86 <dependency> 87 <groupId>com.google.code.gson</groupId> 88 <artifactId>gson</artifactId> 89 <version>2.2.2</version> 90 </dependency> 91 <dependency> 92 <groupId>joda-time</groupId> 93 <artifactId>joda-time</artifactId> 94 <version>2.1</version> 95 </dependency> 96 <dependency> 97 <groupId>com.sun.jersey</groupId> 98 <artifactId>jersey-client</artifactId> 99 <version>1.11</version> 100 </dependency> 101 <dependency> 102 <groupId>com.google.dagger</groupId> 103 <artifactId>dagger</artifactId> 104 <version>2.1-SNAPSHOT</version> 105 </dependency> 106 <dependency> 107 <groupId>com.google.dagger</groupId> 108 <artifactId>dagger-compiler</artifactId> 109 <version>2.1-SNAPSHOT</version> 110 </dependency> 111 <dependency> 112 <groupId>com.google.guava</groupId> 113 <artifactId>guava</artifactId> 114 <version>18.0</version> 115 </dependency> 116 <dependency> 117 <groupId>org.hibernate</groupId> 118 <artifactId>hibernate-core</artifactId> 119 <version>3.6.7.Final</version> 120 <scope>provided</scope><!-- used only for annotations --> 121 </dependency> 122 <dependency> 123 <groupId>org.apache.commons</groupId> 124 <artifactId>commons-math</artifactId> 125 <version>2.2</version> 126 </dependency> 127 <dependency> 128 <groupId>com.google.code.java-allocation-instrumenter</groupId> 129 <artifactId>java-allocation-instrumenter</artifactId> 130 <version>3.0</version> 131 </dependency> 132 <dependency> 133 <groupId>junit</groupId> 134 <artifactId>junit</artifactId> 135 <version>4.10</version> 136 <scope>test</scope> 137 </dependency> 138 <dependency> 139 <groupId>org.mockito</groupId> 140 <artifactId>mockito-all</artifactId> 141 <version>1.9.5</version> 142 <scope>test</scope> 143 </dependency> 144 </dependencies> 145 146 <build> 147 <defaultGoal>package</defaultGoal> 148 <plugins> 149 <plugin> 150 <groupId>org.apache.maven.plugins</groupId> 151 <artifactId>maven-compiler-plugin</artifactId> 152 <version>3.2</version> 153 <configuration> 154 <source>1.6</source> 155 <target>1.6</target> 156 </configuration> 157 </plugin> 158 <plugin> 159 <groupId>org.apache.maven.plugins</groupId> 160 <artifactId>maven-jar-plugin</artifactId> 161 <version>2.5</version> 162 </plugin> 163 <plugin> 164 <groupId>org.apache.maven.plugins</groupId> 165 <artifactId>maven-eclipse-plugin</artifactId> 166 <version>2.9</version> 167 <configuration> 168 <downloadSources>true</downloadSources> 169 <downloadJavadocs>true</downloadJavadocs> 170 <workspace>../eclipse-ws/</workspace> 171 </configuration> 172 </plugin> 173 <plugin> 174 <groupId>org.apache.maven.plugins</groupId> 175 <artifactId>maven-release-plugin</artifactId> 176 <version>2.5.1</version> 177 <configuration> 178 <arguments>-DenableCiProfile=true</arguments> 179 </configuration> 180 </plugin> 181 <plugin> 182 <groupId>org.apache.maven.plugins</groupId> 183 <artifactId>maven-source-plugin</artifactId> 184 <version>2.4</version> 185 <executions> 186 <execution> 187 <id>attach-sources</id> 188 <goals> 189 <goal>jar-no-fork</goal> 190 </goals> 191 </execution> 192 </executions> 193 </plugin> 194 <plugin> 195 <groupId>org.apache.maven.plugins</groupId> 196 <artifactId>maven-javadoc-plugin</artifactId> 197 <version>2.10.1</version> 198 <executions> 199 <execution> 200 <id>generate-javadocs</id> 201 <phase>site</phase> 202 <goals> 203 <goal>javadoc</goal> 204 </goals> 205 </execution> 206 </executions> 207 <configuration> 208 <links> 209 <link>http://download.oracle.com/javase/1.6.0/docs/api/</link> 210 </links> 211 <version>true</version> 212 <show>public</show> 213 </configuration> 214 </plugin> 215 <plugin> 216 <groupId>org.apache.maven.plugins</groupId> 217 <artifactId>maven-shade-plugin</artifactId> 218 <version>2.3</version> 219 <executions> 220 <execution> 221 <phase>package</phase> 222 <goals> 223 <goal>shade</goal> 224 </goals> 225 <configuration> 226 <shadedArtifactAttached>true</shadedArtifactAttached> 227 <shadedClassifierName>all</shadedClassifierName> 228 <!-- disable relocation as it is breaking some reflection --> 229 <!-- <relocations> 230 <relocation> 231 <pattern>com.google</pattern> 232 <shadedPattern>com.google.caliper.shaded.com.google</shadedPattern> 233 <excludes> 234 <exclude>com.google.caliper.**</exclude> 235 </excludes> 236 </relocation> 237 <relocation> 238 <pattern>com.sun.jersey</pattern> 239 <shadedPattern>com.google.caliper.shaded.com.sun.jersey</shadedPattern> 240 </relocation> 241 <relocation> 242 <pattern>com.sun.ws</pattern> 243 <shadedPattern>com.google.caliper.shaded.com.sun.ws</shadedPattern> 244 </relocation> 245 <relocation> 246 <pattern>javax.inject</pattern> 247 <shadedPattern>com.google.caliper.shaded.javax.inject</shadedPattern> 248 </relocation> 249 <relocation> 250 <pattern>javax.ws</pattern> 251 <shadedPattern>com.google.caliper.shaded.javax.ws</shadedPattern> 252 </relocation> 253 <relocation> 254 <pattern>org.aopalliance</pattern> 255 <shadedPattern>com.google.caliper.shaded.org.aopalliance</shadedPattern> 256 </relocation> 257 <relocation> 258 <pattern>org.joda</pattern> 259 <shadedPattern>com.google.caliper.shaded.org.joda</shadedPattern> 260 </relocation> 261 <relocation> 262 <pattern>org.objectweb</pattern> 263 <shadedPattern>com.google.caliper.shaded.org.objectweb</shadedPattern> 264 </relocation> 265 </relocations> --> 266 <transformers> 267 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> 268 <manifestEntries> 269 <Premain-Class>com.google.monitoring.runtime.instrumentation.AllocationInstrumenter</Premain-Class> 270 <Can-Redefine-Classes>true</Can-Redefine-Classes> 271 <Can-Retransform-Classes>true</Can-Retransform-Classes> 272 </manifestEntries> 273 </transformer> 274 </transformers> 275 </configuration> 276 </execution> 277 </executions> 278 </plugin> 279 <plugin> 280 <groupId>org.apache.maven.plugins</groupId> 281 <artifactId>maven-gpg-plugin</artifactId> 282 <version>1.4</version> 283 <executions> 284 <execution> 285 <id>sign-artifacts</id> 286 <phase>verify</phase> 287 <goals> 288 <goal>sign</goal> 289 </goals> 290 </execution> 291 </executions> 292 </plugin> 293 </plugins> 294 </build> 295 296 </project> 297