Advertisement
Guest User

pom.xml

a guest
Feb 9th, 2018
715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.82 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ~ Licensed to the Apache Software Foundation (ASF) under one or more
  3. ~ contributor license agreements. See the NOTICE file distributed with ~
  4. this work for additional information regarding copyright ownership. ~ The
  5. ASF licenses this file to You under the Apache License, Version 2.0 ~ (the
  6. "License"); you may not use this file except in compliance with ~ the License.
  7. You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0
  8. ~ ~ Unless required by applicable law or agreed to in writing, software ~
  9. distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT
  10. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the
  11. License for the specific language governing permissions and ~ limitations
  12. under the License. -->
  13.  
  14. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  16. <modelVersion>4.0.0</modelVersion>
  17.  
  18. <parent>
  19. <groupId>org.apache</groupId>
  20. <artifactId>apache</artifactId>
  21. <version>18</version>
  22. </parent>
  23.  
  24. <groupId>******</groupId>
  25. <artifactId>****</artifactId>
  26. <version>1.0.0-SNAPSHOT</version>
  27. <packaging>jar</packaging>
  28.  
  29. <name>******</name>
  30. <description>****** .</description>
  31.  
  32. <inceptionYear>2018</inceptionYear>
  33.  
  34. <organization>
  35. <name>******</name>
  36. </organization>
  37.  
  38. <licenses>
  39. <license>
  40. <name>Apache License, Version 2.0</name>
  41. <url>https://www.apache.org/licenses/LICENSE-2.0</url>
  42. </license>
  43. </licenses>
  44.  
  45.  
  46. <properties>
  47. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  48. <maven.compiler.source>1.8</maven.compiler.source>
  49. <maven.compiler.target>1.8</maven.compiler.target>
  50. <scala.version>2.10.4</scala.version>
  51. <jmh.version>1.13</jmh.version>
  52. <benchmarkjar.name>benchmarks</benchmarkjar.name>
  53. <javac.target>1.8</javac.target>
  54. <slf4j.version>1.7.21</slf4j.version>
  55. <log4j2.version>2.1</log4j2.version>
  56. <junit.version>4.12</junit.version>
  57. <log4j.configuration>log4j2.xml</log4j.configuration>
  58. <hadoop.version>3.0.0</hadoop.version>
  59. <spark.version>2.0.0</spark.version>
  60. <elasticsearch.version>2.3.4</elasticsearch.version>
  61. <storm.version>1.0.1</storm.version>
  62. <kafka.version>0.9.0.1</kafka.version>
  63. <spark-streaming.version>2.0.0</spark-streaming.version>
  64. <******.forkCount>1C</******.forkCount>
  65. <******.reuseForks>true</******.reuseForks>
  66. <coveralls.maven.plugin>4.3.0</coveralls.maven.plugin>
  67. <jacoco.maven.plugin>0.7.8</jacoco.maven.plugin>
  68. <argLine>-Xmx1G -Djava.net.preferIPv4Stack=true</argLine>
  69. </properties>
  70.  
  71. <dependencies>
  72. <!-- https://mvnrepository.com/artifact/io.dropwizard/dropwizard-core -->
  73. <dependency>
  74. <groupId>io.dropwizard</groupId>
  75. <artifactId>dropwizard-core</artifactId>
  76. <version>1.3.0-rc4</version>
  77. <exclusions>
  78. <exclusion>
  79. <groupId>com.fasterxml.jackson.core</groupId>
  80. <artifactId>jackson-annotations</artifactId>
  81. </exclusion>
  82. </exclusions>
  83. </dependency>
  84.  
  85.  
  86. <!-- https://mvnrepository.com/artifact/junit/junit -->
  87. <dependency>
  88. <groupId>junit</groupId>
  89. <artifactId>junit</artifactId>
  90. <version>4.12</version>
  91. </dependency>
  92.  
  93. <!-- dependency fix for HK2 failure -->
  94. <dependency>
  95. <groupId>javax.activation</groupId>
  96. <artifactId>activation</artifactId>
  97. <version>1.1.1</version>
  98. </dependency>
  99.  
  100.  
  101. <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-math3 -->
  102. <dependency>
  103. <groupId>org.apache.commons</groupId>
  104. <artifactId>commons-math3</artifactId>
  105. <version>3.6.1</version>
  106. </dependency>
  107.  
  108.  
  109. <dependency>
  110. <groupId>org.jhades</groupId>
  111. <artifactId>jhades</artifactId>
  112. <version>1.0.4</version>
  113. </dependency>
  114.  
  115. <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations -->
  116. <dependency>
  117. <groupId>com.fasterxml.jackson.core</groupId>
  118. <artifactId>jackson-annotations</artifactId>
  119. <version>2.9.4</version>
  120. </dependency>
  121.  
  122.  
  123. <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core -->
  124. <dependency>
  125. <groupId>com.fasterxml.jackson.core</groupId>
  126. <artifactId>jackson-core</artifactId>
  127. <version>2.9.4</version>
  128. </dependency>
  129.  
  130. <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
  131. <dependency>
  132. <groupId>com.fasterxml.jackson.core</groupId>
  133. <artifactId>jackson-databind</artifactId>
  134. <version>2.9.4</version>
  135. </dependency>
  136.  
  137.  
  138. <!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
  139. <dependency>
  140. <groupId>com.google.code.gson</groupId>
  141. <artifactId>gson</artifactId>
  142. <version>2.8.2</version>
  143. </dependency>
  144.  
  145.  
  146. <!-- https://mvnrepository.com/artifact/net.minidev/json-smart -->
  147. <dependency>
  148. <groupId>net.minidev</groupId>
  149. <artifactId>json-smart</artifactId>
  150. <version>2.3</version>
  151. </dependency>
  152.  
  153. <!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
  154. <dependency>
  155. <groupId>com.google.guava</groupId>
  156. <artifactId>guava</artifactId>
  157. <version>23.6-jre</version>
  158. </dependency>
  159.  
  160.  
  161. <dependency>
  162. <groupId>com.googlecode.json-simple</groupId>
  163. <artifactId>json-simple</artifactId>
  164. <version>1.1.1</version>
  165. </dependency>
  166.  
  167. <dependency>
  168. <groupId>commons-net</groupId>
  169. <artifactId>commons-net</artifactId>
  170. <version>3.5</version>
  171. </dependency>
  172.  
  173. <dependency>
  174. <groupId>org.apache.hadoop</groupId>
  175. <artifactId>hadoop-common</artifactId>
  176. <version>${hadoop.version}</version>
  177. <exclusions>
  178. <exclusion>
  179. <groupId>org.slf4j</groupId>
  180. <artifactId>slf4j-log4j12</artifactId>
  181. </exclusion>
  182. <exclusion>
  183. <groupId>javax.ws.rs</groupId>
  184. <artifactId>jsr311-api</artifactId>
  185. </exclusion>
  186. <exclusion>
  187. <groupId>org.apache.curator</groupId>
  188. <artifactId>curator-client</artifactId>
  189. </exclusion>
  190. <exclusion>
  191. <groupId>com.fasterxml.jackson.core</groupId>
  192. <artifactId>jackson-databind</artifactId>
  193. </exclusion>
  194. <exclusion>
  195. <groupId>com.sun.jersey</groupId>
  196. <artifactId>jersey-core</artifactId>
  197. </exclusion>
  198. <exclusion>
  199. <groupId>com.sun.jersey</groupId>
  200. <artifactId>jersey-servlet</artifactId>
  201. </exclusion>
  202. <exclusion>
  203. <groupId>com.sun.jersey</groupId>
  204. <artifactId>jersey-server</artifactId>
  205. </exclusion>
  206. </exclusions>
  207. </dependency>
  208.  
  209. <dependency>
  210. <groupId>org.apache.hadoop</groupId>
  211. <artifactId>hadoop-mapreduce-client-core</artifactId>
  212. <version>${hadoop.version}</version>
  213. <exclusions>
  214. <exclusion>
  215. <groupId>org.slf4j</groupId>
  216. <artifactId>slf4j-log4j12</artifactId>
  217. </exclusion>
  218. <exclusion>
  219. <groupId>log4j</groupId>
  220. <artifactId>log4j</artifactId>
  221. </exclusion>
  222. <exclusion>
  223. <groupId>com.fasterxml.jackson.core</groupId>
  224. <artifactId>jackson-databind</artifactId>
  225. </exclusion>
  226. <exclusion>
  227. <groupId>com.sun.jersey</groupId>
  228. <artifactId>jersey-client</artifactId>
  229. </exclusion>
  230. <exclusion>
  231. <groupId>com.sun.jersey.contribs</groupId>
  232. <artifactId>jersey-guice</artifactId>
  233. </exclusion>
  234. <exclusion>
  235. <groupId>com.sun.jersey</groupId>
  236. <artifactId>jersey-server</artifactId>
  237. </exclusion>
  238. </exclusions>
  239. </dependency>
  240.  
  241. <!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
  242. <dependency>
  243. <groupId>org.apache.logging.log4j</groupId>
  244. <artifactId>log4j-core</artifactId>
  245. <version>2.10.0</version>
  246. </dependency>
  247.  
  248. <dependency>
  249. <groupId>org.apache.hadoop</groupId>
  250. <artifactId>hadoop-client</artifactId>
  251. <version>${hadoop.version}</version>
  252. <exclusions>
  253. <exclusion>
  254. <groupId>org.slf4j</groupId>
  255. <artifactId>slf4j-log4j12</artifactId>
  256. </exclusion>
  257. <exclusion>
  258. <groupId>log4j</groupId>
  259. <artifactId>log4j</artifactId>
  260. </exclusion>
  261. <exclusion>
  262. <groupId>xerces</groupId>
  263. <artifactId>xercesImpl</artifactId>
  264. </exclusion>
  265. </exclusions>
  266. </dependency>
  267.  
  268. <dependency>
  269. <groupId>org.apache.spark</groupId>
  270. <artifactId>spark-core_2.11</artifactId>
  271. <version>${spark.version}</version>
  272. <exclusions>
  273. <exclusion>
  274. <groupId>org.slf4j</groupId>
  275. <artifactId>slf4j-log4j12</artifactId>
  276. </exclusion>
  277. <exclusion>
  278. <groupId>log4j</groupId>
  279. <artifactId>log4j</artifactId>
  280. </exclusion>
  281. <exclusion>
  282. <groupId>org.scala-lang</groupId>
  283. <artifactId>scalap</artifactId>
  284. </exclusion>
  285. <exclusion>
  286. <groupId>org.scala-lang</groupId>
  287. <artifactId>scala-library</artifactId>
  288. </exclusion>
  289. <exclusion>
  290. <groupId>org.scala-lang</groupId>
  291. <artifactId>scala-reflect</artifactId>
  292. </exclusion>
  293. <exclusion>
  294. <groupId>com.fasterxml.jackson.core</groupId>
  295. <artifactId>jackson-databind</artifactId>
  296. </exclusion>
  297. </exclusions>
  298. </dependency>
  299.  
  300. <dependency>
  301. <groupId>org.apache.spark</groupId>
  302. <artifactId>spark-streaming_2.10</artifactId>
  303. <version>${spark-streaming.version}</version>
  304. <exclusions>
  305. <exclusion>
  306. <groupId>org.slf4j</groupId>
  307. <artifactId>slf4j-log4j12</artifactId>
  308. </exclusion>
  309. <exclusion>
  310. <groupId>com.fasterxml.jackson.core</groupId>
  311. <artifactId>jackson-databind</artifactId>
  312. </exclusion>
  313. </exclusions>
  314. </dependency>
  315.  
  316. <dependency>
  317. <groupId>org.elasticsearch</groupId>
  318. <artifactId>elasticsearch-hadoop</artifactId>
  319. <version>${elasticsearch.version}</version>
  320. <exclusions>
  321. <exclusion>
  322. <artifactId>commons-net</artifactId>
  323. <groupId>commons-net</groupId>
  324. </exclusion>
  325. <exclusion>
  326. <groupId>org.apache.hive</groupId>
  327. <artifactId>hive-service</artifactId>
  328. </exclusion>
  329. <exclusion>
  330. <groupId>org.slf4j</groupId>
  331. <artifactId>slf4j-log4j12</artifactId>
  332. </exclusion>
  333. <exclusion>
  334. <groupId>log4j</groupId>
  335. <artifactId>log4j</artifactId>
  336. </exclusion>
  337. <exclusion>
  338. <groupId>org.apache.storm</groupId>
  339. <artifactId>storm-core</artifactId>
  340. </exclusion>
  341. <exclusion>
  342. <groupId>cascading</groupId>
  343. <artifactId>cascading-local</artifactId>
  344. </exclusion>
  345. <exclusion>
  346. <groupId>cascading</groupId>
  347. <artifactId>cascading-core</artifactId>
  348. </exclusion>
  349. <exclusion>
  350. <groupId>cascading</groupId>
  351. <artifactId>cascading-hadoop</artifactId>
  352. </exclusion>
  353. <exclusion>
  354. <groupId>com.fasterxml.jackson.core</groupId>
  355. <artifactId>jackson-databind</artifactId>
  356. </exclusion>
  357. </exclusions>
  358. </dependency>
  359.  
  360. <dependency>
  361. <groupId>org.apache.storm</groupId>
  362. <artifactId>storm-core</artifactId>
  363. <version>${storm.version}</version>
  364. <scope>provided</scope>
  365. <exclusions>
  366. <exclusion>
  367. <groupId>org.apache.logging.log4j</groupId>
  368. <artifactId>log4j-api</artifactId>
  369. </exclusion>
  370. <exclusion>
  371. <groupId>org.apache.logging.log4j</groupId>
  372. <artifactId>log4j-core</artifactId>
  373. </exclusion>
  374. <exclusion>
  375. <groupId>org.apache.logging.log4j</groupId>
  376. <artifactId>log4j-slf4j-impl</artifactId>
  377. </exclusion>
  378. <exclusion>
  379. <groupId>org.slf4j</groupId>
  380. <artifactId>slf4j-log4j12</artifactId>
  381. </exclusion>
  382. </exclusions>
  383. </dependency>
  384.  
  385. <dependency>
  386. <groupId>org.apache.storm</groupId>
  387. <artifactId>storm-kafka</artifactId>
  388. <version>${storm.version}</version>
  389. </dependency>
  390.  
  391. <dependency>
  392. <groupId>org.apache.kafka</groupId>
  393. <artifactId>kafka_2.10</artifactId>
  394. <version>${kafka.version}</version>
  395. <exclusions>
  396. <exclusion>
  397. <groupId>log4j</groupId>
  398. <artifactId>log4j</artifactId>
  399. </exclusion>
  400. <exclusion>
  401. <groupId>org.slf4j</groupId>
  402. <artifactId>slf4j-log4j12</artifactId>
  403. </exclusion>
  404. <exclusion>
  405. <groupId>org.scala-lang</groupId>
  406. <artifactId>scala-library</artifactId>
  407. </exclusion>
  408. </exclusions>
  409. </dependency>
  410.  
  411. <dependency>
  412. <groupId>org.apache.curator</groupId>
  413. <artifactId>curator-test</artifactId>
  414. <version>2.10.0</version>
  415. <scope>test</scope>
  416. </dependency>
  417.  
  418. <!-- Square's JNA GMP module -->
  419. <dependency>
  420. <groupId>com.squareup.jnagmp</groupId>
  421. <artifactId>jnagmp</artifactId>
  422. <version>1.1.0</version>
  423. </dependency>
  424.  
  425. <!-- JMH for benchmarking the Paillier functions -->
  426. <dependency>
  427. <groupId>org.openjdk.jmh</groupId>
  428. <artifactId>jmh-core</artifactId>
  429. <version>${jmh.version}</version>
  430. <scope>provided</scope>
  431. </dependency>
  432.  
  433. <dependency>
  434. <groupId>org.openjdk.jmh</groupId>
  435. <artifactId>jmh-generator-annprocess</artifactId>
  436. <version>${jmh.version}</version>
  437. <scope>provided</scope>
  438. </dependency>
  439.  
  440. <!-- Sl4j modules -->
  441. <dependency>
  442. <groupId>org.slf4j</groupId>
  443. <artifactId>slf4j-api</artifactId>
  444. <version>${slf4j.version}</version>
  445. </dependency>
  446.  
  447. <dependency>
  448. <groupId>org.apache.logging.log4j</groupId>
  449. <artifactId>log4j-slf4j-impl</artifactId>
  450. <version>${log4j2.version}</version>
  451. </dependency>
  452.  
  453.  
  454. <dependency>
  455. <groupId>org.scala-lang</groupId>
  456. <artifactId>scala-library</artifactId>
  457. <version>${scala.version}</version>
  458. </dependency>
  459.  
  460. </dependencies>
  461.  
  462. <build>
  463. <plugins>
  464. <plugin>
  465. <groupId>org.apache.maven.plugins</groupId>
  466. <artifactId>maven-surefire-plugin</artifactId>
  467. </plugin>
  468. <plugin>
  469. <groupId>org.apache.maven.plugins</groupId>
  470. <artifactId>maven-compiler-plugin</artifactId>
  471. </plugin>
  472.  
  473. <plugin>
  474. <groupId>org.apache.maven.plugins</groupId>
  475. <artifactId>maven-jar-plugin</artifactId>
  476. </plugin>
  477.  
  478. <plugin>
  479. <groupId>org.apache.maven.plugins</groupId>
  480. <artifactId>maven-source-plugin</artifactId>
  481. </plugin>
  482.  
  483. <plugin>
  484. <groupId>org.apache.maven.plugins</groupId>
  485. <artifactId>maven-shade-plugin</artifactId>
  486. </plugin>
  487.  
  488. <plugin>
  489. <groupId>org.apache.rat</groupId>
  490. <artifactId>apache-rat-plugin</artifactId>
  491. </plugin>
  492.  
  493. <plugin>
  494. <groupId>org.apache.maven.plugins</groupId>
  495. <artifactId>maven-release-plugin</artifactId>
  496. </plugin>
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503. </plugins>
  504.  
  505. <pluginManagement>
  506. <plugins>
  507. <plugin>
  508. <groupId>org.apache.rat</groupId>
  509. <artifactId>apache-rat-plugin</artifactId>
  510. <version>0.12</version>
  511. <configuration>
  512. <excludes>
  513. <exclude>.travis.yml</exclude> <!-- Travis CI Build Descriptor File -->
  514. <exclude>findbugs-exclude.xml</exclude> <!-- False positives for FindBugs analysis -->
  515. <exclude>KEYS</exclude> <!-- GPG keys of Release Managers -->
  516. <exclude>RUNNING.md</exclude>
  517. <exclude>eclipse*.xml</exclude> <!-- Exclude eclipse* xml -->
  518. <exclude>docs/*</exclude> <!-- Exclude docs -->
  519. <exclude>examples/*</exclude> <!-- Exclude Examples -->
  520. <exclude>examples/simple/*</exclude> <!-- Exclude simple example -->
  521. <exclude>examples/phone/*</exclude> <!-- Exclude Phone example -->
  522. <exclude>logs/*</exclude> <!-- Exclude logs -->
  523. <exclude>jni/*</exclude> <!-- Exclude jni -->
  524. <exclude>**/m2.conf
  525. </exclude> <!-- Exclude Maven conf which gets installed on travis and fails RAT check -->
  526. <exclude>src/main/resources/META-INF/**</exclude>
  527. </excludes>
  528. </configuration>
  529. <dependencies>
  530. <!-- workaround for RAT-158 -->
  531. <dependency>
  532. <groupId>org.apache.maven.doxia</groupId>
  533. <artifactId>doxia-core</artifactId>
  534. <version>1.6</version>
  535. <exclusions>
  536. <exclusion>
  537. <groupId>xerces</groupId>
  538. <artifactId>xercesImpl</artifactId>
  539. </exclusion>
  540. </exclusions>
  541. </dependency>
  542. </dependencies>
  543. <executions>
  544. <execution>
  545. <phase>validate</phase>
  546. <goals>
  547. <goal>check</goal>
  548. </goals>
  549. </execution>
  550. </executions>
  551. </plugin>
  552.  
  553. <!-- Coverage analysis for tests -->
  554. <plugin>
  555. <groupId>org.jacoco</groupId>
  556. <artifactId>jacoco-maven-plugin</artifactId>
  557. <version>${jacoco.maven.plugin}</version>
  558. <executions>
  559. <execution>
  560. <goals>
  561. <goal>prepare-agent</goal>
  562. </goals>
  563. <configuration>
  564. <output>file</output>
  565. <dumpOnExit>true</dumpOnExit>
  566. </configuration>
  567. </execution>
  568. <execution>
  569. <id>report</id>
  570. <phase>prepare-package</phase>
  571. <goals>
  572. <goal>report</goal>
  573. </goals>
  574. </execution>
  575. </executions>
  576. </plugin>
  577.  
  578. <!-- Report jacoco coverage to coveralls.io -->
  579. <plugin>
  580. <groupId>org.eluder.coveralls</groupId>
  581. <artifactId>coveralls-maven-plugin</artifactId>
  582. <version>${coveralls.maven.plugin}</version>
  583. </plugin>
  584.  
  585.  
  586. <plugin>
  587. <groupId>org.apache.maven.plugins</groupId>
  588. <artifactId>maven-surefire-plugin</artifactId>
  589. <version>2.18</version>
  590. <configuration>
  591. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  592. <argLine combine.children="append">@{argLine}</argLine>
  593. <systemPropertyVariables>
  594. <log4j.configuration>${log4j.configuration}</log4j.configuration>
  595. </systemPropertyVariables>
  596. <forkCount>${******.forkCount}</forkCount>
  597. <reuseForks>${******.reuseForks}</reuseForks>
  598. </configuration>
  599. <dependencies>
  600. <dependency>
  601. <!-- Force surefire to use JUnit -->
  602. <groupId>org.apache.maven.surefire</groupId>
  603. <artifactId>surefire-junit4</artifactId>
  604. <version>2.19.1</version>
  605. </dependency>
  606. </dependencies>
  607. </plugin>
  608.  
  609. <plugin>
  610. <groupId>org.apache.maven.plugins</groupId>
  611. <artifactId>maven-compiler-plugin</artifactId>
  612. <version>3.6.0</version>
  613. <configuration>
  614. <compilerVersion>${javac.target}</compilerVersion>
  615. <source>${javac.target}</source>
  616. <target>${javac.target}</target>
  617. </configuration>
  618. </plugin>
  619.  
  620. <plugin>
  621. <groupId>org.apache.maven.plugins</groupId>
  622. <artifactId>maven-jar-plugin</artifactId>
  623. <configuration>
  624. <excludes>
  625. <exclude>org/******/******/benchmark/**</exclude>
  626. <exclude>*/openjdk/**</exclude>
  627. <exclude>generated-sources/**</exclude>
  628. </excludes>
  629. <archive>
  630. <manifest>
  631. <mainClass>org.******.******.rest.DropwizardExampleApp</mainClass>
  632. </manifest>
  633. </archive>
  634. </configuration>
  635. </plugin>
  636.  
  637. <plugin>
  638. <groupId>org.apache.maven.plugins</groupId>
  639. <artifactId>maven-source-plugin</artifactId>
  640. <version>3.0.1</version>
  641. <configuration>
  642. <excludes>
  643. <exclude>org/v/******/benchmark/**</exclude>
  644. <exclude>*/openjdk/**</exclude>
  645. <exclude>generated-sources/**</exclude>
  646. </excludes>
  647. </configuration>
  648. </plugin>
  649.  
  650. <plugin>
  651. <groupId>org.apache.maven.plugins</groupId>
  652. <artifactId>maven-shade-plugin</artifactId>
  653. <version>3.0.0</version> <!-- older versions of maven-shade-plugin make JMH painful -->
  654.  
  655. <executions>
  656. <execution>
  657. <phase>package</phase>
  658. <id>main</id>
  659. <goals>
  660. <goal>shade</goal>
  661. </goals>
  662. <configuration>
  663. <shadedArtifactAttached>true</shadedArtifactAttached>
  664. <shadedClassifierName>exe</shadedClassifierName>
  665. <transformers>
  666. <transformer
  667. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  668. </transformer>
  669. <transformer
  670. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer">
  671. </transformer>
  672. </transformers>
  673. <filters>
  674. <filter>
  675. <artifact>*:*</artifact>
  676. <excludes>
  677. <exclude>META-INF/*.SF</exclude>
  678. <exclude>META-INF/*.DSA</exclude>
  679. <exclude>META-INF/*.RSA</exclude>
  680. </excludes>
  681. </filter>
  682. </filters>
  683. </configuration>
  684. </execution>
  685.  
  686. <!-- in the version with benchmarks (pom-with-benchmarks.xml), this
  687. is where that <execution></execution> lives -->
  688.  
  689. </executions>
  690. </plugin>
  691.  
  692. <!--This plugin's configuration is used to store Eclipse m2e settings
  693. only. It has no influence on the Maven build itself. -->
  694. <plugin>
  695. <groupId>org.eclipse.m2e</groupId>
  696. <artifactId>lifecycle-mapping</artifactId>
  697. <version>1.0.0</version>
  698. <configuration>
  699. <lifecycleMappingMetadata>
  700. <pluginExecutions>
  701. <pluginExecution>
  702. <pluginExecutionFilter>
  703. <groupId>
  704. org.scala-tools
  705. </groupId>
  706. <artifactId>
  707. maven-scala-plugin
  708. </artifactId>
  709. <versionRange>
  710. [2.15.2,)
  711. </versionRange>
  712. <goals>
  713. <goal>testCompile</goal>
  714. </goals>
  715. </pluginExecutionFilter>
  716. <action>
  717. <ignore />
  718. </action>
  719. </pluginExecution>
  720. <pluginExecution>
  721. <pluginExecutionFilter>
  722. <groupId>
  723. org.apache.rat
  724. </groupId>
  725. <artifactId>
  726. apache-rat-plugin
  727. </artifactId>
  728. <versionRange>
  729. [0.11,)
  730. </versionRange>
  731. <goals>
  732. <goal>check</goal>
  733. </goals>
  734. </pluginExecutionFilter>
  735. <action>
  736. <ignore />
  737. </action>
  738. </pluginExecution>
  739. </pluginExecutions>
  740. </lifecycleMappingMetadata>
  741. </configuration>
  742. </plugin>
  743.  
  744. <plugin>
  745. <groupId>org.apache.maven.plugins</groupId>
  746. <artifactId>maven-release-plugin</artifactId>
  747. <version>2.5.3</version>
  748. <configuration>
  749. <useReleaseProfile>true</useReleaseProfile>
  750. <releaseProfiles>signed_release</releaseProfiles>
  751. <autoVersionSubmodules>true</autoVersionSubmodules>
  752. <goals>deploy</goals>
  753. <tagNameFormat>@{project.artifactId}-@{project.version}</tagNameFormat>
  754. <pushChanges>false</pushChanges>
  755. <localCheckout>true</localCheckout>
  756. </configuration>
  757. <executions>
  758. <execution>
  759. <id>default</id>
  760. <goals>
  761. <goal>perform</goal>
  762. </goals>
  763. <configuration>
  764. <pomFileName>pom.xml</pomFileName>
  765. </configuration>
  766. </execution>
  767. </executions>
  768. </plugin>
  769.  
  770. <plugin>
  771. <groupId>org.apache.maven.plugins</groupId>
  772. <artifactId>maven-javadoc-plugin</artifactId>
  773. <version>2.10.4</version>
  774. <configuration>
  775. <javadocDirectory>docs</javadocDirectory>
  776. <testJavadocDirectory>docs/test</testJavadocDirectory>
  777. <javadocVersion>1.8</javadocVersion>
  778. </configuration>
  779. </plugin>
  780. </plugins>
  781. </pluginManagement>
  782.  
  783. </build>
  784.  
  785. <profiles>
  786. <profile>
  787. <!-- Performs execution of Integration Tests using the Maven FailSafe
  788. Plugin. The view of integration tests in this context are those tests interfacing
  789. with external sources and services requiring additional resources or credentials
  790. that cannot be explicitly provided. -->
  791. <id>integration-tests</id>
  792. <build>
  793. <plugins>
  794. <plugin>
  795. <groupId>org.apache.maven.plugins</groupId>
  796. <artifactId>maven-failsafe-plugin</artifactId>
  797. <executions>
  798. <execution>
  799. <goals>
  800. <goal>integration-test</goal>
  801. <goal>verify</goal>
  802. </goals>
  803. </execution>
  804. </executions>
  805. </plugin>
  806. </plugins>
  807. </build>
  808. </profile>
  809. <profile>
  810. <!-- Checks style and licensing requirements. This is a good idea to run
  811. for contributions and for the release process. While it would be nice to
  812. run always these plugins can considerably slow the build and have proven
  813. to create unstable builds in our multi-module project and when building using
  814. multiple threads. The stability issues seen with Checkstyle in multi-module
  815. builds include false-positives and false negatives. -->
  816. <id>contrib-check</id>
  817. <build>
  818. <plugins>
  819. <plugin>
  820. <groupId>org.apache.rat</groupId>
  821. <artifactId>apache-rat-plugin</artifactId>
  822. <executions>
  823. <execution>
  824. <goals>
  825. <goal>check</goal>
  826. </goals>
  827. <phase>verify</phase>
  828. </execution>
  829. </executions>
  830. </plugin>
  831. <plugin>
  832. <groupId>org.apache.maven.plugins</groupId>
  833. <artifactId>maven-checkstyle-plugin</artifactId>
  834. <executions>
  835. <execution>
  836. <id>check-style</id>
  837. <goals>
  838. <goal>check</goal>
  839. </goals>
  840. </execution>
  841. </executions>
  842. </plugin>
  843. </plugins>
  844. </build>
  845. </profile>
  846. <profile>
  847. <!-- This profile will disable DocLint which performs strict JavaDoc processing
  848. which was introduced in JDK 8. These are technically errors in the JavaDoc
  849. which we need to eventually address. However, if a release is performed using
  850. JDK 8, the JavaDoc generation would fail. By activating this profile when
  851. running on JDK 8 we can ensure the JavaDocs continue to generate successfully -->
  852. <id>disable-doclint</id>
  853. <activation>
  854. <jdk>1.8</jdk>
  855. </activation>
  856. <build>
  857. <pluginManagement>
  858. <plugins>
  859. <plugin>
  860. <groupId>org.apache.maven.plugins</groupId>
  861. <artifactId>maven-javadoc-plugin</artifactId>
  862. <configuration>
  863. <additionalparam>-Xdoclint:none</additionalparam>
  864. </configuration>
  865. </plugin>
  866. </plugins>
  867. </pluginManagement>
  868. </build>
  869. </profile>
  870.  
  871. <profile>
  872. <id>jacoco</id>
  873. <build>
  874. <plugins>
  875. <plugin>
  876. <groupId>org.jacoco</groupId>
  877. <artifactId>jacoco-maven-plugin</artifactId>
  878. </plugin>
  879. </plugins>
  880. </build>
  881. </profile>
  882. </profiles>
  883.  
  884. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement