1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 4 Copyright 2016 The OpenTracing Authors 5 6 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 7 in compliance with the License. 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 distributed under the License 12 is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 13 or implied. See the License for the specific language governing permissions and limitations under 14 the License. 15 16 --> 17 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 18 <modelVersion>4.0.0</modelVersion> 19 20 <groupId>io.opentracing</groupId> 21 <artifactId>parent</artifactId> 22 <version>0.13.0</version> 23 <packaging>pom</packaging> 24 25 <modules> 26 <module>opentracing-api</module> 27 <module>opentracing-impl</module> 28 <module>opentracing-impl-java8</module> 29 </modules> 30 31 <properties> 32 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 33 <project.build.resourceEncoding>UTF-8</project.build.resourceEncoding> 34 35 <!-- default bytecode version for src/main --> 36 <main.java.version>1.7</main.java.version> 37 <main.signature.artifact>java17</main.signature.artifact> 38 39 <!-- default bytecode version for src/test --> 40 <maven.compiler.source>1.8</maven.compiler.source> 41 <maven.compiler.target>1.8</maven.compiler.target> 42 43 <main.basedir>${project.basedir}</main.basedir> 44 45 <junit.version>4.12</junit.version> 46 <assertj.version>3.2.0</assertj.version> 47 48 <animal-sniffer-maven-plugin.version>1.15</animal-sniffer-maven-plugin.version> 49 <maven-plugin.version>0.3.3</maven-plugin.version> 50 <maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version> 51 <maven-install-plugin.version>2.5.2</maven-install-plugin.version> 52 <maven-source-plugin.version>3.0.0</maven-source-plugin.version> 53 <maven-javadoc-plugin.version>2.10.3</maven-javadoc-plugin.version> 54 <license-maven-plugin.version>2.11</license-maven-plugin.version> 55 <maven-jar-plugin.version>2.6</maven-jar-plugin.version> 56 <maven-release-plugin.version>2.5.3</maven-release-plugin.version> 57 <centralsync-maven-plugin.version>0.1.0</centralsync-maven-plugin.version> 58 </properties> 59 60 <name>OpenTracing (Parent)</name> 61 <description>OpenTracing API for Java</description> 62 <url>https://github.com/opentracing/opentracing-java</url> 63 <inceptionYear>2016</inceptionYear> 64 65 <organization> 66 <name>OpenTracing</name> 67 <url>http://opentracing.io/</url> 68 </organization> 69 70 <licenses> 71 <license> 72 <name>The Apache Software License, Version 2.0</name> 73 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> 74 <distribution>repo</distribution> 75 </license> 76 </licenses> 77 78 <scm> 79 <url>https://github.com/opentracing/opentracing-java</url> 80 <connection>scm:git:https://github.com/opentracing/opentracing-java.git</connection> 81 <developerConnection>scm:git:https://github.com/opentracing/opentracing-java.git</developerConnection> 82 <tag>0.13.0</tag> 83 </scm> 84 85 <developers> 86 <developer> 87 <id>bensigelman</id> 88 <name>Ben Sigelman</name> 89 <email>bhs (a] resonancelabs.com</email> 90 </developer> 91 <developer> 92 <id>adriancole</id> 93 <name>Adrian Cole</name> 94 <email>acole (a] pivotal.io</email> 95 </developer> 96 </developers> 97 98 <distributionManagement> 99 <repository> 100 <id>bintray</id> 101 <url>https://api.bintray.com/maven/opentracing/maven/opentracing-java/;publish=1</url> 102 </repository> 103 <snapshotRepository> 104 <id>jfrog-snapshots</id> 105 <url>http://oss.jfrog.org/artifactory/oss-snapshot-local</url> 106 </snapshotRepository> 107 </distributionManagement> 108 109 <issueManagement> 110 <system>Github</system> 111 <url>https://github.com/opentracing/opentracing-java/issues</url> 112 </issueManagement> 113 114 <dependencyManagement> 115 <dependencies> 116 <dependency> 117 <groupId>${project.groupId}</groupId> 118 <artifactId>opentracing-api</artifactId> 119 <version>${project.version}</version> 120 </dependency> 121 122 <dependency> 123 <groupId>${project.groupId}</groupId> 124 <artifactId>opentracing-impl</artifactId> 125 <version>${project.version}</version> 126 </dependency> 127 128 <dependency> 129 <groupId>${project.groupId}</groupId> 130 <artifactId>opentracing-impl-java8</artifactId> 131 <version>${project.version}</version> 132 </dependency> 133 134 <dependency> 135 <groupId>junit</groupId> 136 <artifactId>junit</artifactId> 137 <version>${junit.version}</version> 138 </dependency> 139 140 <dependency> 141 <groupId>org.assertj</groupId> 142 <artifactId>assertj-core</artifactId> 143 <version>${assertj.version}</version> 144 </dependency> 145 </dependencies> 146 </dependencyManagement> 147 148 <dependencies> 149 <dependency> 150 <groupId>junit</groupId> 151 <artifactId>junit</artifactId> 152 <scope>test</scope> 153 </dependency> 154 155 <dependency> 156 <groupId>org.assertj</groupId> 157 <artifactId>assertj-core</artifactId> 158 <scope>test</scope> 159 </dependency> 160 </dependencies> 161 162 <build> 163 <pluginManagement> 164 <plugins> 165 <!-- mvn -N io.takari:maven:wrapper -Dmaven=3.3.9 --> 166 <plugin> 167 <groupId>io.takari</groupId> 168 <artifactId>maven</artifactId> 169 <version>${maven-plugin.version}</version> 170 </plugin> 171 172 <plugin> 173 <artifactId>maven-compiler-plugin</artifactId> 174 <version>${maven-compiler-plugin.version}</version> 175 </plugin> 176 177 <plugin> 178 <artifactId>maven-jar-plugin</artifactId> 179 <version>${maven-jar-plugin.version}</version> 180 </plugin> 181 </plugins> 182 </pluginManagement> 183 184 <plugins> 185 <plugin> 186 <inherited>true</inherited> 187 <artifactId>maven-compiler-plugin</artifactId> 188 <executions> 189 <!-- Ensure main source tree compiles to Java ${main.java.version} bytecode. --> 190 <execution> 191 <id>default-compile</id> 192 <phase>compile</phase> 193 <goals> 194 <goal>compile</goal> 195 </goals> 196 <configuration> 197 <source>${main.java.version}</source> 198 <target>${main.java.version}</target> 199 </configuration> 200 </execution> 201 </executions> 202 </plugin> 203 204 <plugin> 205 <groupId>org.codehaus.mojo</groupId> 206 <artifactId>animal-sniffer-maven-plugin</artifactId> 207 <version>${animal-sniffer-maven-plugin.version}</version> 208 <configuration> 209 <signature> 210 <groupId>org.codehaus.mojo.signature</groupId> 211 <artifactId>${main.signature.artifact}</artifactId> 212 <version>1.0</version> 213 </signature> 214 </configuration> 215 <executions> 216 <execution> 217 <goals> 218 <goal>check</goal> 219 </goals> 220 </execution> 221 </executions> 222 </plugin> 223 224 <!-- Ensures checksums are added to published jars --> 225 <plugin> 226 <artifactId>maven-install-plugin</artifactId> 227 <version>${maven-install-plugin.version}</version> 228 <configuration> 229 <createChecksum>true</createChecksum> 230 </configuration> 231 </plugin> 232 233 <plugin> 234 <groupId>com.mycila</groupId> 235 <artifactId>license-maven-plugin</artifactId> 236 <version>${license-maven-plugin.version}</version> 237 <configuration> 238 <header>${main.basedir}/src/etc/header.txt</header> 239 <excludes> 240 <exclude>.travis.yml</exclude> 241 <exclude>.gitignore</exclude> 242 <exclude>.mvn/**</exclude> 243 <exclude>mvnw*</exclude> 244 <exclude>etc/header.txt</exclude> 245 <exclude>**/.idea/**</exclude> 246 <exclude>LICENSE</exclude> 247 <exclude>**/*.md</exclude> 248 <exclude>src/test/resources/**</exclude> 249 <exclude>src/main/resources/**</exclude> 250 </excludes> 251 <strictCheck>true</strictCheck> 252 </configuration> 253 <dependencies> 254 <dependency> 255 <groupId>com.mycila</groupId> 256 <artifactId>license-maven-plugin-git</artifactId> 257 <version>${license-maven-plugin.version}</version> 258 </dependency> 259 </dependencies> 260 <executions> 261 <execution> 262 <goals> 263 <goal>check</goal> 264 </goals> 265 <phase>compile</phase> 266 </execution> 267 </executions> 268 </plugin> 269 270 <plugin> 271 <artifactId>maven-release-plugin</artifactId> 272 <version>${maven-release-plugin.version}</version> 273 <configuration> 274 <useReleaseProfile>false</useReleaseProfile> 275 <releaseProfiles>release</releaseProfiles> 276 <autoVersionSubmodules>true</autoVersionSubmodules> 277 <tagNameFormat>@{project.version}</tagNameFormat> 278 </configuration> 279 </plugin> 280 281 <plugin> 282 <groupId>io.zipkin.centralsync-maven-plugin</groupId> 283 <artifactId>centralsync-maven-plugin</artifactId> 284 <version>${centralsync-maven-plugin.version}</version> 285 <configuration> 286 <subject>opentracing</subject> 287 <repo>maven</repo> 288 <packageName>opentracing-java</packageName> 289 </configuration> 290 </plugin> 291 </plugins> 292 </build> 293 294 <profiles> 295 <profile> 296 <id>release</id> 297 <build> 298 <plugins> 299 <!-- Creates source jar --> 300 <plugin> 301 <artifactId>maven-source-plugin</artifactId> 302 <version>${maven-source-plugin.version}</version> 303 <executions> 304 <execution> 305 <id>attach-sources</id> 306 <goals> 307 <goal>jar</goal> 308 </goals> 309 </execution> 310 </executions> 311 </plugin> 312 313 <!-- Creates javadoc jar, skipping internal classes --> 314 <plugin> 315 <artifactId>maven-javadoc-plugin</artifactId> 316 <version>${maven-javadoc-plugin.version}</version> 317 <configuration> 318 <failOnError>false</failOnError> 319 <excludePackageNames>io.opentracing.internal,io.opentracing.internal.* 320 </excludePackageNames> 321 </configuration> 322 <executions> 323 <execution> 324 <id>attach-javadocs</id> 325 <goals> 326 <goal>jar</goal> 327 </goals> 328 <phase>package</phase> 329 </execution> 330 </executions> 331 </plugin> 332 </plugins> 333 </build> 334 </profile> 335 </profiles> 336 </project> 337