pom.xml 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License. See accompanying LICENSE file.
  12. -->
  13. <project xmlns="http://maven.apache.org/POM/4.0.0"
  14. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  16. https://maven.apache.org/xsd/maven-4.0.0.xsd">
  17. <modelVersion>4.0.0</modelVersion>
  18. <parent>
  19. <groupId>org.apache.hadoop</groupId>
  20. <artifactId>hadoop-project-dist</artifactId>
  21. <version>3.4.0-SNAPSHOT</version>
  22. <relativePath>../../hadoop-project-dist</relativePath>
  23. </parent>
  24. <artifactId>hadoop-common</artifactId>
  25. <version>3.4.0-SNAPSHOT</version>
  26. <description>Apache Hadoop Common</description>
  27. <name>Apache Hadoop Common</name>
  28. <packaging>jar</packaging>
  29. <properties>
  30. <hadoop.component>common</hadoop.component>
  31. <is.hadoop.component>true</is.hadoop.component>
  32. <is.hadoop.common.component>true</is.hadoop.common.component>
  33. <wsce.config.dir>../etc/hadoop</wsce.config.dir>
  34. <wsce.config.file>wsce-site.xml</wsce.config.file>
  35. </properties>
  36. <dependencies>
  37. <dependency>
  38. <groupId>org.apache.hadoop.thirdparty</groupId>
  39. <artifactId>hadoop-shaded-protobuf_3_7</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.apache.hadoop</groupId>
  43. <artifactId>hadoop-annotations</artifactId>
  44. <scope>compile</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.apache.hadoop.thirdparty</groupId>
  48. <artifactId>hadoop-shaded-guava</artifactId>
  49. </dependency>
  50. <!--Guava is required during runtime for curator-->
  51. <dependency>
  52. <groupId>com.google.guava</groupId>
  53. <artifactId>guava</artifactId>
  54. <scope>compile</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>commons-cli</groupId>
  58. <artifactId>commons-cli</artifactId>
  59. <scope>compile</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.apache.commons</groupId>
  63. <artifactId>commons-math3</artifactId>
  64. <scope>compile</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.apache.httpcomponents</groupId>
  68. <artifactId>httpclient</artifactId>
  69. <scope>compile</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>commons-codec</groupId>
  73. <artifactId>commons-codec</artifactId>
  74. <scope>compile</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>commons-io</groupId>
  78. <artifactId>commons-io</artifactId>
  79. <scope>compile</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>commons-net</groupId>
  83. <artifactId>commons-net</artifactId>
  84. <scope>compile</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>commons-collections</groupId>
  88. <artifactId>commons-collections</artifactId>
  89. <scope>compile</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>javax.servlet</groupId>
  93. <artifactId>javax.servlet-api</artifactId>
  94. <scope>compile</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>jakarta.activation</groupId>
  98. <artifactId>jakarta.activation-api</artifactId>
  99. <scope>runtime</scope>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.eclipse.jetty</groupId>
  103. <artifactId>jetty-server</artifactId>
  104. <scope>compile</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.eclipse.jetty</groupId>
  108. <artifactId>jetty-util</artifactId>
  109. <scope>compile</scope>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.eclipse.jetty</groupId>
  113. <artifactId>jetty-servlet</artifactId>
  114. <scope>compile</scope>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.eclipse.jetty</groupId>
  118. <artifactId>jetty-webapp</artifactId>
  119. <scope>compile</scope>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.eclipse.jetty</groupId>
  123. <artifactId>jetty-util-ajax</artifactId>
  124. <scope>test</scope>
  125. </dependency>
  126. <dependency>
  127. <groupId>javax.servlet.jsp</groupId>
  128. <artifactId>jsp-api</artifactId>
  129. <scope>runtime</scope>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.sun.jersey</groupId>
  133. <artifactId>jersey-core</artifactId>
  134. <scope>compile</scope>
  135. </dependency>
  136. <dependency>
  137. <groupId>com.sun.jersey</groupId>
  138. <artifactId>jersey-servlet</artifactId>
  139. <scope>compile</scope>
  140. <exclusions>
  141. <exclusion>
  142. <groupId>javax.enterprise</groupId>
  143. <artifactId>cdi-api</artifactId>
  144. </exclusion>
  145. <exclusion>
  146. <groupId>javax.servlet</groupId>
  147. <artifactId>servlet-api</artifactId>
  148. </exclusion>
  149. <exclusion>
  150. <groupId>ch.qos.cal10n</groupId>
  151. <artifactId>cal10n-api</artifactId>
  152. </exclusion>
  153. </exclusions>
  154. </dependency>
  155. <dependency>
  156. <groupId>com.github.pjfanning</groupId>
  157. <artifactId>jersey-json</artifactId>
  158. <scope>compile</scope>
  159. <exclusions>
  160. <exclusion>
  161. <groupId>com.fasterxml.jackson.core</groupId>
  162. <artifactId>jackson-core</artifactId>
  163. </exclusion>
  164. <exclusion>
  165. <groupId>com.fasterxml.jackson.core</groupId>
  166. <artifactId>jackson-databind</artifactId>
  167. </exclusion>
  168. <exclusion>
  169. <groupId>com.fasterxml.jackson.jaxrs</groupId>
  170. <artifactId>jackson-jaxrs-json-provider</artifactId>
  171. </exclusion>
  172. <exclusion>
  173. <groupId>org.codehaus.jettison</groupId>
  174. <artifactId>jettison</artifactId>
  175. </exclusion>
  176. </exclusions>
  177. </dependency>
  178. <dependency>
  179. <!--
  180. adding jettison as direct dependency (as jersey-json's jettison dependency is vulnerable with verison 1.1),
  181. so those who depends on hadoop-common externally will get the non-vulnerable jettison
  182. -->
  183. <groupId>org.codehaus.jettison</groupId>
  184. <artifactId>jettison</artifactId>
  185. </dependency>
  186. <dependency>
  187. <groupId>com.sun.jersey</groupId>
  188. <artifactId>jersey-server</artifactId>
  189. <scope>compile</scope>
  190. </dependency>
  191. <dependency>
  192. <groupId>log4j</groupId>
  193. <artifactId>log4j</artifactId>
  194. <scope>compile</scope>
  195. </dependency>
  196. <dependency>
  197. <groupId>junit</groupId>
  198. <artifactId>junit</artifactId>
  199. <scope>test</scope>
  200. </dependency>
  201. <dependency>
  202. <groupId>org.assertj</groupId>
  203. <artifactId>assertj-core</artifactId>
  204. <scope>test</scope>
  205. </dependency>
  206. <dependency>
  207. <groupId>commons-beanutils</groupId>
  208. <artifactId>commons-beanutils</artifactId>
  209. <scope>compile</scope>
  210. </dependency>
  211. <dependency>
  212. <groupId>org.apache.commons</groupId>
  213. <artifactId>commons-configuration2</artifactId>
  214. <scope>compile</scope>
  215. <exclusions>
  216. <exclusion>
  217. <groupId>javax.servlet</groupId>
  218. <artifactId>servlet-api</artifactId>
  219. </exclusion>
  220. </exclusions>
  221. </dependency>
  222. <dependency>
  223. <groupId>org.apache.commons</groupId>
  224. <artifactId>commons-lang3</artifactId>
  225. <scope>compile</scope>
  226. </dependency>
  227. <dependency>
  228. <groupId>org.apache.commons</groupId>
  229. <artifactId>commons-text</artifactId>
  230. <scope>compile</scope>
  231. </dependency>
  232. <dependency>
  233. <groupId>org.slf4j</groupId>
  234. <artifactId>slf4j-api</artifactId>
  235. <scope>compile</scope>
  236. </dependency>
  237. <dependency>
  238. <groupId>org.slf4j</groupId>
  239. <artifactId>slf4j-log4j12</artifactId>
  240. <scope>compile</scope>
  241. </dependency>
  242. <dependency>
  243. <groupId>org.mockito</groupId>
  244. <artifactId>mockito-core</artifactId>
  245. <scope>test</scope>
  246. </dependency>
  247. <dependency>
  248. <groupId>org.apache.avro</groupId>
  249. <artifactId>avro</artifactId>
  250. <scope>compile</scope>
  251. </dependency>
  252. <dependency>
  253. <groupId>org.apache.ant</groupId>
  254. <artifactId>ant</artifactId>
  255. <scope>test</scope>
  256. </dependency>
  257. <dependency>
  258. <groupId>com.google.re2j</groupId>
  259. <artifactId>re2j</artifactId>
  260. <scope>compile</scope>
  261. </dependency>
  262. <!-- Needed for compilation, though no longer in production. -->
  263. <dependency>
  264. <groupId>com.google.protobuf</groupId>
  265. <artifactId>protobuf-java</artifactId>
  266. <scope>${common.protobuf2.scope}</scope>
  267. </dependency>
  268. <dependency>
  269. <groupId>com.google.code.gson</groupId>
  270. <artifactId>gson</artifactId>
  271. </dependency>
  272. <dependency>
  273. <groupId>org.apache.hadoop</groupId>
  274. <artifactId>hadoop-auth</artifactId>
  275. <scope>compile</scope>
  276. </dependency>
  277. <dependency>
  278. <groupId>org.apache.hadoop</groupId>
  279. <artifactId>hadoop-auth</artifactId>
  280. <type>test-jar</type>
  281. <scope>test</scope>
  282. </dependency>
  283. <dependency>
  284. <groupId>org.apache.hadoop</groupId>
  285. <artifactId>hadoop-minikdc</artifactId>
  286. <scope>test</scope>
  287. </dependency>
  288. <dependency>
  289. <groupId>com.jcraft</groupId>
  290. <artifactId>jsch</artifactId>
  291. </dependency>
  292. <dependency>
  293. <groupId>org.apache.curator</groupId>
  294. <artifactId>curator-test</artifactId>
  295. <scope>test</scope>
  296. </dependency>
  297. <dependency>
  298. <groupId>org.apache.curator</groupId>
  299. <artifactId>curator-client</artifactId>
  300. </dependency>
  301. <dependency>
  302. <groupId>org.apache.curator</groupId>
  303. <artifactId>curator-recipes</artifactId>
  304. </dependency>
  305. <dependency>
  306. <groupId>com.google.code.findbugs</groupId>
  307. <artifactId>jsr305</artifactId>
  308. <scope>compile</scope>
  309. </dependency>
  310. <dependency>
  311. <groupId>org.apache.sshd</groupId>
  312. <artifactId>sshd-core</artifactId>
  313. <scope>test</scope>
  314. </dependency>
  315. <dependency>
  316. <groupId>org.apache.ftpserver</groupId>
  317. <artifactId>ftpserver-core</artifactId>
  318. <scope>test</scope>
  319. </dependency>
  320. <dependency>
  321. <groupId>org.apache.zookeeper</groupId>
  322. <artifactId>zookeeper</artifactId>
  323. <exclusions>
  324. <exclusion>
  325. <groupId>org.jboss.netty</groupId>
  326. <artifactId>netty</artifactId>
  327. </exclusion>
  328. <exclusion>
  329. <!-- otherwise seems to drag in junit 3.8.1 via jline -->
  330. <groupId>junit</groupId>
  331. <artifactId>junit</artifactId>
  332. </exclusion>
  333. <exclusion>
  334. <groupId>com.sun.jdmk</groupId>
  335. <artifactId>jmxtools</artifactId>
  336. </exclusion>
  337. <exclusion>
  338. <groupId>com.sun.jmx</groupId>
  339. <artifactId>jmxri</artifactId>
  340. </exclusion>
  341. </exclusions>
  342. </dependency>
  343. <dependency>
  344. <groupId>io.netty</groupId>
  345. <artifactId>netty-handler</artifactId>
  346. </dependency>
  347. <dependency>
  348. <groupId>io.netty</groupId>
  349. <artifactId>netty-transport-native-epoll</artifactId>
  350. </dependency>
  351. <dependency>
  352. <groupId>io.dropwizard.metrics</groupId>
  353. <artifactId>metrics-core</artifactId>
  354. </dependency>
  355. <dependency>
  356. <groupId>org.apache.zookeeper</groupId>
  357. <artifactId>zookeeper</artifactId>
  358. <type>test-jar</type>
  359. <scope>test</scope>
  360. </dependency>
  361. <dependency>
  362. <groupId>org.apache.commons</groupId>
  363. <artifactId>commons-compress</artifactId>
  364. </dependency>
  365. <dependency>
  366. <groupId>org.bouncycastle</groupId>
  367. <artifactId>bcprov-jdk15on</artifactId>
  368. </dependency>
  369. <dependency>
  370. <groupId>org.apache.kerby</groupId>
  371. <artifactId>kerb-core</artifactId>
  372. </dependency>
  373. <dependency>
  374. <groupId>com.fasterxml.jackson.core</groupId>
  375. <artifactId>jackson-databind</artifactId>
  376. </dependency>
  377. <dependency>
  378. <groupId>org.codehaus.woodstox</groupId>
  379. <artifactId>stax2-api</artifactId>
  380. <scope>compile</scope>
  381. </dependency>
  382. <dependency>
  383. <groupId>com.fasterxml.woodstox</groupId>
  384. <artifactId>woodstox-core</artifactId>
  385. <scope>compile</scope>
  386. </dependency>
  387. <dependency>
  388. <groupId>com.squareup.okhttp3</groupId>
  389. <artifactId>mockwebserver</artifactId>
  390. <scope>test</scope>
  391. </dependency>
  392. <dependency>
  393. <groupId>org.jetbrains.kotlin</groupId>
  394. <artifactId>kotlin-stdlib-jdk8</artifactId>
  395. <scope>test</scope>
  396. </dependency>
  397. <dependency>
  398. <groupId>dnsjava</groupId>
  399. <artifactId>dnsjava</artifactId>
  400. <scope>compile</scope>
  401. </dependency>
  402. <dependency>
  403. <groupId>org.wildfly.openssl</groupId>
  404. <artifactId>wildfly-openssl</artifactId>
  405. <scope>test</scope>
  406. </dependency>
  407. <dependency>
  408. <groupId>org.wildfly.openssl</groupId>
  409. <artifactId>wildfly-openssl-java</artifactId>
  410. <scope>provided</scope>
  411. </dependency>
  412. <dependency>
  413. <groupId>org.xerial.snappy</groupId>
  414. <artifactId>snappy-java</artifactId>
  415. <scope>compile</scope>
  416. </dependency>
  417. <dependency>
  418. <groupId>org.lz4</groupId>
  419. <artifactId>lz4-java</artifactId>
  420. <scope>provided</scope>
  421. </dependency>
  422. </dependencies>
  423. <build>
  424. <!--
  425. Include all files in src/main/resources. By default, do not apply property
  426. substitution (filtering=false), but do apply property substitution to
  427. common-version-info.properties (filtering=true). This will substitute the
  428. version information correctly, but prevent Maven from altering other files
  429. like core-default.xml.
  430. -->
  431. <resources>
  432. <resource>
  433. <directory>${basedir}/src/main/resources</directory>
  434. <excludes>
  435. <exclude>common-version-info.properties</exclude>
  436. </excludes>
  437. <filtering>false</filtering>
  438. </resource>
  439. <resource>
  440. <directory>${basedir}/src/main/resources</directory>
  441. <includes>
  442. <include>common-version-info.properties</include>
  443. </includes>
  444. <filtering>true</filtering>
  445. </resource>
  446. </resources>
  447. <plugins>
  448. <plugin>
  449. <groupId>org.xolstice.maven.plugins</groupId>
  450. <artifactId>protobuf-maven-plugin</artifactId>
  451. <executions>
  452. <execution>
  453. <id>src-compile-protoc</id>
  454. <configuration>
  455. <skip>false</skip>
  456. <excludes>
  457. <exclude>ProtobufRpcEngine.proto</exclude>
  458. </excludes>
  459. </configuration>
  460. </execution>
  461. <execution>
  462. <id>src-test-compile-protoc</id>
  463. <configuration>
  464. <skip>false</skip>
  465. <excludes>
  466. <exclude>*legacy.proto</exclude>
  467. </excludes>
  468. </configuration>
  469. </execution>
  470. </executions>
  471. </plugin>
  472. <plugin>
  473. <groupId>com.google.code.maven-replacer-plugin</groupId>
  474. <artifactId>replacer</artifactId>
  475. <executions>
  476. <execution>
  477. <id>replace-generated-sources</id>
  478. <configuration>
  479. <skip>false</skip>
  480. <excludes>
  481. <exclude>**/ProtobufRpcEngineProtos.java</exclude>
  482. </excludes>
  483. </configuration>
  484. </execution>
  485. <execution>
  486. <id>replace-generated-test-sources</id>
  487. <configuration>
  488. <skip>false</skip>
  489. <excludes>
  490. <exclude>**/TestProtosLegacy.java</exclude>
  491. <exclude>**/TestRpcServiceProtosLegacy.java</exclude>
  492. </excludes>
  493. </configuration>
  494. </execution>
  495. <execution>
  496. <id>replace-sources</id>
  497. <configuration>
  498. <skip>false</skip>
  499. <!--These classes have direct Protobuf references for backward compatibility reasons-->
  500. <excludes>
  501. <exclude>**/ProtobufHelper.java</exclude>
  502. <exclude>**/ProtobufRpcEngineCallback.java</exclude>
  503. <exclude>**/ProtobufRpcEngine.java</exclude>
  504. <exclude>**/ProtobufRpcEngine2.java</exclude>
  505. <exclude>**/ProtobufRpcEngineProtos.java</exclude>
  506. <exclude>**/ProtobufWrapperLegacy.java</exclude>
  507. </excludes>
  508. </configuration>
  509. </execution>
  510. <execution>
  511. <id>replace-test-sources</id>
  512. <configuration>
  513. <skip>false</skip>
  514. <excludes>
  515. <exclude>**/TestProtoBufRpc.java</exclude>
  516. </excludes>
  517. </configuration>
  518. </execution>
  519. </executions>
  520. </plugin>
  521. <plugin>
  522. <groupId>org.apache.hadoop</groupId>
  523. <artifactId>hadoop-maven-plugins</artifactId>
  524. <executions>
  525. <execution>
  526. <id>version-info</id>
  527. <phase>generate-resources</phase>
  528. <goals>
  529. <goal>version-info</goal>
  530. </goals>
  531. <configuration>
  532. <source>
  533. <directory>${basedir}/src/main</directory>
  534. <includes>
  535. <include>java/**/*.java</include>
  536. <include>proto/**/*.proto</include>
  537. </includes>
  538. </source>
  539. </configuration>
  540. </execution>
  541. <execution>
  542. <id>resource-gz</id>
  543. <phase>generate-resources</phase>
  544. <goals>
  545. <goal>resource-gz</goal>
  546. </goals>
  547. <configuration>
  548. <inputDirectory>${basedir}/src/main/webapps/static</inputDirectory>
  549. <outputDirectory>${basedir}/target/webapps/static</outputDirectory>
  550. <extensions>js,css</extensions>
  551. </configuration>
  552. </execution>
  553. </executions>
  554. </plugin>
  555. <plugin>
  556. <groupId>org.apache.maven.plugins</groupId>
  557. <artifactId>maven-surefire-plugin</artifactId>
  558. <configuration>
  559. <systemPropertyVariables>
  560. <runningWithNative>${runningWithNative}</runningWithNative>
  561. </systemPropertyVariables>
  562. <properties>
  563. <property>
  564. <name>listener</name>
  565. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  566. </property>
  567. </properties>
  568. </configuration>
  569. </plugin>
  570. <plugin>
  571. <groupId>org.apache.avro</groupId>
  572. <artifactId>avro-maven-plugin</artifactId>
  573. <executions>
  574. <execution>
  575. <id>generate-avro-test-sources</id>
  576. <phase>generate-test-sources</phase>
  577. <goals>
  578. <goal>schema</goal>
  579. </goals>
  580. </execution>
  581. </executions>
  582. <configuration>
  583. <testOutputDirectory>${project.build.directory}/generated-test-sources/java</testOutputDirectory>
  584. </configuration>
  585. </plugin>
  586. <plugin>
  587. <groupId>org.apache.maven.plugins</groupId>
  588. <artifactId>maven-antrun-plugin</artifactId>
  589. <executions>
  590. <execution>
  591. <id>create-log-dir</id>
  592. <phase>process-test-resources</phase>
  593. <goals>
  594. <goal>run</goal>
  595. </goals>
  596. <configuration>
  597. <target>
  598. <!--
  599. TODO: there are tests (TestLocalFileSystem#testCopy) that fail if data
  600. TODO: from a previous run is present
  601. -->
  602. <delete dir="${test.build.data}"/>
  603. <mkdir dir="${test.build.data}"/>
  604. <mkdir dir="${hadoop.log.dir}"/>
  605. <copy toDir="${project.build.directory}/test-classes">
  606. <fileset dir="${basedir}/src/main/conf"/>
  607. </copy>
  608. </target>
  609. </configuration>
  610. </execution>
  611. <execution>
  612. <phase>pre-site</phase>
  613. <goals>
  614. <goal>run</goal>
  615. </goals>
  616. <configuration>
  617. <target>
  618. <copy file="src/main/resources/core-default.xml" todir="src/site/resources"/>
  619. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  620. </target>
  621. </configuration>
  622. </execution>
  623. </executions>
  624. </plugin>
  625. <plugin>
  626. <groupId>org.apache.rat</groupId>
  627. <artifactId>apache-rat-plugin</artifactId>
  628. <configuration>
  629. <excludes>
  630. <exclude>.idea/**</exclude>
  631. <exclude>src/main/conf/*</exclude>
  632. <exclude>dev-support/jdiff/**</exclude>
  633. <exclude>src/main/native/*</exclude>
  634. <exclude>src/main/native/config/*</exclude>
  635. <exclude>src/main/native/m4/*</exclude>
  636. <exclude>src/test/empty-file</exclude>
  637. <exclude>src/test/all-tests</exclude>
  638. <exclude>src/main/native/gtest/**/*</exclude>
  639. <exclude>src/test/resources/test-untar.tgz</exclude>
  640. <exclude>src/test/resources/test.har/_SUCCESS</exclude>
  641. <exclude>src/test/resources/test.har/_index</exclude>
  642. <exclude>src/test/resources/test.har/_masterindex</exclude>
  643. <exclude>src/test/resources/test.har/part-0</exclude>
  644. <exclude>src/test/resources/javakeystoreprovider.password</exclude>
  645. <exclude>dev-support/jdiff-workaround.patch</exclude>
  646. </excludes>
  647. </configuration>
  648. </plugin>
  649. <plugin>
  650. <groupId>org.codehaus.mojo</groupId>
  651. <artifactId>exec-maven-plugin</artifactId>
  652. <executions>
  653. <execution>
  654. <id>shelldocs</id>
  655. <phase>pre-site</phase>
  656. <goals>
  657. <goal>exec</goal>
  658. </goals>
  659. <configuration>
  660. <executable>${shell-executable}</executable>
  661. <workingDirectory>src/site/markdown</workingDirectory>
  662. <arguments>
  663. <argument>${basedir}/../../dev-support/bin/shelldocs</argument>
  664. <argument>--skipprnorep</argument>
  665. <argument>--output</argument>
  666. <argument>${basedir}/src/site/markdown/UnixShellAPI.md</argument>
  667. <argument>--input</argument>
  668. <argument>${basedir}/src/main/bin/hadoop-functions.sh</argument>
  669. </arguments>
  670. </configuration>
  671. </execution>
  672. </executions>
  673. </plugin>
  674. <plugin>
  675. <artifactId>maven-clean-plugin</artifactId>
  676. <configuration>
  677. <filesets>
  678. <fileset>
  679. <directory>src/site/markdown</directory>
  680. <includes>
  681. <include>UnixShellAPI.md</include>
  682. </includes>
  683. <followSymlinks>false</followSymlinks>
  684. </fileset>
  685. <fileset>
  686. <directory>src/site/resources</directory>
  687. <includes>
  688. <include>configuration.xsl</include>
  689. <include>core-default.xml</include>
  690. </includes>
  691. <followSymlinks>false</followSymlinks>
  692. </fileset>
  693. </filesets>
  694. </configuration>
  695. </plugin>
  696. </plugins>
  697. </build>
  698. <profiles>
  699. <profile>
  700. <id>native</id>
  701. <activation>
  702. <activeByDefault>false</activeByDefault>
  703. </activation>
  704. <properties>
  705. <require.bzip2>false</require.bzip2>
  706. <zstd.prefix></zstd.prefix>
  707. <zstd.lib></zstd.lib>
  708. <zstd.include></zstd.include>
  709. <require.zstd>false</require.zstd>
  710. <openssl.prefix></openssl.prefix>
  711. <openssl.lib></openssl.lib>
  712. <openssl.include></openssl.include>
  713. <require.isal>false</require.isal>
  714. <isal.prefix></isal.prefix>
  715. <isal.lib></isal.lib>
  716. <require.openssl>false</require.openssl>
  717. <runningWithNative>true</runningWithNative>
  718. <bundle.openssl.in.bin>false</bundle.openssl.in.bin>
  719. <extra.libhadoop.rpath></extra.libhadoop.rpath>
  720. </properties>
  721. <build>
  722. <plugins>
  723. <plugin>
  724. <groupId>org.apache.maven.plugins</groupId>
  725. <artifactId>maven-enforcer-plugin</artifactId>
  726. <executions>
  727. <execution>
  728. <id>enforce-os</id>
  729. <goals>
  730. <goal>enforce</goal>
  731. </goals>
  732. <configuration>
  733. <rules>
  734. <requireOS>
  735. <family>mac</family>
  736. <family>unix</family>
  737. <message>native build only supported on Mac or Unix</message>
  738. </requireOS>
  739. </rules>
  740. <fail>true</fail>
  741. </configuration>
  742. </execution>
  743. </executions>
  744. </plugin>
  745. <plugin>
  746. <groupId>org.apache.hadoop</groupId>
  747. <artifactId>hadoop-maven-plugins</artifactId>
  748. <executions>
  749. <execution>
  750. <id>cmake-compile</id>
  751. <phase>compile</phase>
  752. <goals><goal>cmake-compile</goal></goals>
  753. <configuration>
  754. <source>${basedir}/src</source>
  755. <vars>
  756. <GENERATED_JAVAH>${project.build.directory}/native/javah</GENERATED_JAVAH>
  757. <JVM_ARCH_DATA_MODEL>${sun.arch.data.model}</JVM_ARCH_DATA_MODEL>
  758. <REQUIRE_BZIP2>${require.bzip2}</REQUIRE_BZIP2>
  759. <REQUIRE_ZSTD>${require.zstd}</REQUIRE_ZSTD>
  760. <CUSTOM_ZSTD_PREFIX>${zstd.prefix}</CUSTOM_ZSTD_PREFIX>
  761. <CUSTOM_ZSTD_LIB>${zstd.lib} </CUSTOM_ZSTD_LIB>
  762. <CUSTOM_ZSTD_INCLUDE>${zstd.include} </CUSTOM_ZSTD_INCLUDE>
  763. <REQUIRE_ISAL>${require.isal} </REQUIRE_ISAL>
  764. <CUSTOM_ISAL_PREFIX>${isal.prefix} </CUSTOM_ISAL_PREFIX>
  765. <CUSTOM_ISAL_LIB>${isal.lib} </CUSTOM_ISAL_LIB>
  766. <REQUIRE_PMDK>${require.pmdk}</REQUIRE_PMDK>
  767. <CUSTOM_PMDK_LIB>${pmdk.lib}</CUSTOM_PMDK_LIB>
  768. <REQUIRE_OPENSSL>${require.openssl} </REQUIRE_OPENSSL>
  769. <CUSTOM_OPENSSL_PREFIX>${openssl.prefix} </CUSTOM_OPENSSL_PREFIX>
  770. <CUSTOM_OPENSSL_LIB>${openssl.lib} </CUSTOM_OPENSSL_LIB>
  771. <CUSTOM_OPENSSL_INCLUDE>${openssl.include} </CUSTOM_OPENSSL_INCLUDE>
  772. <EXTRA_LIBHADOOP_RPATH>${extra.libhadoop.rpath}</EXTRA_LIBHADOOP_RPATH>
  773. </vars>
  774. </configuration>
  775. </execution>
  776. <execution>
  777. <id>test_bulk_crc32</id>
  778. <goals><goal>cmake-test</goal></goals>
  779. <phase>test</phase>
  780. <configuration>
  781. <binary>${project.build.directory}/native/test_bulk_crc32</binary>
  782. <timeout>1200</timeout>
  783. <results>${project.build.directory}/native-results</results>
  784. </configuration>
  785. </execution>
  786. <execution>
  787. <id>erasure_code_test</id>
  788. <goals><goal>cmake-test</goal></goals>
  789. <phase>test</phase>
  790. <configuration>
  791. <binary>${project.build.directory}/native/erasure_code_test</binary>
  792. <timeout>300</timeout>
  793. <results>${project.build.directory}/native-results</results>
  794. <skipIfMissing>true</skipIfMissing>
  795. <env>
  796. <LD_LIBRARY_PATH>${LD_LIBRARY_PATH}:${isal.lib}:${isal.prefix}:/usr/lib</LD_LIBRARY_PATH>
  797. </env>
  798. </configuration>
  799. </execution>
  800. </executions>
  801. </plugin>
  802. </plugins>
  803. </build>
  804. </profile>
  805. <profile>
  806. <id>native-win</id>
  807. <activation>
  808. <os>
  809. <family>Windows</family>
  810. </os>
  811. </activation>
  812. <properties>
  813. <require.isal>false</require.isal>
  814. <isal.prefix></isal.prefix>
  815. <isal.lib></isal.lib>
  816. <zstd.prefix></zstd.prefix>
  817. <zstd.lib></zstd.lib>
  818. <zstd.include></zstd.include>
  819. <require.zstd>false</require.zstd>
  820. <bundle.zstd.in.bin>true</bundle.zstd.in.bin>
  821. <openssl.prefix></openssl.prefix>
  822. <openssl.lib></openssl.lib>
  823. <openssl.include></openssl.include>
  824. <require.openssl>false</require.openssl>
  825. <runningWithNative>true</runningWithNative>
  826. <bundle.openssl.in.bin>false</bundle.openssl.in.bin>
  827. </properties>
  828. <build>
  829. <plugins>
  830. <plugin>
  831. <groupId>org.apache.maven.plugins</groupId>
  832. <artifactId>maven-enforcer-plugin</artifactId>
  833. <executions>
  834. <execution>
  835. <id>enforce-os</id>
  836. <goals>
  837. <goal>enforce</goal>
  838. </goals>
  839. <configuration>
  840. <rules>
  841. <requireOS>
  842. <family>windows</family>
  843. <message>native-win build only supported on Windows</message>
  844. </requireOS>
  845. </rules>
  846. <fail>true</fail>
  847. </configuration>
  848. </execution>
  849. </executions>
  850. </plugin>
  851. <plugin>
  852. <!--Sets the skip.platformToolsetDetection to true if use.platformToolsetVersion is specified.
  853. This implies that the automatic detection of which platform toolset to use will be skipped
  854. and the one specified with use.platformToolsetVersion will be used.-->
  855. <groupId>org.apache.maven.plugins</groupId>
  856. <artifactId>maven-antrun-plugin</artifactId>
  857. <version>1.8</version>
  858. <executions>
  859. <execution>
  860. <phase>validate</phase>
  861. <goals>
  862. <goal>run</goal>
  863. </goals>
  864. <configuration>
  865. <exportAntProperties>true</exportAntProperties>
  866. <target>
  867. <condition property="skip.platformToolsetDetection" value="true" else="false">
  868. <isset property="use.platformToolsetVersion"/>
  869. </condition>
  870. <!--Unfortunately, Maven doesn't have a way to negate a flag, thus we declare a
  871. property which holds the negated value of skip.platformToolsetDetection.-->
  872. <condition property="skip.platformToolsetDetection.negated" value="false" else="true">
  873. <isset property="use.platformToolsetVersion"/>
  874. </condition>
  875. <echo>Skip platform toolset version detection = ${skip.platformToolsetDetection}</echo>
  876. </target>
  877. </configuration>
  878. </execution>
  879. </executions>
  880. </plugin>
  881. <plugin>
  882. <groupId>org.codehaus.mojo</groupId>
  883. <artifactId>exec-maven-plugin</artifactId>
  884. <executions>
  885. <execution>
  886. <id>convert-ms-winutils</id>
  887. <phase>generate-sources</phase>
  888. <goals>
  889. <goal>exec</goal>
  890. </goals>
  891. <configuration>
  892. <skip>${skip.platformToolsetDetection}</skip>
  893. <executable>${basedir}\..\..\dev-support\bin\win-vs-upgrade.cmd</executable>
  894. <arguments>
  895. <argument>${basedir}\src\main\winutils</argument>
  896. <argument>${project.build.directory}</argument>
  897. </arguments>
  898. </configuration>
  899. </execution>
  900. <execution>
  901. <id>compile-ms-winutils</id>
  902. <phase>compile</phase>
  903. <goals>
  904. <goal>exec</goal>
  905. </goals>
  906. <configuration>
  907. <skip>${skip.platformToolsetDetection}</skip>
  908. <executable>msbuild</executable>
  909. <arguments>
  910. <argument>${basedir}/src/main/winutils/winutils.sln</argument>
  911. <argument>/nologo</argument>
  912. <argument>/p:Configuration=Release</argument>
  913. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  914. <argument>/p:IntermediateOutputPath=${project.build.directory}/winutils/</argument>
  915. <argument>/p:WsceConfigDir=${wsce.config.dir}</argument>
  916. <argument>/p:WsceConfigFile=${wsce.config.file}</argument>
  917. </arguments>
  918. </configuration>
  919. </execution>
  920. <execution>
  921. <id>compile-ms-winutils-using-build-tools</id>
  922. <phase>compile</phase>
  923. <goals>
  924. <goal>exec</goal>
  925. </goals>
  926. <configuration>
  927. <skip>${skip.platformToolsetDetection.negated}</skip>
  928. <executable>msbuild</executable>
  929. <arguments>
  930. <argument>${basedir}/src/main/winutils/winutils.sln</argument>
  931. <argument>/nologo</argument>
  932. <argument>/p:Configuration=Release</argument>
  933. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  934. <argument>/p:IntermediateOutputPath=${project.build.directory}/winutils/</argument>
  935. <argument>/p:WsceConfigDir=${wsce.config.dir}</argument>
  936. <argument>/p:WsceConfigFile=${wsce.config.file}</argument>
  937. <argument>/p:PlatformToolset=${use.platformToolsetVersion}</argument>
  938. </arguments>
  939. </configuration>
  940. </execution>
  941. <execution>
  942. <id>convert-ms-native-dll</id>
  943. <phase>generate-sources</phase>
  944. <goals>
  945. <goal>exec</goal>
  946. </goals>
  947. <configuration>
  948. <skip>${skip.platformToolsetDetection}</skip>
  949. <executable>${basedir}\..\..\dev-support\bin\win-vs-upgrade.cmd</executable>
  950. <arguments>
  951. <argument>${basedir}\src\main\native</argument>
  952. <argument>${project.build.directory}</argument>
  953. </arguments>
  954. </configuration>
  955. </execution>
  956. <execution>
  957. <id>compile-ms-native-dll</id>
  958. <phase>compile</phase>
  959. <goals>
  960. <goal>exec</goal>
  961. </goals>
  962. <configuration>
  963. <skip>${skip.platformToolsetDetection}</skip>
  964. <executable>msbuild</executable>
  965. <arguments>
  966. <argument>${basedir}/src/main/native/native.sln</argument>
  967. <argument>/nologo</argument>
  968. <argument>/p:Configuration=Release</argument>
  969. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  970. <argument>/p:CustomZstdPrefix=${zstd.prefix}</argument>
  971. <argument>/p:CustomZstdLib=${zstd.lib}</argument>
  972. <argument>/p:CustomZstdInclude=${zstd.include}</argument>
  973. <argument>/p:RequireZstd=${require.zstd}</argument>
  974. <argument>/p:CustomOpensslPrefix=${openssl.prefix}</argument>
  975. <argument>/p:CustomOpensslLib=${openssl.lib}</argument>
  976. <argument>/p:CustomOpensslInclude=${openssl.include}</argument>
  977. <argument>/p:RequireOpenssl=${require.openssl}</argument>
  978. <argument>/p:RequireIsal=${require.isal}</argument>
  979. <argument>/p:CustomIsalPrefix=${isal.prefix}</argument>
  980. <argument>/p:CustomIsalLib=${isal.lib}</argument>
  981. </arguments>
  982. </configuration>
  983. </execution>
  984. <execution>
  985. <id>compile-ms-native-dll-using-build-tools</id>
  986. <phase>compile</phase>
  987. <goals>
  988. <goal>exec</goal>
  989. </goals>
  990. <configuration>
  991. <skip>${skip.platformToolsetDetection.negated}</skip>
  992. <executable>msbuild</executable>
  993. <arguments>
  994. <argument>${basedir}/src/main/native/native.sln</argument>
  995. <argument>/nologo</argument>
  996. <argument>/p:Configuration=Release</argument>
  997. <argument>/p:OutDir=${project.build.directory}/bin/</argument>
  998. <argument>/p:CustomZstdPrefix=${zstd.prefix}</argument>
  999. <argument>/p:CustomZstdLib=${zstd.lib}</argument>
  1000. <argument>/p:CustomZstdInclude=${zstd.include}</argument>
  1001. <argument>/p:RequireZstd=${require.zstd}</argument>
  1002. <argument>/p:CustomOpensslPrefix=${openssl.prefix}</argument>
  1003. <argument>/p:CustomOpensslLib=${openssl.lib}</argument>
  1004. <argument>/p:CustomOpensslInclude=${openssl.include}</argument>
  1005. <argument>/p:RequireOpenssl=${require.openssl}</argument>
  1006. <argument>/p:RequireIsal=${require.isal}</argument>
  1007. <argument>/p:CustomIsalPrefix=${isal.prefix}</argument>
  1008. <argument>/p:CustomIsalLib=${isal.lib}</argument>
  1009. <argument>/p:PlatformToolset=${use.platformToolsetVersion}</argument>
  1010. </arguments>
  1011. </configuration>
  1012. </execution>
  1013. </executions>
  1014. </plugin>
  1015. </plugins>
  1016. </build>
  1017. </profile>
  1018. <profile>
  1019. <id>parallel-tests</id>
  1020. <build>
  1021. <plugins>
  1022. <plugin>
  1023. <groupId>org.apache.hadoop</groupId>
  1024. <artifactId>hadoop-maven-plugins</artifactId>
  1025. <executions>
  1026. <execution>
  1027. <id>parallel-tests-createdir</id>
  1028. <phase>process-test-resources</phase>
  1029. <goals>
  1030. <goal>parallel-tests-createdir</goal>
  1031. </goals>
  1032. <configuration>
  1033. <testBuildData>${test.build.data}</testBuildData>
  1034. </configuration>
  1035. </execution>
  1036. </executions>
  1037. </plugin>
  1038. <plugin>
  1039. <groupId>org.apache.maven.plugins</groupId>
  1040. <artifactId>maven-surefire-plugin</artifactId>
  1041. <configuration>
  1042. <forkCount>${testsThreadCount}</forkCount>
  1043. <reuseForks>false</reuseForks>
  1044. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  1045. <systemPropertyVariables>
  1046. <testsThreadCount>${testsThreadCount}</testsThreadCount>
  1047. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  1048. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  1049. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  1050. <!-- Due to a Maven quirk, setting this to just -->
  1051. <!-- surefire.forkNumber won't do the parameter substitution. -->
  1052. <!-- Putting a prefix in front of it like "fork-" makes it -->
  1053. <!-- work. -->
  1054. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  1055. </systemPropertyVariables>
  1056. </configuration>
  1057. </plugin>
  1058. </plugins>
  1059. </build>
  1060. </profile>
  1061. <profile>
  1062. <id>releasedocs</id>
  1063. <activation>
  1064. <activeByDefault>false</activeByDefault>
  1065. </activation>
  1066. <build>
  1067. <plugins>
  1068. <plugin>
  1069. <groupId>org.codehaus.mojo</groupId>
  1070. <artifactId>exec-maven-plugin</artifactId>
  1071. <executions>
  1072. <execution>
  1073. <id>releasedocs</id>
  1074. <phase>pre-site</phase>
  1075. <goals>
  1076. <goal>exec</goal>
  1077. </goals>
  1078. <configuration>
  1079. <executable>${basedir}/../../dev-support/bin/releasedocmaker</executable>
  1080. <arguments>
  1081. <argument>--index</argument>
  1082. <argument>--license</argument>
  1083. <argument>--outputdir</argument>
  1084. <argument>${basedir}/src/site/markdown/release</argument>
  1085. <argument>--project</argument>
  1086. <argument>HADOOP</argument>
  1087. <argument>--project</argument>
  1088. <argument>HDFS</argument>
  1089. <argument>--project</argument>
  1090. <argument>MAPREDUCE</argument>
  1091. <argument>--project</argument>
  1092. <argument>YARN</argument>
  1093. <argument>--projecttitle</argument>
  1094. <argument>Apache Hadoop</argument>
  1095. <argument>--usetoday</argument>
  1096. <argument>--fileversions</argument>
  1097. <argument>--dirversions</argument>
  1098. <argument>--version</argument>
  1099. <argument>${project.version}</argument>
  1100. </arguments>
  1101. </configuration>
  1102. </execution>
  1103. </executions>
  1104. </plugin>
  1105. <plugin>
  1106. <artifactId>maven-clean-plugin</artifactId>
  1107. <configuration>
  1108. <filesets>
  1109. <fileset>
  1110. <directory>src/site/markdown/release</directory>
  1111. <includes>
  1112. <include>${project.version}/</include>
  1113. <include>index.md</include>
  1114. </includes>
  1115. <followSymlinks>false</followSymlinks>
  1116. </fileset>
  1117. </filesets>
  1118. </configuration>
  1119. </plugin>
  1120. </plugins>
  1121. </build>
  1122. </profile>
  1123. <!-- profile to test shell code -->
  1124. <profile>
  1125. <id>shelltest</id>
  1126. <activation>
  1127. <property>
  1128. <name>!skipTests</name>
  1129. </property>
  1130. </activation>
  1131. <build>
  1132. <plugins>
  1133. <plugin>
  1134. <artifactId>maven-antrun-plugin</artifactId>
  1135. <executions>
  1136. <execution>
  1137. <id>common-test-bats-driver</id>
  1138. <phase>test</phase>
  1139. <goals>
  1140. <goal>run</goal>
  1141. </goals>
  1142. <configuration>
  1143. <target>
  1144. <exec dir="src/test/scripts"
  1145. executable="bash"
  1146. failonerror="true">
  1147. <arg value="./run-bats.sh" />
  1148. </exec>
  1149. </target>
  1150. </configuration>
  1151. </execution>
  1152. </executions>
  1153. </plugin>
  1154. </plugins>
  1155. </build>
  1156. </profile>
  1157. <!-- profile to use already generated protobuf code using 2.5.0 for aarch64-->
  1158. <profile>
  1159. <id>aarch64</id>
  1160. <activation>
  1161. <activeByDefault>false</activeByDefault>
  1162. <os>
  1163. <arch>aarch64</arch>
  1164. </os>
  1165. </activation>
  1166. <build>
  1167. <plugins>
  1168. <plugin>
  1169. <groupId>org.codehaus.mojo</groupId>
  1170. <artifactId>build-helper-maven-plugin</artifactId>
  1171. <executions>
  1172. <execution>
  1173. <id>add-source-legacy-protobuf</id>
  1174. <phase>generate-sources</phase>
  1175. <goals>
  1176. <goal>add-source</goal>
  1177. </goals>
  1178. <configuration>
  1179. <sources>
  1180. <source>${basedir}/src/main/arm-java</source>
  1181. </sources>
  1182. </configuration>
  1183. </execution>
  1184. <execution>
  1185. <id>add-test-source-legacy-protobuf</id>
  1186. <phase>generate-test-sources</phase>
  1187. <goals>
  1188. <goal>add-test-source</goal>
  1189. </goals>
  1190. <configuration>
  1191. <sources>
  1192. <source>${basedir}/src/test/arm-java</source>
  1193. </sources>
  1194. </configuration>
  1195. </execution>
  1196. </executions>
  1197. </plugin>
  1198. </plugins>
  1199. </build>
  1200. </profile>
  1201. <!-- profile to generate protobuf code using 2.5.0-->
  1202. <profile>
  1203. <id>x86_64</id>
  1204. <activation>
  1205. <activeByDefault>false</activeByDefault>
  1206. <os>
  1207. <arch>!aarch64</arch>
  1208. </os>
  1209. </activation>
  1210. <build>
  1211. <plugins>
  1212. <plugin>
  1213. <groupId>org.xolstice.maven.plugins</groupId>
  1214. <artifactId>protobuf-maven-plugin</artifactId>
  1215. <executions>
  1216. <execution>
  1217. <id>src-compile-protoc-legacy</id>
  1218. <phase>generate-sources</phase>
  1219. <goals>
  1220. <goal>compile</goal>
  1221. </goals>
  1222. <configuration>
  1223. <skip>false</skip>
  1224. <!--Generating with old protobuf version for backward compatibility-->
  1225. <protocArtifact>
  1226. com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
  1227. </protocArtifact>
  1228. <includeDependenciesInDescriptorSet>false</includeDependenciesInDescriptorSet>
  1229. <protoSourceRoot>${basedir}/src/main/proto</protoSourceRoot>
  1230. <outputDirectory>${project.build.directory}/generated-sources/java</outputDirectory>
  1231. <clearOutputDirectory>false</clearOutputDirectory>
  1232. <includes>
  1233. <include>ProtobufRpcEngine.proto</include>
  1234. </includes>
  1235. </configuration>
  1236. </execution>
  1237. <execution>
  1238. <id>src-test-compile-protoc-legacy</id>
  1239. <phase>generate-test-sources</phase>
  1240. <goals>
  1241. <goal>test-compile</goal>
  1242. </goals>
  1243. <configuration>
  1244. <skip>false</skip>
  1245. <!--Generating with old protobuf version for backward compatibility-->
  1246. <protocArtifact>
  1247. com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
  1248. </protocArtifact>
  1249. <includeDependenciesInDescriptorSet>false</includeDependenciesInDescriptorSet>
  1250. <protoTestSourceRoot>${basedir}/src/test/proto</protoTestSourceRoot>
  1251. <outputDirectory>${project.build.directory}/generated-test-sources/java</outputDirectory>
  1252. <clearOutputDirectory>false</clearOutputDirectory>
  1253. <includes>
  1254. <include>test_legacy.proto</include>
  1255. <include>test_rpc_service_legacy.proto</include>
  1256. </includes>
  1257. </configuration>
  1258. </execution>
  1259. </executions>
  1260. </plugin>
  1261. <plugin>
  1262. <groupId>org.apache.maven.plugins</groupId>
  1263. <artifactId>maven-javadoc-plugin</artifactId>
  1264. <configuration>
  1265. <sourceFileExcludes>
  1266. <sourceFileExclude>**/FSProtos.java</sourceFileExclude>
  1267. </sourceFileExcludes>
  1268. <excludePackageNames>*.proto:*.tracing:*.protobuf</excludePackageNames>
  1269. </configuration>
  1270. </plugin>
  1271. </plugins>
  1272. </build>
  1273. </profile>
  1274. </profiles>
  1275. </project>