pom.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2012 The Netty Project
  4. ~
  5. ~ The Netty Project licenses this file to you under the Apache License,
  6. ~ version 2.0 (the "License"); you may not use this file except in compliance
  7. ~ with the License. You may obtain a copy of the License at:
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. ~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. ~ License for the specific language governing permissions and limitations
  15. ~ under the License.
  16. -->
  17. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  18. <modelVersion>4.0.0</modelVersion>
  19. <parent>
  20. <groupId>io.netty</groupId>
  21. <artifactId>netty-parent</artifactId>
  22. <version>5.0.0.Alpha2</version>
  23. </parent>
  24. <artifactId>netty-all</artifactId>
  25. <packaging>jar</packaging>
  26. <name>Netty/All-in-One</name>
  27. <properties>
  28. <quickbuild>true</quickbuild>
  29. <generatedSourceDir>${project.build.directory}/src</generatedSourceDir>
  30. <dependencyVersionsDir>${project.build.directory}/versions</dependencyVersionsDir>
  31. </properties>
  32. <profiles>
  33. <profile>
  34. <id>full</id>
  35. <properties>
  36. <quickbuild>false</quickbuild>
  37. </properties>
  38. </profile>
  39. <profile>
  40. <id>coverage</id>
  41. <build>
  42. <plugins>
  43. <plugin>
  44. <groupId>org.jacoco</groupId>
  45. <artifactId>jacoco-maven-plugin</artifactId>
  46. <executions>
  47. <execution>
  48. <id>jacoco-merge</id>
  49. <phase>prepare-package</phase>
  50. <goals>
  51. <goal>merge</goal>
  52. </goals>
  53. <configuration>
  54. <fileSets>
  55. <fileSet>
  56. <directory>${project.parent.build.directory}/..</directory>
  57. <includes>
  58. <include>**/target/jacoco.exec</include>
  59. </includes>
  60. </fileSet>
  61. </fileSets>
  62. </configuration>
  63. </execution>
  64. <execution>
  65. <id>jacoco-report</id>
  66. <phase>prepare-package</phase>
  67. <goals>
  68. <goal>report</goal>
  69. </goals>
  70. <configuration>
  71. <outputDirectory>${project.build.directory}/jacoco-report</outputDirectory>
  72. </configuration>
  73. </execution>
  74. </executions>
  75. </plugin>
  76. </plugins>
  77. </build>
  78. </profile>
  79. <profile>
  80. <id>linux</id>
  81. <activation>
  82. <os>
  83. <family>linux</family>
  84. </os>
  85. </activation>
  86. <dependencies>
  87. <!-- All release modules -->
  88. <dependency>
  89. <groupId>${project.groupId}</groupId>
  90. <artifactId>netty-transport-native-epoll</artifactId>
  91. <version>${project.version}</version>
  92. <classifier>${os.detected.classifier}</classifier>
  93. <scope>compile</scope>
  94. <optional>true</optional>
  95. </dependency>
  96. </dependencies>
  97. </profile>
  98. </profiles>
  99. <dependencies>
  100. <!-- All release modules -->
  101. <dependency>
  102. <groupId>${project.groupId}</groupId>
  103. <artifactId>netty-buffer</artifactId>
  104. <version>${project.version}</version>
  105. <scope>compile</scope>
  106. <optional>true</optional>
  107. </dependency>
  108. <dependency>
  109. <groupId>${project.groupId}</groupId>
  110. <artifactId>netty-codec</artifactId>
  111. <version>${project.version}</version>
  112. <scope>compile</scope>
  113. <optional>true</optional>
  114. </dependency>
  115. <dependency>
  116. <groupId>${project.groupId}</groupId>
  117. <artifactId>netty-codec-dns</artifactId>
  118. <version>${project.version}</version>
  119. <scope>compile</scope>
  120. <optional>true</optional>
  121. </dependency>
  122. <dependency>
  123. <groupId>${project.groupId}</groupId>
  124. <artifactId>netty-codec-haproxy</artifactId>
  125. <version>${project.version}</version>
  126. <scope>compile</scope>
  127. <optional>true</optional>
  128. </dependency>
  129. <dependency>
  130. <groupId>${project.groupId}</groupId>
  131. <artifactId>netty-codec-http</artifactId>
  132. <version>${project.version}</version>
  133. <scope>compile</scope>
  134. <optional>true</optional>
  135. </dependency>
  136. <dependency>
  137. <groupId>${project.groupId}</groupId>
  138. <artifactId>netty-codec-http2</artifactId>
  139. <version>${project.version}</version>
  140. <scope>compile</scope>
  141. <optional>true</optional>
  142. </dependency>
  143. <dependency>
  144. <groupId>${project.groupId}</groupId>
  145. <artifactId>netty-codec-memcache</artifactId>
  146. <version>${project.version}</version>
  147. <scope>compile</scope>
  148. <optional>true</optional>
  149. </dependency>
  150. <dependency>
  151. <groupId>${project.groupId}</groupId>
  152. <artifactId>netty-codec-mqtt</artifactId>
  153. <version>${project.version}</version>
  154. <scope>compile</scope>
  155. <optional>true</optional>
  156. </dependency>
  157. <dependency>
  158. <groupId>${project.groupId}</groupId>
  159. <artifactId>netty-codec-socks</artifactId>
  160. <version>${project.version}</version>
  161. <scope>compile</scope>
  162. <optional>true</optional>
  163. </dependency>
  164. <dependency>
  165. <groupId>${project.groupId}</groupId>
  166. <artifactId>netty-codec-stomp</artifactId>
  167. <version>${project.version}</version>
  168. <scope>compile</scope>
  169. <optional>true</optional>
  170. </dependency>
  171. <dependency>
  172. <groupId>${project.groupId}</groupId>
  173. <artifactId>netty-common</artifactId>
  174. <version>${project.version}</version>
  175. <scope>compile</scope>
  176. <optional>true</optional>
  177. </dependency>
  178. <dependency>
  179. <groupId>${project.groupId}</groupId>
  180. <artifactId>netty-handler</artifactId>
  181. <version>${project.version}</version>
  182. <scope>compile</scope>
  183. <optional>true</optional>
  184. </dependency>
  185. <dependency>
  186. <groupId>${project.groupId}</groupId>
  187. <artifactId>netty-handler-proxy</artifactId>
  188. <version>${project.version}</version>
  189. <scope>compile</scope>
  190. <optional>true</optional>
  191. </dependency>
  192. <dependency>
  193. <groupId>${project.groupId}</groupId>
  194. <artifactId>netty-resolver</artifactId>
  195. <version>${project.version}</version>
  196. <scope>compile</scope>
  197. <optional>true</optional>
  198. </dependency>
  199. <dependency>
  200. <groupId>${project.groupId}</groupId>
  201. <artifactId>netty-resolver-dns</artifactId>
  202. <version>${project.version}</version>
  203. <scope>compile</scope>
  204. <optional>true</optional>
  205. </dependency>
  206. <dependency>
  207. <groupId>${project.groupId}</groupId>
  208. <artifactId>netty-transport</artifactId>
  209. <version>${project.version}</version>
  210. <scope>compile</scope>
  211. <optional>true</optional>
  212. </dependency>
  213. <dependency>
  214. <groupId>${project.groupId}</groupId>
  215. <artifactId>netty-transport-rxtx</artifactId>
  216. <version>${project.version}</version>
  217. <scope>compile</scope>
  218. <optional>true</optional>
  219. </dependency>
  220. <dependency>
  221. <groupId>${project.groupId}</groupId>
  222. <artifactId>netty-transport-sctp</artifactId>
  223. <version>${project.version}</version>
  224. <scope>compile</scope>
  225. <optional>true</optional>
  226. </dependency>
  227. <dependency>
  228. <groupId>${project.groupId}</groupId>
  229. <artifactId>netty-transport-udt</artifactId>
  230. <version>${project.version}</version>
  231. <scope>compile</scope>
  232. <optional>true</optional>
  233. </dependency>
  234. <dependency>
  235. <groupId>${project.groupId}</groupId>
  236. <artifactId>netty-example</artifactId>
  237. <version>${project.version}</version>
  238. <scope>compile</scope>
  239. <optional>true</optional>
  240. </dependency>
  241. <!-- Add optional dependencies explicitly to avoid Javadoc warnings and errors. -->
  242. <dependency>
  243. <groupId>com.google.protobuf</groupId>
  244. <artifactId>protobuf-java</artifactId>
  245. <scope>compile</scope>
  246. <optional>true</optional>
  247. </dependency>
  248. <dependency>
  249. <groupId>org.jboss.marshalling</groupId>
  250. <artifactId>jboss-marshalling</artifactId>
  251. <scope>compile</scope>
  252. <optional>true</optional>
  253. </dependency>
  254. <dependency>
  255. <groupId>org.slf4j</groupId>
  256. <artifactId>slf4j-api</artifactId>
  257. <optional>true</optional>
  258. </dependency>
  259. <dependency>
  260. <groupId>commons-logging</groupId>
  261. <artifactId>commons-logging</artifactId>
  262. <optional>true</optional>
  263. </dependency>
  264. <dependency>
  265. <groupId>log4j</groupId>
  266. <artifactId>log4j</artifactId>
  267. <optional>true</optional>
  268. </dependency>
  269. </dependencies>
  270. <build>
  271. <plugins>
  272. <plugin>
  273. <artifactId>maven-clean-plugin</artifactId>
  274. <executions>
  275. <execution>
  276. <id>clean-first</id>
  277. <phase>generate-resources</phase>
  278. <goals>
  279. <goal>clean</goal>
  280. </goals>
  281. </execution>
  282. </executions>
  283. </plugin>
  284. <plugin>
  285. <artifactId>maven-dependency-plugin</artifactId>
  286. <executions>
  287. <!-- Populate the properties whose key is groupId:artifactId:type
  288. and whose value is the path to the artifact -->
  289. <execution>
  290. <id>locate-dependencies</id>
  291. <phase>initialize</phase>
  292. <goals>
  293. <goal>properties</goal>
  294. </goals>
  295. </execution>
  296. <!-- Unpack all source files -->
  297. <execution>
  298. <id>unpack-sources</id>
  299. <phase>prepare-package</phase>
  300. <goals>
  301. <goal>unpack-dependencies</goal>
  302. </goals>
  303. <configuration>
  304. <classifier>sources</classifier>
  305. <includes>io/netty/**</includes>
  306. <includeGroupIds>${project.groupId}</includeGroupIds>
  307. <outputDirectory>${generatedSourceDir}</outputDirectory>
  308. </configuration>
  309. </execution>
  310. <!-- Unpack all class files -->
  311. <execution>
  312. <id>unpack-jars</id>
  313. <phase>prepare-package</phase>
  314. <goals>
  315. <goal>unpack-dependencies</goal>
  316. </goals>
  317. <configuration>
  318. <excludes>io/netty/example/**,META-INF/native/libnetty-tcnative*</excludes>
  319. <includes>io/netty/**,META-INF/native/**</includes>
  320. <includeGroupIds>${project.groupId}</includeGroupIds>
  321. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  322. </configuration>
  323. </execution>
  324. </executions>
  325. </plugin>
  326. <plugin>
  327. <artifactId>maven-antrun-plugin</artifactId>
  328. <executions>
  329. <!-- Instead of generating a new version property file, merge others' version property files into one. -->
  330. <execution>
  331. <id>write-version-properties</id>
  332. <phase>none</phase>
  333. </execution>
  334. <execution>
  335. <id>merge-version-properties</id>
  336. <phase>prepare-package</phase>
  337. <goals>
  338. <goal>run</goal>
  339. </goals>
  340. <configuration>
  341. <target>
  342. <taskdef resource="net/sf/antcontrib/antlib.xml" />
  343. <propertyselector property="versions" match="^(${project.groupId}:(?!netty-example)[^:]+:jar(?::[^:]+)?)$" select="\1" />
  344. <for list="${versions}" param="x">
  345. <sequential>
  346. <unzip src="${@{x}}" dest="${dependencyVersionsDir}">
  347. <patternset>
  348. <include name="META-INF/${project.groupId}.versions.properties" />
  349. </patternset>
  350. </unzip>
  351. <concat destfile="${project.build.outputDirectory}/META-INF/${project.groupId}.versions.properties" append="true">
  352. <path path="${dependencyVersionsDir}/META-INF/${project.groupId}.versions.properties" />
  353. </concat>
  354. </sequential>
  355. </for>
  356. <delete dir="${dependencyVersionsDir}" quiet="true" />
  357. </target>
  358. </configuration>
  359. </execution>
  360. <!-- Clean everything once finished so that IDE doesn't find the unpacked files. -->
  361. <execution>
  362. <id>clean-source-directory</id>
  363. <phase>package</phase>
  364. <goals>
  365. <goal>run</goal>
  366. </goals>
  367. <configuration>
  368. <target>
  369. <delete dir="${generatedSourceDir}" quiet="true" />
  370. <delete dir="${dependencyVersionsDir}" quiet="true" />
  371. <delete dir="${project.build.outputDirectory}" quiet="true" />
  372. </target>
  373. </configuration>
  374. </execution>
  375. </executions>
  376. </plugin>
  377. <!-- Include the directory where the source files were unpacked -->
  378. <plugin>
  379. <groupId>org.codehaus.mojo</groupId>
  380. <artifactId>build-helper-maven-plugin</artifactId>
  381. <executions>
  382. <execution>
  383. <id>add-source</id>
  384. <phase>prepare-package</phase>
  385. <goals>
  386. <goal>add-source</goal>
  387. </goals>
  388. <configuration>
  389. <sources>
  390. <source>${generatedSourceDir}</source>
  391. </sources>
  392. </configuration>
  393. </execution>
  394. </executions>
  395. </plugin>
  396. <!-- Disable OSGi bundle manifest generation -->
  397. <plugin>
  398. <groupId>org.apache.felix</groupId>
  399. <artifactId>maven-bundle-plugin</artifactId>
  400. <executions>
  401. <execution>
  402. <id>generate-manifest</id>
  403. <phase>none</phase>
  404. </execution>
  405. </executions>
  406. </plugin>
  407. <!-- Override the default JAR configuration -->
  408. <plugin>
  409. <artifactId>maven-jar-plugin</artifactId>
  410. <executions>
  411. <execution>
  412. <id>default-jar</id>
  413. <phase>none</phase>
  414. </execution>
  415. <execution>
  416. <id>all-in-one-jar</id>
  417. <phase>package</phase>
  418. <goals>
  419. <goal>jar</goal>
  420. </goals>
  421. <configuration>
  422. <archive>
  423. <manifest>
  424. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  425. </manifest>
  426. <index>true</index>
  427. </archive>
  428. </configuration>
  429. </execution>
  430. </executions>
  431. </plugin>
  432. <!-- Disable animal sniffer -->
  433. <plugin>
  434. <groupId>org.codehaus.mojo</groupId>
  435. <artifactId>animal-sniffer-maven-plugin</artifactId>
  436. <executions>
  437. <execution>
  438. <id>default</id>
  439. <phase>none</phase>
  440. </execution>
  441. </executions>
  442. </plugin>
  443. <!-- Disable checkstyle -->
  444. <plugin>
  445. <artifactId>maven-checkstyle-plugin</artifactId>
  446. <executions>
  447. <execution>
  448. <id>check-style</id>
  449. <phase>none</phase>
  450. </execution>
  451. </executions>
  452. </plugin>
  453. <!-- Disable all plugin executions configured by jar packaging -->
  454. <plugin>
  455. <artifactId>maven-resources-plugin</artifactId>
  456. <executions>
  457. <execution>
  458. <id>default-resources</id>
  459. <phase>none</phase>
  460. </execution>
  461. <execution>
  462. <id>default-testResources</id>
  463. <phase>none</phase>
  464. </execution>
  465. </executions>
  466. </plugin>
  467. <plugin>
  468. <artifactId>maven-compiler-plugin</artifactId>
  469. <executions>
  470. <execution>
  471. <id>default-compile</id>
  472. <phase>none</phase>
  473. </execution>
  474. <execution>
  475. <id>default-testCompile</id>
  476. <phase>none</phase>
  477. </execution>
  478. </executions>
  479. </plugin>
  480. <plugin>
  481. <artifactId>maven-surefire-plugin</artifactId>
  482. <executions>
  483. <execution>
  484. <id>default-test</id>
  485. <phase>none</phase>
  486. </execution>
  487. </executions>
  488. </plugin>
  489. <!-- Generate Xref -->
  490. <plugin>
  491. <artifactId>maven-jxr-plugin</artifactId>
  492. <executions>
  493. <execution>
  494. <id>generate-xref</id>
  495. <phase>package</phase>
  496. <goals>
  497. <goal>jxr</goal>
  498. </goals>
  499. </execution>
  500. </executions>
  501. <configuration>
  502. <skip>${quickbuild}</skip>
  503. <linkJavadoc>true</linkJavadoc>
  504. <destDir>${project.build.directory}/xref</destDir>
  505. <javadocDir>${project.build.directory}/api</javadocDir>
  506. <docTitle>Netty Source Xref (${project.version})</docTitle>
  507. <windowTitle>Netty Source Xref (${project.version})</windowTitle>
  508. </configuration>
  509. <dependencies>
  510. <dependency>
  511. <groupId>${project.groupId}</groupId>
  512. <artifactId>netty-build</artifactId>
  513. <version>19</version>
  514. </dependency>
  515. </dependencies>
  516. </plugin>
  517. <!-- Generate Javadoc -->
  518. <plugin>
  519. <artifactId>maven-javadoc-plugin</artifactId>
  520. <executions>
  521. <execution>
  522. <id>attach-javadocs</id>
  523. <goals>
  524. <goal>jar</goal>
  525. </goals>
  526. </execution>
  527. </executions>
  528. <configuration>
  529. <skip>${quickbuild}</skip>
  530. <excludePackageNames>*.internal,*.example</excludePackageNames>
  531. <docfilessubdirs>true</docfilessubdirs>
  532. <outputDirectory>${project.build.directory}/api</outputDirectory>
  533. <overview>${project.basedir}/src/javadoc/overview.html</overview>
  534. <doctitle>Netty API Reference (${project.version})</doctitle>
  535. <windowtitle>Netty API Reference (${project.version})</windowtitle>
  536. <detectJavaApiLink>false</detectJavaApiLink>
  537. <additionalparam>
  538. -link http://docs.oracle.com/javase/7/docs/api/
  539. -link http://code.google.com/apis/protocolbuffers/docs/reference/java/
  540. -link http://docs.oracle.com/javaee/6/api/
  541. -link http://www.slf4j.org/apidocs/
  542. -link http://commons.apache.org/proper/commons-logging/javadocs/api-1.1.2/
  543. -link http://logging.apache.org/log4j/1.2/apidocs/
  544. -group "Low-level data representation" io.netty.buffer*
  545. -group "Central interface for all I/O operations" io.netty.channel*
  546. -group "Client &amp; Server bootstrapping utilities" io.netty.bootstrap*
  547. -group "Reusable I/O event interceptors" io.netty.handler*
  548. -group "Miscellaneous" io.netty.util*
  549. </additionalparam>
  550. <locale>en_US</locale>
  551. </configuration>
  552. </plugin>
  553. </plugins>
  554. </build>
  555. </project>