pom.xml 46 KB

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