| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Copyright 2013-2020 The OpenZipkin Authors
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- in compliance with the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software distributed under the License
- is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- or implied. See the License for the specific language governing permissions and limitations under
- the License.
- -->
- <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">
- <modelVersion>4.0.0</modelVersion>
- <groupId>io.zipkin.brave</groupId>
- <artifactId>brave-parent</artifactId>
- <version>5.12.7</version>
- <packaging>pom</packaging>
- <name>Brave (parent)</name>
- <description>
- Java distributed tracing implementation compatible with Zipkin backend services.
- </description>
- <url>https://github.com/openzipkin/brave</url>
- <inceptionYear>2013</inceptionYear>
- <organization>
- <name>OpenZipkin</name>
- <url>https://zipkin.io/</url>
- </organization>
- <licenses>
- <license>
- <name>The Apache Software License, Version 2.0</name>
- <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
- <distribution>repo</distribution>
- </license>
- </licenses>
- <scm>
- <url>https://github.com/openzipkin/brave</url>
- <connection>scm:git:https://github.com/openzipkin/brave.git</connection>
- <developerConnection>scm:git:https://github.com/openzipkin/brave.git</developerConnection>
- <tag>5.12.7</tag>
- </scm>
- <!-- Developer section is needed for Maven Central, but doesn't need to include each person -->
- <developers>
- <developer>
- <id>openzipkin</id>
- <name>OpenZipkin Gitter</name>
- <url>https://gitter.im/openzipkin/zipkin</url>
- </developer>
- </developers>
- <properties>
- <main.basedir>${project.basedir}</main.basedir>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
- <project.build.outputEncoding>UTF-8</project.build.outputEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <!-- default bytecode version for src/main -->
- <main.java.version>1.7</main.java.version>
- <main.signature.artifact>java17</main.signature.artifact>
- <!-- default bytecode version for src/test -->
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
- <!-- override to set exclusions per-project -->
- <errorprone.args />
- <errorprone.version>2.4.0</errorprone.version>
- <!-- use the same values in bom/pom.xml -->
- <zipkin.version>2.21.7</zipkin.version>
- <zipkin-reporter.version>2.15.2</zipkin-reporter.version>
- <!-- Ensure older versions of spring still work -->
- <spring5.version>5.2.9.RELEASE</spring5.version>
- <spring.version>3.2.18.RELEASE</spring.version>
- <!-- Apis used, but not in Jetty 7.6* imply duplication in servlet25 test fixtures -->
- <!-- prefer sparkjava's jetty to reduce downloads -->
- <jetty.version>9.4.32.v20200930</jetty.version>
- <jetty-servlet25.version>7.6.21.v20160908</jetty-servlet25.version>
- <!-- Note: 3.1.x requires Java 8; 3.0.20.Final is broken -->
- <resteasy.version>3.13.1.Final</resteasy.version>
- <kafka.version>2.6.0</kafka.version>
- <activemq.version>5.16.0</activemq.version>
- <spring-rabbit.version>2.2.11.RELEASE</spring-rabbit.version>
- <finagle.version>20.9.0</finagle.version>
- <log4j.version>2.13.3</log4j.version>
- <okhttp.version>4.9.0</okhttp.version>
- <httpclient.version>4.5.13</httpclient.version>
- <grpc.version>1.32.2</grpc.version>
- <protobuf.version>3.12.0</protobuf.version>
- <!-- prefer grpc's version of netty -->
- <netty.version>4.1.51.Final</netty.version>
- <sparkjava.version>2.9.3</sparkjava.version>
- <!-- Test only dependencies -->
- <junit.version>4.13.1</junit.version>
- <assertj.version>3.17.2</assertj.version>
- <powermock.version>2.0.7</powermock.version>
- <mockito.version>3.5.13</mockito.version>
- <jersey.version>2.32</jersey.version>
- <!-- must align with kafka version https://github.com/charithe/kafka-junit -->
- <kafka-junit.version>4.1.10</kafka-junit.version>
- <testcontainers.version>1.15.0-rc2</testcontainers.version>
- <animal-sniffer-maven-plugin.version>1.19</animal-sniffer-maven-plugin.version>
- <!-- TODO: cleanup any redundant ignores now also in the 4.0 release (once final) -->
- <license-maven-plugin.version>4.0.rc2</license-maven-plugin.version>
- <maven-bundle-plugin.version>5.1.1</maven-bundle-plugin.version>
- <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
- <maven-deploy-plugin.version>3.0.0-M1</maven-deploy-plugin.version>
- <maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version>
- <maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>
- <maven-install-plugin.version>3.0.0-M1</maven-install-plugin.version>
- <maven-invoker-plugin.version>3.2.1</maven-invoker-plugin.version>
- <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
- <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
- <maven-release-plugin.version>3.0.0-M1</maven-release-plugin.version>
- <maven-shade-plugin.version>3.2.4</maven-shade-plugin.version>
- <maven-source-plugin.version>3.2.1</maven-source-plugin.version>
- </properties>
- <modules>
- <module>brave</module>
- <module>brave-bom</module>
- <module>brave-tests</module>
- <module>context</module>
- <module>instrumentation</module>
- <module>spring-beans</module>
- </modules>
- <distributionManagement>
- <repository>
- <id>bintray</id>
- <url>https://api.bintray.com/maven/openzipkin/maven/brave/;publish=1</url>
- </repository>
- <snapshotRepository>
- <id>jfrog-snapshots</id>
- <url>https://oss.jfrog.org/artifactory/oss-snapshot-local</url>
- </snapshotRepository>
- </distributionManagement>
- <issueManagement>
- <system>Github</system>
- <url>https://github.com/openzipkin/brave/issues</url>
- </issueManagement>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>brave</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>brave-context-log4j2</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>brave-instrumentation-http</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>brave-instrumentation-http-tests</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>brave-instrumentation-messaging</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>brave-instrumentation-rpc</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>brave-instrumentation-servlet</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>brave-tests</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>io.zipkin.zipkin2</groupId>
- <artifactId>zipkin</artifactId>
- <version>${zipkin.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-core</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-context</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-web</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-webmvc</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-test</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <!-- The httpcomponents group do not share versions within it -->
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpcore</artifactId>
- <version>4.4.13</version>
- </dependency>
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpclient</artifactId>
- <version>${httpclient.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpclient-cache</artifactId>
- <version>${httpclient.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpasyncclient</artifactId>
- <version>4.1.4</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.resteasy</groupId>
- <artifactId>resteasy-client</artifactId>
- <version>${resteasy.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.resteasy</groupId>
- <artifactId>resteasy-spring</artifactId>
- <version>${resteasy.version}</version>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <version>1.7.30</version>
- </dependency>
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-core</artifactId>
- <version>${log4j.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-jul</artifactId>
- <version>${log4j.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-slf4j-impl</artifactId>
- <version>${log4j.version}</version>
- <exclusions>
- <exclusion>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-1.2-api</artifactId>
- <version>${log4j.version}</version>
- </dependency>
- <dependency>
- <groupId>com.squareup.okhttp3</groupId>
- <artifactId>okhttp</artifactId>
- <version>${okhttp.version}</version>
- </dependency>
- <dependency>
- <groupId>com.squareup.okhttp3</groupId>
- <artifactId>mockwebserver</artifactId>
- <version>${okhttp.version}</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${junit.version}</version>
- </dependency>
- <dependency>
- <groupId>org.assertj</groupId>
- <artifactId>assertj-core</artifactId>
- <version>${assertj.version}</version>
- </dependency>
- <dependency>
- <groupId>javax.ws.rs</groupId>
- <artifactId>javax.ws.rs-api</artifactId>
- <version>2.0.1</version>
- </dependency>
- <dependency>
- <groupId>javax.xml.bind</groupId>
- <artifactId>jaxb-api</artifactId>
- <version>2.3.0</version>
- </dependency>
- <dependency>
- <groupId>javax.annotation</groupId>
- <artifactId>javax.annotation-api</artifactId>
- <version>1.3.2</version>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- <version>${mockito.version}</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.assertj</groupId>
- <artifactId>assertj-core</artifactId>
- <scope>test</scope>
- </dependency>
- <!-- Main code uses jul and tests log with log4j -->
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-core</artifactId>
- <scope>test</scope>
- </dependency>
- <!-- route jul over log4j2 during tests -->
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-jul</artifactId>
- <scope>test</scope>
- </dependency>
- <!-- route log4j over log4j2 during tests -->
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-1.2-api</artifactId>
- <scope>test</scope>
- </dependency>
- <!-- route slf4j over log4j2 during tests -->
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-slf4j-impl</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <build>
- <pluginManagement>
- <plugins>
- <!-- mvn -N io.takari:maven:wrapper generates the ./mvnw script -->
- <plugin>
- <groupId>io.takari</groupId>
- <artifactId>maven</artifactId>
- <version>0.7.7</version>
- <configuration>
- <maven>3.6.3</maven>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>${maven-compiler-plugin.version}</version>
- <inherited>true</inherited>
- <configuration>
- <!-- Retrolambda will rewrite lambdas as Java 6 bytecode -->
- <source>1.8</source>
- <target>1.8</target>
- <!-- or die! com.sun.tools.javac.api.JavacTool -->
- <fork>true</fork>
- <showWarnings>true</showWarnings>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-jar-plugin</artifactId>
- <version>${maven-jar-plugin.version}</version>
- <configuration>
- <archive>
- <!-- prevents huge pom file from also being added to the jar under META-INF/maven -->
- <addMavenDescriptor>false</addMavenDescriptor>
- </archive>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-shade-plugin</artifactId>
- <version>${maven-shade-plugin.version}</version>
- </plugin>
- <plugin>
- <groupId>org.eclipse.m2e</groupId>
- <artifactId>lifecycle-mapping</artifactId>
- <version>1.0.0</version>
- <configuration>
- <lifecycleMappingMetadata>
- <pluginExecutions>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <versionRange>[3.7,)</versionRange>
- <goals>
- <goal>compile</goal>
- <goal>testCompile</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <configurator>
- <id>org.eclipse.m2e.jdt.javaConfigurator</id>
- </configurator>
- </action>
- </pluginExecution>
- </pluginExecutions>
- </lifecycleMappingMetadata>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-invoker-plugin</artifactId>
- <version>${maven-invoker-plugin.version}</version>
- <configuration>
- <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
- <settingsFile>${main.basedir}/src/it/settings.xml</settingsFile>
- <profiles>
- <profile>!release</profile>
- </profiles>
- <useLocalRepository>true</useLocalRepository>
- <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
- <postBuildHookScript>verify</postBuildHookScript>
- <addTestClassPath>true</addTestClassPath>
- <skipInvocation>${skipTests}</skipInvocation>
- <streamLogs>true</streamLogs>
- <mavenOpts>-Dorg.slf4j.simpleLogger.defaultLogLevel=WARN</mavenOpts>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>install</goal>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>animal-sniffer-maven-plugin</artifactId>
- <version>${animal-sniffer-maven-plugin.version}</version>
- </plugin>
- </plugins>
- </pluginManagement>
- <resources>
- <resource>
- <filtering>false</filtering>
- <directory>src/main/resources</directory>
- </resource>
- <resource>
- <filtering>false</filtering>
- <directory>src/main/java</directory>
- <includes>
- <include>**</include>
- </includes>
- <excludes>
- <exclude>**/*.java</exclude>
- </excludes>
- </resource>
- <!-- This adds the LICENSE and NOTICE file to the jar and -sources jar of each module -->
- <resource>
- <filtering>false</filtering>
- <directory>${main.basedir}</directory>
- <targetPath>META-INF/</targetPath>
- <includes>
- <include>LICENSE</include>
- <include>NOTICE</include>
- </includes>
- </resource>
- </resources>
- <testResources>
- <testResource>
- <filtering>false</filtering>
- <directory>src/test/java</directory>
- <includes>
- <include>**</include>
- </includes>
- <excludes>
- <exclude>**/*.java</exclude>
- </excludes>
- </testResource>
- <testResource>
- <filtering>false</filtering>
- <directory>src/test/resources</directory>
- </testResource>
- </testResources>
- <plugins>
- <plugin>
- <groupId>net.orfjackal.retrolambda</groupId>
- <artifactId>retrolambda-maven-plugin</artifactId>
- <version>2.5.7</version>
- <executions>
- <execution>
- <goals>
- <goal>process-main</goal>
- </goals>
- <configuration>
- <target>${main.java.version}</target>
- <fork>true</fork>
- <quiet>true</quiet>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>animal-sniffer-maven-plugin</artifactId>
- <configuration>
- <signature>
- <groupId>org.codehaus.mojo.signature</groupId>
- <artifactId>${main.signature.artifact}</artifactId>
- <version>1.0</version>
- </signature>
- <checkTestClasses>false</checkTestClasses>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>${maven-failsafe-plugin.version}</version>
- <configuration>
- <systemPropertyVariables>
- <java.util.logging.manager>org.apache.logging.log4j.jul.LogManager
- </java.util.logging.manager>
- </systemPropertyVariables>
- <!-- Ensure scope leak cause ends up in the console -->
- <trimStackTrace>false</trimStackTrace>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-failsafe-plugin</artifactId>
- <version>${maven-failsafe-plugin.version}</version>
- <configuration>
- <!-- Try to prevent flakes in CI -->
- <reuseForks>false</reuseForks>
- <!-- workaround to SUREFIRE-1831 -->
- <useModulePath>false</useModulePath>
- <systemPropertyVariables>
- <java.util.logging.manager>org.apache.logging.log4j.jul.LogManager
- </java.util.logging.manager>
- </systemPropertyVariables>
- <!-- Ensure scope leak cause ends up in the console -->
- <trimStackTrace>false</trimStackTrace>
- </configuration>
- <executions>
- <execution>
- <id>integration-test</id>
- <phase>verify</phase>
- <goals>
- <goal>integration-test</goal>
- <goal>verify</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-eclipse-plugin</artifactId>
- <version>2.10</version>
- <configuration>
- <downloadSources>true</downloadSources>
- <downloadJavadocs>true</downloadJavadocs>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-install-plugin</artifactId>
- <version>${maven-install-plugin.version}</version>
- </plugin>
- <!-- Uploads occur as a last step (which also adds checksums) -->
- <plugin>
- <artifactId>maven-deploy-plugin</artifactId>
- <version>${maven-deploy-plugin.version}</version>
- </plugin>
- <plugin>
- <artifactId>maven-release-plugin</artifactId>
- <version>${maven-release-plugin.version}</version>
- <configuration>
- <useReleaseProfile>false</useReleaseProfile>
- <releaseProfiles>release</releaseProfiles>
- <autoVersionSubmodules>true</autoVersionSubmodules>
- <!-- to match zipkin-scala (openzipkin/zipkin) -->
- <tagNameFormat>@{project.version}</tagNameFormat>
- </configuration>
- </plugin>
- <plugin>
- <groupId>io.zipkin.centralsync-maven-plugin</groupId>
- <artifactId>centralsync-maven-plugin</artifactId>
- <version>0.1.1</version>
- <configuration>
- <packageName>brave</packageName>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-enforcer-plugin</artifactId>
- <version>${maven-enforcer-plugin.version}</version>
- <executions>
- <execution>
- <id>enforce-java</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <requireJavaVersion>
- <!-- Cannot use JDK 15 until Retrolambda supports it
- https://github.com/luontola/retrolambda/issues/161 -->
- <version>[11,15)</version>
- </requireJavaVersion>
- </rules>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>com.mycila</groupId>
- <artifactId>license-maven-plugin</artifactId>
- <version>${license-maven-plugin.version}</version>
- <configuration>
- <header>${main.basedir}/src/etc/header.txt</header>
- <mapping>
- <!-- Don't use javadoc style as this makes code formatters break it by adding tags! -->
- <java>SLASHSTAR_STYLE</java>
- </mapping>
- <excludes>
- <exclude>.travis.yml</exclude>
- <exclude>.editorconfig</exclude>
- <exclude>.gitattributes</exclude>
- <exclude>.gitignore</exclude>
- <exclude>.mailmap</exclude>
- <exclude>.mvn/**</exclude>
- <exclude>mvnw*</exclude>
- <exclude>etc/header.txt</exclude>
- <exclude>**/.idea/**</exclude>
- <exclude>**/.editorconfig</exclude>
- <exclude>**/log4j2.properties</exclude>
- <exclude>LICENSE</exclude>
- <exclude>NOTICE</exclude>
- <exclude>**/*.md</exclude>
- <exclude>**/*.bnd</exclude>
- <exclude>**/com.alibaba.dubbo.rpc.Filter</exclude>
- <exclude>src/test/resources/**</exclude>
- <exclude>src/test/proto/**</exclude>
- </excludes>
- <strictCheck>true</strictCheck>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>com.mycila</groupId>
- <artifactId>license-maven-plugin-git</artifactId>
- <version>${license-maven-plugin.version}</version>
- </dependency>
- </dependencies>
- <executions>
- <execution>
- <goals>
- <goal>check</goal>
- </goals>
- <phase>compile</phase>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>error-prone</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <executions>
- <execution>
- <!-- only use errorprone on main source tree -->
- <id>default-compile</id>
- <phase>compile</phase>
- <goals>
- <goal>compile</goal>
- </goals>
- <configuration>
- <forceJavacCompilerUse>true</forceJavacCompilerUse>
- <compilerArgs>
- <arg>-XDcompilePolicy=simple</arg>
- <arg>-Xplugin:ErrorProne ${errorprone.args}</arg>
- </compilerArgs>
- <annotationProcessorPaths>
- <processorPath>
- <groupId>com.google.errorprone</groupId>
- <artifactId>error_prone_core</artifactId>
- <version>${errorprone.version}</version>
- </processorPath>
- </annotationProcessorPaths>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>release</id>
- <build>
- <plugins>
- <!-- Creates source jar -->
- <plugin>
- <artifactId>maven-source-plugin</artifactId>
- <version>${maven-source-plugin.version}</version>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- Creates javadoc jar, skipping internal classes -->
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>${maven-javadoc-plugin.version}</version>
- <configuration>
- <sourceFileExcludes>
- <exclude>**/internal/*.java</exclude>
- <exclude>**/Internal*.java</exclude>
- </sourceFileExcludes>
- <excludePackageNames>*.internal.*</excludePackageNames>
- <failOnError>false</failOnError>
- <!-- hush pedantic warnings: we don't put param and return on everything! -->
- <doclint>none</doclint>
- <!-- While we publish modules, our source is pre-Java9 so tell javadoc that. -->
- <source>8</source>
- </configuration>
- <executions>
- <execution>
- <id>attach-javadocs</id>
- <goals>
- <goal>jar</goal>
- </goals>
- <phase>package</phase>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>module-info</id>
- <!-- Build profiles can only consider static properties, such as files or ENV variables.
- To conditionally add module information, we use existence of bnd.bnd. This allows
- irrelevant packages such as tests and benchmarks to quietly opt-out.
- http://maven.apache.org/guides/introduction/introduction-to-profiles.html -->
- <activation>
- <file>
- <exists>bnd.bnd</exists>
- </file>
- </activation>
- <build>
- <plugins>
- <!-- OSGi and Java Modules configuration -->
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <version>${maven-bundle-plugin.version}</version>
- <configuration>
- <obrRepository>NONE</obrRepository>
- <instructions>
- <_include>-bnd.bnd</_include>
- </instructions>
- </configuration>
- <executions>
- <execution>
- <phase>process-classes</phase>
- <goals>
- <goal>manifest</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-jar-plugin</artifactId>
- <executions>
- <execution>
- <id>default-jar</id>
- <configuration>
- <archive>
- <!-- Include the MANIFEST.MF maven-bundle-plugin generates from bnd.bnd -->
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
- <manifestEntries>
- <Automatic-Module-Name>${module.name}</Automatic-Module-Name>
- </manifestEntries>
- </archive>
- </configuration>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>sonatype</id>
- <distributionManagement>
- <repository>
- <id>sonatype</id>
- <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
- </repository>
- </distributionManagement>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-gpg-plugin</artifactId>
- <version>1.6</version>
- <executions>
- <execution>
- <id>sign-release-artifacts</id>
- <goals>
- <goal>sign</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
|