undertow-core-2.1.3.Final.pom 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  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.1.3.Final</version>
  27. </parent>
  28. <groupId>io.undertow</groupId>
  29. <artifactId>undertow-core</artifactId>
  30. <version>2.1.3.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.maven.plugins</groupId>
  152. <artifactId>maven-jar-plugin</artifactId>
  153. <executions>
  154. <execution>
  155. <id>test-jar</id>
  156. <goals>
  157. <goal>test-jar</goal>
  158. </goals>
  159. <configuration>
  160. <classifier>tests</classifier>
  161. </configuration>
  162. </execution>
  163. </executions>
  164. </plugin>
  165. <plugin>
  166. <groupId>org.bitstrings.maven.plugins</groupId>
  167. <artifactId>dependencypath-maven-plugin</artifactId>
  168. <version>1.1.1</version>
  169. <executions>
  170. <execution>
  171. <id>set-all</id>
  172. <goals>
  173. <goal>set</goal>
  174. </goals>
  175. </execution>
  176. </executions>
  177. </plugin>
  178. <plugin>
  179. <groupId>org.apache.maven.plugins</groupId>
  180. <artifactId>maven-surefire-plugin</artifactId>
  181. <configuration>
  182. <enableAssertions>true</enableAssertions>
  183. <runOrder>reversealphabetical</runOrder>
  184. <systemPropertyVariables>
  185. <test.ajp>${ajp}</test.ajp>
  186. <test.proxy>${proxy}</test.proxy>
  187. <test.dump>${dump}</test.dump>
  188. <test.https>${https}</test.https>
  189. <test.openssl>${openssl}</test.openssl>
  190. <test.bufferSize>${bufferSize}</test.bufferSize>
  191. <default.server.address>localhost</default.server.address>
  192. <default.server.port>7777</default.server.port>
  193. <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
  194. <test.level>${test.level}</test.level>
  195. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  196. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  197. <org.wildfly.openssl.path>${org.wildfly.openssl.path}</org.wildfly.openssl.path>
  198. </systemPropertyVariables>
  199. <argLine>${jacoco.agent.argLine} ${surefire.system.args} ${libraryPath}</argLine>
  200. </configuration>
  201. </plugin>
  202. </plugins>
  203. </build>
  204. <profiles>
  205. <profile>
  206. <id>mac</id>
  207. <activation>
  208. <os>
  209. <family>mac</family>
  210. </os>
  211. </activation>
  212. <properties>
  213. <org.wildfly.openssl.path>/usr/local/opt/openssl/lib</org.wildfly.openssl.path>
  214. </properties>
  215. </profile>
  216. <profile>
  217. <id>openssl</id>
  218. <activation>
  219. <property><name>test.openssl</name></property>
  220. </activation>
  221. <properties>
  222. <libraryPath>-Djava.library.path=${java.library.path}</libraryPath>
  223. </properties>
  224. </profile>
  225. <profile>
  226. <id>jetty-alpn</id>
  227. <activation>
  228. <property><name>jetty-alpn</name></property>
  229. </activation>
  230. <dependencies>
  231. <dependency>
  232. <groupId>org.mortbay.jetty.alpn</groupId>
  233. <artifactId>alpn-boot</artifactId>
  234. <version>${version.org.mortbay.jetty.alpn}</version>
  235. <scope>test</scope>
  236. </dependency>
  237. </dependencies>
  238. <build>
  239. <plugins>
  240. <plugin>
  241. <groupId>org.apache.maven.plugins</groupId>
  242. <artifactId>maven-surefire-plugin</artifactId>
  243. <configuration>
  244. <enableAssertions>true</enableAssertions>
  245. <runOrder>reversealphabetical</runOrder>
  246. <systemPropertyVariables>
  247. <io.undertow.disable-jdk8-alpn>true</io.undertow.disable-jdk8-alpn>
  248. <test.proxy>true</test.proxy>
  249. <test.dump>${dump}</test.dump>
  250. <test.bufferSize>${bufferSize}</test.bufferSize>
  251. <default.server.address>localhost</default.server.address>
  252. <default.server.port>7777</default.server.port>
  253. <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
  254. <test.level>${test.level}</test.level>
  255. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  256. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  257. <alpn-boot-string>true</alpn-boot-string>
  258. </systemPropertyVariables>
  259. <reportsDirectory>${project.build.directory}/surefire-proxy-reports</reportsDirectory>
  260. </configuration>
  261. </plugin>
  262. </plugins>
  263. </build>
  264. </profile>
  265. <profile>
  266. <id>proxy</id>
  267. <build>
  268. <plugins>
  269. <plugin>
  270. <groupId>org.apache.maven.plugins</groupId>
  271. <artifactId>maven-surefire-plugin</artifactId>
  272. <executions>
  273. <execution>
  274. <id>proxy</id>
  275. <phase>test</phase>
  276. <goals>
  277. <goal>test</goal>
  278. </goals>
  279. <configuration>
  280. <enableAssertions>true</enableAssertions>
  281. <runOrder>reversealphabetical</runOrder>
  282. <systemPropertyVariables>
  283. <test.proxy>true</test.proxy>
  284. <test.dump>${dump}</test.dump>
  285. <test.bufferSize>${bufferSize}</test.bufferSize>
  286. <default.server.address>localhost</default.server.address>
  287. <default.server.port>7777</default.server.port>
  288. <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
  289. <test.level>${test.level}</test.level>
  290. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  291. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  292. </systemPropertyVariables>
  293. <reportsDirectory>${project.build.directory}/surefire-proxy-reports</reportsDirectory>
  294. </configuration>
  295. </execution>
  296. <execution>
  297. <id>proxy-ajp</id>
  298. <phase>test</phase>
  299. <goals>
  300. <goal>test</goal>
  301. </goals>
  302. <configuration>
  303. <enableAssertions>true</enableAssertions>
  304. <runOrder>reversealphabetical</runOrder>
  305. <systemPropertyVariables>
  306. <test.ajp>true</test.ajp>
  307. <test.dump>${dump}</test.dump>
  308. <test.bufferSize>${bufferSize}</test.bufferSize>
  309. <default.server.address>localhost</default.server.address>
  310. <default.server.port>7777</default.server.port>
  311. <java.util.logging.manager>org.jboss.logmanager.LogManager
  312. </java.util.logging.manager>
  313. <test.level>${test.level}</test.level>
  314. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  315. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  316. </systemPropertyVariables>
  317. <reportsDirectory>${project.build.directory}/surefire-ajp-reports</reportsDirectory>
  318. </configuration>
  319. </execution>
  320. <execution>
  321. <id>proxy-https</id>
  322. <phase>test</phase>
  323. <goals>
  324. <goal>test</goal>
  325. </goals>
  326. <configuration>
  327. <enableAssertions>true</enableAssertions>
  328. <runOrder>reversealphabetical</runOrder>
  329. <systemPropertyVariables>
  330. <test.https>true</test.https>
  331. <test.dump>${dump}</test.dump>
  332. <test.bufferSize>${bufferSize}</test.bufferSize>
  333. <default.server.address>localhost</default.server.address>
  334. <default.server.port>7777</default.server.port>
  335. <java.util.logging.manager>org.jboss.logmanager.LogManager
  336. </java.util.logging.manager>
  337. <test.level>${test.level}</test.level>
  338. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  339. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  340. </systemPropertyVariables>
  341. <reportsDirectory>${project.build.directory}/surefire-https-reports</reportsDirectory>
  342. </configuration>
  343. </execution>
  344. <execution>
  345. <id>proxy-h2</id>
  346. <phase>test</phase>
  347. <goals>
  348. <goal>test</goal>
  349. </goals>
  350. <configuration>
  351. <enableAssertions>true</enableAssertions>
  352. <runOrder>reversealphabetical</runOrder>
  353. <systemPropertyVariables>
  354. <test.h2>true</test.h2>
  355. <test.dump>${dump}</test.dump>
  356. <test.bufferSize>${bufferSize}</test.bufferSize>
  357. <default.server.address>localhost</default.server.address>
  358. <default.server.port>7777</default.server.port>
  359. <java.util.logging.manager>org.jboss.logmanager.LogManager
  360. </java.util.logging.manager>
  361. <test.level>${test.level}</test.level>
  362. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  363. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  364. </systemPropertyVariables>
  365. <reportsDirectory>${project.build.directory}/surefire-h2-reports</reportsDirectory>
  366. </configuration>
  367. </execution>
  368. <execution>
  369. <id>proxy-h2c</id>
  370. <phase>test</phase>
  371. <goals>
  372. <goal>test</goal>
  373. </goals>
  374. <configuration>
  375. <enableAssertions>true</enableAssertions>
  376. <runOrder>reversealphabetical</runOrder>
  377. <systemPropertyVariables>
  378. <test.h2c>true</test.h2c>
  379. <test.dump>${dump}</test.dump>
  380. <test.bufferSize>${bufferSize}</test.bufferSize>
  381. <default.server.address>localhost</default.server.address>
  382. <default.server.port>7777</default.server.port>
  383. <java.util.logging.manager>org.jboss.logmanager.LogManager
  384. </java.util.logging.manager>
  385. <test.level>${test.level}</test.level>
  386. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  387. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  388. </systemPropertyVariables>
  389. <reportsDirectory>${project.build.directory}/surefire-h2c-reports</reportsDirectory>
  390. </configuration>
  391. </execution>
  392. <execution>
  393. <id>proxy-h2c-upgrade</id>
  394. <phase>test</phase>
  395. <goals>
  396. <goal>test</goal>
  397. </goals>
  398. <configuration>
  399. <enableAssertions>true</enableAssertions>
  400. <runOrder>reversealphabetical</runOrder>
  401. <systemPropertyVariables>
  402. <test.h2c-upgrade>true</test.h2c-upgrade>
  403. <test.dump>${dump}</test.dump>
  404. <test.bufferSize>${bufferSize}</test.bufferSize>
  405. <default.server.address>localhost</default.server.address>
  406. <default.server.port>7777</default.server.port>
  407. <java.util.logging.manager>org.jboss.logmanager.LogManager
  408. </java.util.logging.manager>
  409. <test.level>${test.level}</test.level>
  410. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  411. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  412. </systemPropertyVariables>
  413. <reportsDirectory>${project.build.directory}/surefire-h2c-upgrade-reports</reportsDirectory>
  414. </configuration>
  415. </execution>
  416. </executions>
  417. </plugin>
  418. </plugins>
  419. </build>
  420. </profile>
  421. <profile>
  422. <id>jdk9</id>
  423. <activation>
  424. <jdk>9</jdk>
  425. </activation>
  426. <properties>
  427. <java9.sourceDirectory>${project.basedir}/src/main/java9</java9.sourceDirectory>
  428. <java9.build.outputDirectory>${project.build.directory}/classes-java9</java9.build.outputDirectory>
  429. </properties>
  430. <build>
  431. <plugins>
  432. <plugin>
  433. <groupId>org.apache.maven.plugins</groupId>
  434. <artifactId>maven-jar-plugin</artifactId>
  435. <configuration>
  436. <archive>
  437. <manifestEntries>
  438. <Multi-Release>true</Multi-Release>
  439. </manifestEntries>
  440. </archive>
  441. </configuration>
  442. </plugin>
  443. <plugin>
  444. <groupId>org.apache.maven.plugins</groupId>
  445. <artifactId>maven-antrun-plugin</artifactId>
  446. <executions>
  447. <execution>
  448. <id>compile-java9</id>
  449. <phase>compile</phase>
  450. <configuration>
  451. <tasks>
  452. <mkdir dir="${java9.build.outputDirectory}" />
  453. <javac srcdir="${java9.sourceDirectory}"
  454. destdir="${java9.build.outputDirectory}"
  455. classpath="${project.build.outputDirectory}"
  456. includeantruntime="false"
  457. />
  458. </tasks>
  459. </configuration>
  460. <goals>
  461. <goal>run</goal>
  462. </goals>
  463. </execution>
  464. </executions>
  465. </plugin>
  466. <plugin>
  467. <groupId>org.apache.maven.plugins</groupId>
  468. <artifactId>maven-checkstyle-plugin</artifactId>
  469. <executions>
  470. <execution>
  471. <id>check-style</id>
  472. <phase>compile</phase>
  473. <goals>
  474. <goal>checkstyle</goal>
  475. </goals>
  476. </execution>
  477. <execution>
  478. <id>check-style-java9</id>
  479. <phase>compile</phase>
  480. <goals>
  481. <goal>checkstyle</goal>
  482. </goals>
  483. <configuration>
  484. <sourceDirectories>
  485. <sourceDirectory>${java9.sourceDirectory}</sourceDirectory>
  486. </sourceDirectories>
  487. </configuration>
  488. </execution>
  489. </executions>
  490. </plugin>
  491. <plugin>
  492. <groupId>org.apache.maven.plugins</groupId>
  493. <artifactId>maven-resources-plugin</artifactId>
  494. <executions>
  495. <execution>
  496. <id>copy-resources</id>
  497. <phase>prepare-package</phase>
  498. <goals>
  499. <goal>copy-resources</goal>
  500. </goals>
  501. <configuration>
  502. <outputDirectory>${project.build.outputDirectory}/META-INF/versions/9</outputDirectory>
  503. <resources>
  504. <resource>
  505. <directory>${java9.build.outputDirectory}</directory>
  506. <filtering>false</filtering>
  507. </resource>
  508. </resources>
  509. </configuration>
  510. </execution>
  511. </executions>
  512. </plugin>
  513. </plugins>
  514. </build>
  515. </profile>
  516. </profiles>
  517. </project>