undertow-core-2.2.17.Final.pom 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ JBoss, Home of Professional Open Source.
  4. ~ Copyright 2012 Red Hat, Inc., and individual contributors
  5. ~ as indicated by the @author tags.
  6. ~
  7. ~ Licensed under the Apache License, Version 2.0 (the "License");
  8. ~ you may not use this file except in compliance with the License.
  9. ~ You may obtain a copy of the License at
  10. ~
  11. ~ http://www.apache.org/licenses/LICENSE-2.0
  12. ~
  13. ~ Unless required by applicable law or agreed to in writing, software
  14. ~ distributed under the License is distributed on an "AS IS" BASIS,
  15. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. ~ See the License for the specific language governing permissions and
  17. ~ limitations under the License.
  18. -->
  19. <project xmlns="http://maven.apache.org/POM/4.0.0"
  20. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  21. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  22. <modelVersion>4.0.0</modelVersion>
  23. <parent>
  24. <groupId>io.undertow</groupId>
  25. <artifactId>undertow-parent</artifactId>
  26. <version>2.2.17.Final</version>
  27. </parent>
  28. <groupId>io.undertow</groupId>
  29. <artifactId>undertow-core</artifactId>
  30. <version>2.2.17.Final</version>
  31. <name>Undertow Core</name>
  32. <properties>
  33. <test.level>INFO</test.level>
  34. <ajp>false</ajp>
  35. <proxy>false</proxy>
  36. <dump>false</dump>
  37. <https>false</https>
  38. <openssl>false</openssl>
  39. <test.ipv6>false</test.ipv6>
  40. <bufferSize>8192</bufferSize>
  41. <libraryPath></libraryPath>
  42. <java.library.path></java.library.path>
  43. <org.wildfly.openssl.path></org.wildfly.openssl.path>
  44. </properties>
  45. <dependencies>
  46. <dependency>
  47. <groupId>io.undertow</groupId>
  48. <artifactId>undertow-parser-generator</artifactId>
  49. <scope>provided</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.jboss.logging</groupId>
  53. <artifactId>jboss-logging</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.jboss.logging</groupId>
  57. <artifactId>jboss-logging-processor</artifactId>
  58. <scope>provided</scope>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.jboss.xnio</groupId>
  62. <artifactId>xnio-api</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.jboss.xnio</groupId>
  66. <artifactId>xnio-nio</artifactId>
  67. <scope>runtime</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.jboss.threads</groupId>
  71. <artifactId>jboss-threads</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.eclipse.jetty.alpn</groupId>
  75. <artifactId>alpn-api</artifactId>
  76. <scope>provided</scope>
  77. </dependency>
  78. <!-- Test dependencies -->
  79. <dependency>
  80. <groupId>io.netty</groupId>
  81. <artifactId>netty-all</artifactId>
  82. <scope>test</scope>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.twitter</groupId>
  86. <artifactId>hpack</artifactId>
  87. <scope>test</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>junit</groupId>
  91. <artifactId>junit</artifactId>
  92. <scope>test</scope>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.apache.directory.server</groupId>
  96. <artifactId>apacheds-all</artifactId>
  97. <scope>test</scope>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.apache.httpcomponents</groupId>
  101. <artifactId>httpclient</artifactId>
  102. <scope>test</scope>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.apache.httpcomponents</groupId>
  106. <artifactId>httpmime</artifactId>
  107. <scope>test</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.easymock</groupId>
  111. <artifactId>easymock</artifactId>
  112. <scope>test</scope>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.jboss.logmanager</groupId>
  116. <artifactId>jboss-logmanager</artifactId>
  117. <scope>test</scope>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.h2database</groupId>
  121. <artifactId>h2</artifactId>
  122. <scope>test</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.wildfly.openssl</groupId>
  126. <artifactId>wildfly-openssl</artifactId>
  127. <version>${version.org.wildfly.openssl}</version>
  128. <scope>test</scope>
  129. </dependency>
  130. </dependencies>
  131. <build>
  132. <resources>
  133. <resource>
  134. <directory>src/main/resources</directory>
  135. <filtering>true</filtering>
  136. </resource>
  137. </resources>
  138. <testResources>
  139. <testResource>
  140. <directory>src/test/resources</directory>
  141. </testResource>
  142. <testResource>
  143. <directory>src/test/java</directory>
  144. <excludes>
  145. <exclude>**/*.java</exclude>
  146. </excludes>
  147. </testResource>
  148. </testResources>
  149. <plugins>
  150. <plugin>
  151. <groupId>org.apache.felix</groupId>
  152. <artifactId>maven-bundle-plugin</artifactId>
  153. <executions>
  154. <execution>
  155. <id>generate-manifest</id>
  156. <goals>
  157. <goal>manifest</goal>
  158. </goals>
  159. <configuration>
  160. <instructions>
  161. <Export-Package>
  162. io.undertow.*;version=${project.version};-noimport:=true
  163. </Export-Package>
  164. <Import-Package>
  165. org.eclipse.jetty.*;resolution:=optional;version="[1,2)",
  166. !org.xnio._private,
  167. org.xnio.*;version="[3.8,4)",
  168. !., !sun.*,
  169. *
  170. </Import-Package>
  171. </instructions>
  172. </configuration>
  173. </execution>
  174. </executions>
  175. </plugin>
  176. <plugin>
  177. <groupId>org.apache.maven.plugins</groupId>
  178. <artifactId>maven-jar-plugin</artifactId>
  179. <executions>
  180. <execution>
  181. <id>test-jar</id>
  182. <goals>
  183. <goal>test-jar</goal>
  184. </goals>
  185. <configuration>
  186. <classifier>tests</classifier>
  187. </configuration>
  188. </execution>
  189. </executions>
  190. <configuration>
  191. <archive>
  192. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  193. </archive>
  194. </configuration>
  195. </plugin>
  196. <plugin>
  197. <groupId>org.bitstrings.maven.plugins</groupId>
  198. <artifactId>dependencypath-maven-plugin</artifactId>
  199. <version>1.1.1</version>
  200. <executions>
  201. <execution>
  202. <id>set-all</id>
  203. <goals>
  204. <goal>set</goal>
  205. </goals>
  206. </execution>
  207. </executions>
  208. </plugin>
  209. <plugin>
  210. <groupId>org.apache.maven.plugins</groupId>
  211. <artifactId>maven-surefire-plugin</artifactId>
  212. <configuration>
  213. <enableAssertions>true</enableAssertions>
  214. <runOrder>reversealphabetical</runOrder>
  215. <systemPropertyVariables>
  216. <test.ajp>${ajp}</test.ajp>
  217. <test.proxy>${proxy}</test.proxy>
  218. <test.dump>${dump}</test.dump>
  219. <test.https>${https}</test.https>
  220. <test.openssl>${openssl}</test.openssl>
  221. <test.bufferSize>${bufferSize}</test.bufferSize>
  222. <default.server.address>localhost</default.server.address>
  223. <default.server.port>7777</default.server.port>
  224. <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
  225. <test.level>${test.level}</test.level>
  226. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  227. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  228. <org.wildfly.openssl.path>${org.wildfly.openssl.path}</org.wildfly.openssl.path>
  229. </systemPropertyVariables>
  230. <argLine>${jacoco.agent.argLine} ${surefire.system.args} ${libraryPath}</argLine>
  231. </configuration>
  232. </plugin>
  233. </plugins>
  234. </build>
  235. <profiles>
  236. <profile>
  237. <id>mac</id>
  238. <activation>
  239. <os>
  240. <family>mac</family>
  241. </os>
  242. </activation>
  243. <properties>
  244. <org.wildfly.openssl.path>/usr/local/opt/openssl/lib</org.wildfly.openssl.path>
  245. </properties>
  246. </profile>
  247. <profile>
  248. <id>openssl</id>
  249. <activation>
  250. <property><name>test.openssl</name></property>
  251. </activation>
  252. <properties>
  253. <libraryPath>-Djava.library.path=${java.library.path}</libraryPath>
  254. </properties>
  255. </profile>
  256. <profile>
  257. <id>jetty-alpn</id>
  258. <activation>
  259. <property><name>jetty-alpn</name></property>
  260. </activation>
  261. <dependencies>
  262. <dependency>
  263. <groupId>org.mortbay.jetty.alpn</groupId>
  264. <artifactId>alpn-boot</artifactId>
  265. <version>${version.org.mortbay.jetty.alpn}</version>
  266. <scope>test</scope>
  267. </dependency>
  268. </dependencies>
  269. <build>
  270. <plugins>
  271. <plugin>
  272. <groupId>org.apache.maven.plugins</groupId>
  273. <artifactId>maven-surefire-plugin</artifactId>
  274. <configuration>
  275. <enableAssertions>true</enableAssertions>
  276. <runOrder>reversealphabetical</runOrder>
  277. <systemPropertyVariables>
  278. <io.undertow.disable-jdk8-alpn>true</io.undertow.disable-jdk8-alpn>
  279. <test.proxy>true</test.proxy>
  280. <test.dump>${dump}</test.dump>
  281. <test.bufferSize>${bufferSize}</test.bufferSize>
  282. <default.server.address>localhost</default.server.address>
  283. <default.server.port>7777</default.server.port>
  284. <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
  285. <test.level>${test.level}</test.level>
  286. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  287. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  288. <alpn-boot-string>true</alpn-boot-string>
  289. </systemPropertyVariables>
  290. <reportsDirectory>${project.build.directory}/surefire-proxy-reports</reportsDirectory>
  291. </configuration>
  292. </plugin>
  293. </plugins>
  294. </build>
  295. </profile>
  296. <profile>
  297. <id>proxy</id>
  298. <build>
  299. <plugins>
  300. <plugin>
  301. <groupId>org.apache.maven.plugins</groupId>
  302. <artifactId>maven-surefire-plugin</artifactId>
  303. <executions>
  304. <execution>
  305. <id>proxy</id>
  306. <phase>test</phase>
  307. <goals>
  308. <goal>test</goal>
  309. </goals>
  310. <configuration>
  311. <enableAssertions>true</enableAssertions>
  312. <runOrder>reversealphabetical</runOrder>
  313. <systemPropertyVariables>
  314. <test.proxy>true</test.proxy>
  315. <test.dump>${dump}</test.dump>
  316. <test.bufferSize>${bufferSize}</test.bufferSize>
  317. <default.server.address>localhost</default.server.address>
  318. <default.server.port>7777</default.server.port>
  319. <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
  320. <test.level>${test.level}</test.level>
  321. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  322. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  323. </systemPropertyVariables>
  324. <reportsDirectory>${project.build.directory}/surefire-proxy-reports</reportsDirectory>
  325. </configuration>
  326. </execution>
  327. <execution>
  328. <id>proxy-ajp</id>
  329. <phase>test</phase>
  330. <goals>
  331. <goal>test</goal>
  332. </goals>
  333. <configuration>
  334. <enableAssertions>true</enableAssertions>
  335. <runOrder>reversealphabetical</runOrder>
  336. <systemPropertyVariables>
  337. <test.ajp>true</test.ajp>
  338. <test.dump>${dump}</test.dump>
  339. <test.bufferSize>${bufferSize}</test.bufferSize>
  340. <default.server.address>localhost</default.server.address>
  341. <default.server.port>7777</default.server.port>
  342. <java.util.logging.manager>org.jboss.logmanager.LogManager
  343. </java.util.logging.manager>
  344. <test.level>${test.level}</test.level>
  345. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  346. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  347. </systemPropertyVariables>
  348. <reportsDirectory>${project.build.directory}/surefire-ajp-reports</reportsDirectory>
  349. </configuration>
  350. </execution>
  351. <execution>
  352. <id>proxy-https</id>
  353. <phase>test</phase>
  354. <goals>
  355. <goal>test</goal>
  356. </goals>
  357. <configuration>
  358. <enableAssertions>true</enableAssertions>
  359. <runOrder>reversealphabetical</runOrder>
  360. <systemPropertyVariables>
  361. <test.https>true</test.https>
  362. <test.dump>${dump}</test.dump>
  363. <test.bufferSize>${bufferSize}</test.bufferSize>
  364. <default.server.address>localhost</default.server.address>
  365. <default.server.port>7777</default.server.port>
  366. <java.util.logging.manager>org.jboss.logmanager.LogManager
  367. </java.util.logging.manager>
  368. <test.level>${test.level}</test.level>
  369. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  370. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  371. </systemPropertyVariables>
  372. <reportsDirectory>${project.build.directory}/surefire-https-reports</reportsDirectory>
  373. </configuration>
  374. </execution>
  375. <execution>
  376. <id>proxy-h2</id>
  377. <phase>test</phase>
  378. <goals>
  379. <goal>test</goal>
  380. </goals>
  381. <configuration>
  382. <enableAssertions>true</enableAssertions>
  383. <runOrder>reversealphabetical</runOrder>
  384. <systemPropertyVariables>
  385. <test.h2>true</test.h2>
  386. <test.dump>${dump}</test.dump>
  387. <test.bufferSize>${bufferSize}</test.bufferSize>
  388. <default.server.address>localhost</default.server.address>
  389. <default.server.port>7777</default.server.port>
  390. <java.util.logging.manager>org.jboss.logmanager.LogManager
  391. </java.util.logging.manager>
  392. <test.level>${test.level}</test.level>
  393. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  394. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  395. </systemPropertyVariables>
  396. <reportsDirectory>${project.build.directory}/surefire-h2-reports</reportsDirectory>
  397. </configuration>
  398. </execution>
  399. <execution>
  400. <id>proxy-h2c</id>
  401. <phase>test</phase>
  402. <goals>
  403. <goal>test</goal>
  404. </goals>
  405. <configuration>
  406. <enableAssertions>true</enableAssertions>
  407. <runOrder>reversealphabetical</runOrder>
  408. <systemPropertyVariables>
  409. <test.h2c>true</test.h2c>
  410. <test.dump>${dump}</test.dump>
  411. <test.bufferSize>${bufferSize}</test.bufferSize>
  412. <default.server.address>localhost</default.server.address>
  413. <default.server.port>7777</default.server.port>
  414. <java.util.logging.manager>org.jboss.logmanager.LogManager
  415. </java.util.logging.manager>
  416. <test.level>${test.level}</test.level>
  417. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  418. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  419. </systemPropertyVariables>
  420. <reportsDirectory>${project.build.directory}/surefire-h2c-reports</reportsDirectory>
  421. </configuration>
  422. </execution>
  423. <execution>
  424. <id>proxy-h2c-upgrade</id>
  425. <phase>test</phase>
  426. <goals>
  427. <goal>test</goal>
  428. </goals>
  429. <configuration>
  430. <enableAssertions>true</enableAssertions>
  431. <runOrder>reversealphabetical</runOrder>
  432. <systemPropertyVariables>
  433. <test.h2c-upgrade>true</test.h2c-upgrade>
  434. <test.dump>${dump}</test.dump>
  435. <test.bufferSize>${bufferSize}</test.bufferSize>
  436. <default.server.address>localhost</default.server.address>
  437. <default.server.port>7777</default.server.port>
  438. <java.util.logging.manager>org.jboss.logmanager.LogManager
  439. </java.util.logging.manager>
  440. <test.level>${test.level}</test.level>
  441. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  442. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  443. </systemPropertyVariables>
  444. <reportsDirectory>${project.build.directory}/surefire-h2c-upgrade-reports</reportsDirectory>
  445. </configuration>
  446. </execution>
  447. </executions>
  448. </plugin>
  449. </plugins>
  450. </build>
  451. </profile>
  452. <profile>
  453. <id>jdk9</id>
  454. <activation>
  455. <jdk>9</jdk>
  456. </activation>
  457. <properties>
  458. <java9.sourceDirectory>${project.basedir}/src/main/java9</java9.sourceDirectory>
  459. <java9.build.outputDirectory>${project.build.directory}/classes-java9</java9.build.outputDirectory>
  460. </properties>
  461. <build>
  462. <plugins>
  463. <plugin>
  464. <groupId>org.apache.maven.plugins</groupId>
  465. <artifactId>maven-jar-plugin</artifactId>
  466. <configuration>
  467. <archive>
  468. <manifestEntries>
  469. <Multi-Release>true</Multi-Release>
  470. </manifestEntries>
  471. </archive>
  472. </configuration>
  473. </plugin>
  474. <plugin>
  475. <groupId>org.apache.maven.plugins</groupId>
  476. <artifactId>maven-antrun-plugin</artifactId>
  477. <executions>
  478. <execution>
  479. <id>compile-java9</id>
  480. <phase>compile</phase>
  481. <configuration>
  482. <tasks>
  483. <mkdir dir="${java9.build.outputDirectory}" />
  484. <javac srcdir="${java9.sourceDirectory}"
  485. destdir="${java9.build.outputDirectory}"
  486. classpath="${project.build.outputDirectory}"
  487. includeantruntime="false"
  488. />
  489. </tasks>
  490. </configuration>
  491. <goals>
  492. <goal>run</goal>
  493. </goals>
  494. </execution>
  495. </executions>
  496. </plugin>
  497. <plugin>
  498. <groupId>org.apache.maven.plugins</groupId>
  499. <artifactId>maven-checkstyle-plugin</artifactId>
  500. <executions>
  501. <execution>
  502. <id>check-style</id>
  503. <phase>compile</phase>
  504. <goals>
  505. <goal>checkstyle</goal>
  506. </goals>
  507. </execution>
  508. <execution>
  509. <id>check-style-java9</id>
  510. <phase>compile</phase>
  511. <goals>
  512. <goal>checkstyle</goal>
  513. </goals>
  514. <configuration>
  515. <sourceDirectories>
  516. <sourceDirectory>${java9.sourceDirectory}</sourceDirectory>
  517. </sourceDirectories>
  518. </configuration>
  519. </execution>
  520. </executions>
  521. </plugin>
  522. <plugin>
  523. <groupId>org.apache.maven.plugins</groupId>
  524. <artifactId>maven-resources-plugin</artifactId>
  525. <executions>
  526. <execution>
  527. <id>copy-resources</id>
  528. <phase>prepare-package</phase>
  529. <goals>
  530. <goal>copy-resources</goal>
  531. </goals>
  532. <configuration>
  533. <outputDirectory>${project.build.outputDirectory}/META-INF/versions/9</outputDirectory>
  534. <resources>
  535. <resource>
  536. <directory>${java9.build.outputDirectory}</directory>
  537. <filtering>false</filtering>
  538. </resource>
  539. </resources>
  540. </configuration>
  541. </execution>
  542. </executions>
  543. </plugin>
  544. </plugins>
  545. </build>
  546. </profile>
  547. </profiles>
  548. </project>