undertow-core-2.0.28.Final.pom 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  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.0.28.Final</version>
  27. </parent>
  28. <groupId>io.undertow</groupId>
  29. <artifactId>undertow-core</artifactId>
  30. <version>2.0.28.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.eclipse.jetty.alpn</groupId>
  71. <artifactId>alpn-api</artifactId>
  72. <scope>provided</scope>
  73. </dependency>
  74. <!-- Test dependencies -->
  75. <dependency>
  76. <groupId>io.netty</groupId>
  77. <artifactId>netty-all</artifactId>
  78. <scope>test</scope>
  79. </dependency>
  80. <dependency>
  81. <groupId>com.twitter</groupId>
  82. <artifactId>hpack</artifactId>
  83. <scope>test</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>junit</groupId>
  87. <artifactId>junit</artifactId>
  88. <scope>test</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.apache.directory.server</groupId>
  92. <artifactId>apacheds-all</artifactId>
  93. <scope>test</scope>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.apache.httpcomponents</groupId>
  97. <artifactId>httpclient</artifactId>
  98. <scope>test</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.apache.httpcomponents</groupId>
  102. <artifactId>httpmime</artifactId>
  103. <scope>test</scope>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.easymock</groupId>
  107. <artifactId>easymock</artifactId>
  108. <scope>test</scope>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.jboss.logmanager</groupId>
  112. <artifactId>jboss-logmanager</artifactId>
  113. <scope>test</scope>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.h2database</groupId>
  117. <artifactId>h2</artifactId>
  118. <scope>test</scope>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.wildfly.openssl</groupId>
  122. <artifactId>wildfly-openssl</artifactId>
  123. <version>${version.org.wildfly.openssl}</version>
  124. <scope>test</scope>
  125. </dependency>
  126. </dependencies>
  127. <build>
  128. <resources>
  129. <resource>
  130. <directory>src/main/resources</directory>
  131. <filtering>true</filtering>
  132. </resource>
  133. </resources>
  134. <testResources>
  135. <testResource>
  136. <directory>src/test/resources</directory>
  137. </testResource>
  138. <testResource>
  139. <directory>src/test/java</directory>
  140. <excludes>
  141. <exclude>**/*.java</exclude>
  142. </excludes>
  143. </testResource>
  144. </testResources>
  145. <plugins>
  146. <plugin>
  147. <groupId>org.apache.felix</groupId>
  148. <artifactId>maven-bundle-plugin</artifactId>
  149. <executions>
  150. <execution>
  151. <id>generate-manifest</id>
  152. <goals>
  153. <goal>manifest</goal>
  154. </goals>
  155. <configuration>
  156. <instructions>
  157. <Export-Package>
  158. io.undertow.*;version=${project.version};-noimport:=true
  159. </Export-Package>
  160. <Import-Package>
  161. org.eclipse.jetty.*;resolution:=optional;version="[1,2)",
  162. !., !sun.*, !org.xnio._private, *
  163. </Import-Package>
  164. </instructions>
  165. </configuration>
  166. </execution>
  167. </executions>
  168. </plugin>
  169. <plugin>
  170. <groupId>org.apache.maven.plugins</groupId>
  171. <artifactId>maven-jar-plugin</artifactId>
  172. <executions>
  173. <execution>
  174. <id>test-jar</id>
  175. <goals>
  176. <goal>test-jar</goal>
  177. </goals>
  178. <configuration>
  179. <classifier>tests</classifier>
  180. </configuration>
  181. </execution>
  182. </executions>
  183. <configuration>
  184. <archive>
  185. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  186. </archive>
  187. </configuration>
  188. </plugin>
  189. <plugin>
  190. <groupId>org.bitstrings.maven.plugins</groupId>
  191. <artifactId>dependencypath-maven-plugin</artifactId>
  192. <version>1.1.1</version>
  193. <executions>
  194. <execution>
  195. <id>set-all</id>
  196. <goals>
  197. <goal>set</goal>
  198. </goals>
  199. </execution>
  200. </executions>
  201. </plugin>
  202. <plugin>
  203. <groupId>org.apache.maven.plugins</groupId>
  204. <artifactId>maven-surefire-plugin</artifactId>
  205. <configuration>
  206. <enableAssertions>true</enableAssertions>
  207. <runOrder>reversealphabetical</runOrder>
  208. <systemPropertyVariables>
  209. <test.ajp>${ajp}</test.ajp>
  210. <test.proxy>${proxy}</test.proxy>
  211. <test.dump>${dump}</test.dump>
  212. <test.https>${https}</test.https>
  213. <test.openssl>${openssl}</test.openssl>
  214. <test.bufferSize>${bufferSize}</test.bufferSize>
  215. <default.server.address>localhost</default.server.address>
  216. <default.server.port>7777</default.server.port>
  217. <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
  218. <test.level>${test.level}</test.level>
  219. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  220. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  221. <org.wildfly.openssl.path>${org.wildfly.openssl.path}</org.wildfly.openssl.path>
  222. </systemPropertyVariables>
  223. <argLine>${jacoco.agent.argLine} ${surefire.system.args} ${libraryPath}</argLine>
  224. </configuration>
  225. </plugin>
  226. </plugins>
  227. </build>
  228. <profiles>
  229. <profile>
  230. <id>mac</id>
  231. <activation>
  232. <os>
  233. <family>mac</family>
  234. </os>
  235. </activation>
  236. <properties>
  237. <org.wildfly.openssl.path>/usr/local/opt/openssl/lib</org.wildfly.openssl.path>
  238. </properties>
  239. </profile>
  240. <profile>
  241. <id>openssl</id>
  242. <activation>
  243. <property><name>test.openssl</name></property>
  244. </activation>
  245. <properties>
  246. <libraryPath>-Djava.library.path=${java.library.path}</libraryPath>
  247. </properties>
  248. </profile>
  249. <profile>
  250. <id>jetty-alpn</id>
  251. <activation>
  252. <property><name>jetty-alpn</name></property>
  253. </activation>
  254. <dependencies>
  255. <dependency>
  256. <groupId>org.mortbay.jetty.alpn</groupId>
  257. <artifactId>alpn-boot</artifactId>
  258. <version>${version.org.mortbay.jetty.alpn}</version>
  259. <scope>test</scope>
  260. </dependency>
  261. </dependencies>
  262. <build>
  263. <plugins>
  264. <plugin>
  265. <groupId>org.apache.maven.plugins</groupId>
  266. <artifactId>maven-surefire-plugin</artifactId>
  267. <configuration>
  268. <enableAssertions>true</enableAssertions>
  269. <runOrder>reversealphabetical</runOrder>
  270. <systemPropertyVariables>
  271. <io.undertow.disable-jdk8-alpn>true</io.undertow.disable-jdk8-alpn>
  272. <test.proxy>true</test.proxy>
  273. <test.dump>${dump}</test.dump>
  274. <test.bufferSize>${bufferSize}</test.bufferSize>
  275. <default.server.address>localhost</default.server.address>
  276. <default.server.port>7777</default.server.port>
  277. <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
  278. <test.level>${test.level}</test.level>
  279. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  280. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  281. <alpn-boot-string>true</alpn-boot-string>
  282. </systemPropertyVariables>
  283. <reportsDirectory>${project.build.directory}/surefire-proxy-reports</reportsDirectory>
  284. </configuration>
  285. </plugin>
  286. </plugins>
  287. </build>
  288. </profile>
  289. <profile>
  290. <id>proxy</id>
  291. <build>
  292. <plugins>
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-surefire-plugin</artifactId>
  296. <executions>
  297. <execution>
  298. <id>proxy</id>
  299. <phase>test</phase>
  300. <goals>
  301. <goal>test</goal>
  302. </goals>
  303. <configuration>
  304. <enableAssertions>true</enableAssertions>
  305. <runOrder>reversealphabetical</runOrder>
  306. <systemPropertyVariables>
  307. <test.proxy>true</test.proxy>
  308. <test.dump>${dump}</test.dump>
  309. <test.bufferSize>${bufferSize}</test.bufferSize>
  310. <default.server.address>localhost</default.server.address>
  311. <default.server.port>7777</default.server.port>
  312. <java.util.logging.manager>org.jboss.logmanager.LogManager</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-proxy-reports</reportsDirectory>
  318. </configuration>
  319. </execution>
  320. <execution>
  321. <id>proxy-ajp</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.ajp>true</test.ajp>
  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-ajp-reports</reportsDirectory>
  342. </configuration>
  343. </execution>
  344. <execution>
  345. <id>proxy-https</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.https>true</test.https>
  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-https-reports</reportsDirectory>
  366. </configuration>
  367. </execution>
  368. <execution>
  369. <id>proxy-h2</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.h2>true</test.h2>
  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-h2-reports</reportsDirectory>
  390. </configuration>
  391. </execution>
  392. <execution>
  393. <id>proxy-h2c</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>true</test.h2c>
  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-reports</reportsDirectory>
  414. </configuration>
  415. </execution>
  416. <execution>
  417. <id>proxy-h2c-upgrade</id>
  418. <phase>test</phase>
  419. <goals>
  420. <goal>test</goal>
  421. </goals>
  422. <configuration>
  423. <enableAssertions>true</enableAssertions>
  424. <runOrder>reversealphabetical</runOrder>
  425. <systemPropertyVariables>
  426. <test.h2c-upgrade>true</test.h2c-upgrade>
  427. <test.dump>${dump}</test.dump>
  428. <test.bufferSize>${bufferSize}</test.bufferSize>
  429. <default.server.address>localhost</default.server.address>
  430. <default.server.port>7777</default.server.port>
  431. <java.util.logging.manager>org.jboss.logmanager.LogManager
  432. </java.util.logging.manager>
  433. <test.level>${test.level}</test.level>
  434. <java.net.preferIPv6Addresses>${test.ipv6}</java.net.preferIPv6Addresses>
  435. <sun.net.useExclusiveBind>false</sun.net.useExclusiveBind>
  436. </systemPropertyVariables>
  437. <reportsDirectory>${project.build.directory}/surefire-h2c-upgrade-reports</reportsDirectory>
  438. </configuration>
  439. </execution>
  440. </executions>
  441. </plugin>
  442. </plugins>
  443. </build>
  444. </profile>
  445. <profile>
  446. <id>jdk9</id>
  447. <activation>
  448. <jdk>9</jdk>
  449. </activation>
  450. <properties>
  451. <java9.sourceDirectory>${project.basedir}/src/main/java9</java9.sourceDirectory>
  452. <java9.build.outputDirectory>${project.build.directory}/classes-java9</java9.build.outputDirectory>
  453. </properties>
  454. <build>
  455. <plugins>
  456. <plugin>
  457. <groupId>org.apache.maven.plugins</groupId>
  458. <artifactId>maven-jar-plugin</artifactId>
  459. <configuration>
  460. <archive>
  461. <manifestEntries>
  462. <Multi-Release>true</Multi-Release>
  463. </manifestEntries>
  464. </archive>
  465. </configuration>
  466. </plugin>
  467. <plugin>
  468. <groupId>org.apache.maven.plugins</groupId>
  469. <artifactId>maven-antrun-plugin</artifactId>
  470. <executions>
  471. <execution>
  472. <id>compile-java9</id>
  473. <phase>compile</phase>
  474. <configuration>
  475. <tasks>
  476. <mkdir dir="${java9.build.outputDirectory}" />
  477. <javac srcdir="${java9.sourceDirectory}"
  478. destdir="${java9.build.outputDirectory}"
  479. classpath="${project.build.outputDirectory}"
  480. includeantruntime="false"
  481. />
  482. </tasks>
  483. </configuration>
  484. <goals>
  485. <goal>run</goal>
  486. </goals>
  487. </execution>
  488. </executions>
  489. </plugin>
  490. <plugin>
  491. <groupId>org.apache.maven.plugins</groupId>
  492. <artifactId>maven-checkstyle-plugin</artifactId>
  493. <executions>
  494. <execution>
  495. <id>check-style</id>
  496. <phase>compile</phase>
  497. <goals>
  498. <goal>checkstyle</goal>
  499. </goals>
  500. </execution>
  501. <execution>
  502. <id>check-style-java9</id>
  503. <phase>compile</phase>
  504. <goals>
  505. <goal>checkstyle</goal>
  506. </goals>
  507. <configuration>
  508. <sourceDirectories>
  509. <sourceDirectory>${java9.sourceDirectory}</sourceDirectory>
  510. </sourceDirectories>
  511. </configuration>
  512. </execution>
  513. </executions>
  514. </plugin>
  515. <plugin>
  516. <groupId>org.apache.maven.plugins</groupId>
  517. <artifactId>maven-resources-plugin</artifactId>
  518. <executions>
  519. <execution>
  520. <id>copy-resources</id>
  521. <phase>prepare-package</phase>
  522. <goals>
  523. <goal>copy-resources</goal>
  524. </goals>
  525. <configuration>
  526. <outputDirectory>${project.build.outputDirectory}/META-INF/versions/9</outputDirectory>
  527. <resources>
  528. <resource>
  529. <directory>${java9.build.outputDirectory}</directory>
  530. <filtering>false</filtering>
  531. </resource>
  532. </resources>
  533. </configuration>
  534. </execution>
  535. </executions>
  536. </plugin>
  537. </plugins>
  538. </build>
  539. </profile>
  540. </profiles>
  541. </project>