1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2014 The Netty Project
~
~ The Netty Project licenses this file to you under the Apache License,
~ version 2.0 (the "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at:
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
~ License for the specific language governing permissions and limitations
~ under the License.
-->
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.netty</groupId>
<artifactId>netty-parent</artifactId>
<version>4.0.29.Final</version>
</parent>
<artifactId>netty-tcnative-parent</artifactId>
<version>2.0.28.Final</version>
<packaging>pom</packaging>
<name>Netty/TomcatNative [Parent]</name>
<url>https://github.com/netty/netty-tcnative/</url>
<description>
A Mavenized fork of Tomcat Native which incorporates various patches
</description>
<scm>
<url>https://github.com/netty/netty-tcnative</url>
<connection>scm:git:git://github.com/netty/netty-tcnative.git</connection>
<developerConnection>scm:git:ssh://git@github.com/netty/netty-tcnative.git</developerConnection>
<tag>netty-tcnative-parent-2.0.28.Final</tag>
</scm>
<properties>
<checkstyle.skip>true</checkstyle.skip>
<enforcer.plugin.version>1.4.1</enforcer.plugin.version>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<netty.build.version>22</netty.build.version>
<animal.sniffer.skip>true</animal.sniffer.skip>
<forceAutogen>false</forceAutogen>
<forceConfigure>false</forceConfigure>
<opensslDynamicDir>../openssl-dynamic</opensslDynamicDir>
<vsStaticTemplateFile>../vs2010.vcxproj.static.template</vsStaticTemplateFile>
<defaultJarFile>${project.build.directory}/${project.build.finalName}.jar</defaultJarFile>
<nativeJarFile>${project.build.directory}/${project.build.finalName}-${os.detected.classifier}.jar</nativeJarFile>
<nativeLibOnlyDir>${project.build.directory}/native-lib-only</nativeLibOnlyDir>
<nativeJarWorkdir>${project.build.directory}/native-jar-work</nativeJarWorkdir>
<aprVersion>1.6.5</aprVersion>
<aprSha256>70dcf9102066a2ff2ffc47e93c289c8e54c95d8dda23b503f9e61bb0cbd2d105</aprSha256>
<boringsslBranch>chromium-stable</boringsslBranch>
<libresslVersion>3.0.2</libresslVersion>
<!--
See https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/SHA256 for the SHA256 signature
-->
<libresslSha256>df7b172bf79b957dd27ef36dcaa1fb162562c0e8999e194aa8c1a3df2f15398e</libresslSha256>
<opensslMinorVersion>1.1.1</opensslMinorVersion>
<opensslPatchVersion>d</opensslPatchVersion>
<opensslVersion>${opensslMinorVersion}${opensslPatchVersion}</opensslVersion>
<opensslSha256>1e3a91bc1f9dfce01af26026f856e064eab4c8ee0a8f457b5ae30b40b8b711f2</opensslSha256>
<aprHome>${project.build.directory}/apr</aprHome>
<aprBuildDir>${project.build.directory}/apr-${aprVersion}</aprBuildDir>
<archBits>64</archBits>
<linkStatic>false</linkStatic>
<sslHome>${project.build.directory}/ssl</sslHome>
<msvcSslIncludeDirs>${sslHome}/include</msvcSslIncludeDirs>
<msvcSslLibDirs>${sslHome}/lib</msvcSslLibDirs>
<msvcSslLibs>libssl.lib;libcrypto.lib</msvcSslLibs>
<strip.skip>false</strip.skip>
<generatedSourcesDir>${project.build.directory}/generated-sources</generatedSourcesDir>
</properties>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<extensions>
<!-- Generate os.detected.classifier property -->
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>1.6.2</version>
</extension>
</extensions>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.fusesource.hawtjni</groupId>
<artifactId>maven-hawtjni-plugin</artifactId>
<version>1.11</version>
</plugin>
<plugin>
<artifactId>maven-scm-plugin</artifactId>
<version>1.9.4</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.4</version>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.9.6</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-commons-net</artifactId>
<version>1.9.6</version>
</dependency>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>1.0b3</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration combine.self="override">
<includes>
<include>**/*Test*.java</include>
<include>**/*Benchmark*.java</include>
</includes>
<excludes>
<exclude>**/Abstract*</exclude>
<exclude>**/*TestUtil*</exclude>
</excludes>
<runOrder>random</runOrder>
<!-- Ensure the whole stacktrace is preserved when an exception is thrown. See https://issues.apache.org/jira/browse/SUREFIRE-1457 -->
<trimStackTrace>false</trimStackTrace>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<!-- Generate the source for a statically-linked modules by copying from the template -->
<execution>
<id>copy-src</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target if="${linkStatic}">
<!-- Copy all of the code from the dynamic module -->
<delete dir="src" quiet="true" />
<mkdir dir="src" />
<copy todir="${generatedSourcesDir}" verbose="true">
<fileset dir="${opensslDynamicDir}/src/main" />
</copy>
<!-- Convert the paths to windows format -->
<pathconvert property="aprHomeWindowsPath" targetos="windows">
<path location="${aprHome}" />
</pathconvert>
<pathconvert property="sslIncludeDirsWindowsPath" targetos="windows">
<path location="${msvcSslIncludeDirs}" />
</pathconvert>
<pathconvert property="sslLibDirsWindowsPath" targetos="windows">
<path location="${msvcSslLibDirs}" />
</pathconvert>
<property name="aprIncludeDir" value="${aprHomeWindowsPath}\include" />
<property name="aprLibDir" value="${aprHomeWindowsPath}\lib" />
<echo message="Setting APR_INCLUDE_DIR=${aprIncludeDir}" />
<echo message="Setting APR_LIB_DIR=${aprLibDir}" />
<echo message="Setting SSL_INCLUDE_DIRS=${sslIncludeDirsWindowsPath}" />
<echo message="Setting SSL_LIB_DIRS=${sslLibDirsWindowsPath}" />
<echo message="Setting SSL_LIBS=${msvcSslLibs}" />
<!-- Copy and filter the template MSVC project -->
<filter token="APR_INCLUDE_DIR" value="${aprIncludeDir}" />
<filter token="APR_LIB_DIR" value="${aprLibDir}" />
<filter token="SSL_INCLUDE_DIRS" value="${sslIncludeDirsWindowsPath}" />
<filter token="SSL_LIB_DIR" value="${sslLibDirsWindowsPath}" />
<filter token="SSL_LIBS" value="${msvcSslLibs}" />
<copy file="${vsStaticTemplateFile}" tofile="${generatedSourcesDir}/native-package/vs2010.vcxproj" filtering="true" overwrite="true" verbose="true" />
</target>
</configuration>
</execution>
<!-- Generate bnd bundle manifest. -->
<execution>
<id>native-manifest</id>
<phase>initialize</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<exportAntProperties>true</exportAntProperties>
<target>
<condition property="tcnative.snippet" value="libnetty_tcnative.so;osname=linux">
<equals arg1="${os.detected.name}" arg2="linux" />
</condition>
<!-- In OSGi specification, the alias of Windows family is win32, case insensitive -->
<condition property="tcnative.snippet" value="netty_tcnative.dll;osname=win32">
<equals arg1="${os.detected.name}" arg2="windows" />
</condition>
<!-- In OSGi specification, the alias of OSX family is macos or macosx, case insensitive -->
<condition property="tcnative.snippet" value="libnetty_tcnative.jnilib;osname=macosx;">
<equals arg1="${os.detected.name}" arg2="osx" />
</condition>
<property name="tcnativeManifest" value="META-INF/native/${tcnative.snippet};processor=${os.detected.arch}" />
<echo message="Bundle-NativeCode: ${tcnativeManifest}" />
</target>
</configuration>
</execution>
</executions>
</plugin>
<!-- This artifact exports the classes whose names are different from the artifactId. -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<executions>
<execution>
<id>generate-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
<configuration>
<supportedProjectTypes>
<supportedProjectType>jar</supportedProjectType>
</supportedProjectTypes>
<instructions>
<Export-Package>io.netty.internal.tcnative.*</Export-Package>
<Bundle-NativeCode>${tcnativeManifest}</Bundle-NativeCode>
</instructions>
</configuration>
</execution>
</executions>
</plugin>
<!-- Override the parent POM's configuration -->
<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<!-- Specifying a profile here will disable the all profile, since it's activeByDefault -->
<arguments>-Prestricted-release,sonatype-oss-release -DmoduleSelector=none</arguments>
<tagNameFormat>@{project.artifactId}-@{project.version}</tagNameFormat>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${enforcer.plugin.version}</version>
<executions>
<execution>
<id>enforce-tools</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>[3.1.1,)</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-build</artifactId>
<version>${netty.build.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>disable-autogen-windows</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
</profile>
<!-- Build the static APR library -->
<profile>
<id>build-apr-windows</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>source-apr</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target if="${linkStatic}">
<!-- Add the ant tasks from ant-contrib -->
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
<if>
<available file="${aprBuildDir}" />
<then>
<echo message="APR was already downloaded, skipping the build step." />
</then>
<else>
<echo message="Downloading APR" />
<property name="aprArchiveFile" value="apr-${aprVersion}-win32-src.zip" />
<get src="http://archive.apache.org/dist/apr/${aprArchiveFile}" dest="${project.build.directory}/${aprArchiveFile}" verbose="on" />
<unzip src="${project.build.directory}/${aprArchiveFile}" dest="${project.build.directory}" />
<condition property="windowsRelease" value="Win32 Release" else="x64 Release">
<equals arg1="${archBits}" arg2="32" />
</condition>
</else>
</if>
</target>
</configuration>
</execution>
<execution>
<id>build-apr</id>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target if="${linkStatic}">
<!-- Add the ant tasks from ant-contrib -->
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
<if>
<available file="${aprHome}" />
<then>
<echo message="APR was already build, skipping the build step." />
</then>
<else>
<echo message="Building APR" />
<condition property="windowsRelease" value="Win32 Release" else="x64 Release">
<equals arg1="${archBits}" arg2="32" />
</condition>
<echo message="archBits=${archBits}. Using windowsRelease=${windowsRelease}" />
<!-- On Windows, force building APR with /MT for static linking -->
<replace dir="${aprBuildDir}" token="/MD" value="/MT">
<include name="*.mak" />
</replace>
<retry retrycount="3">
<exec executable="nmake" failonerror="true" dir="${aprBuildDir}" resolveexecutable="true">
<arg line="/f Makefile.win ARCH="${windowsRelease}" PREFIX=..\apr buildall install" />
</exec>
</retry>
<copy todir="${aprHome}/include">
<fileset dir="${aprBuildDir}/include/arch/win32" includes="*.h" />
</copy>
<copy todir="${aprHome}">
<fileset dir="${aprBuildDir}/include/arch" includes="*.h" />
</copy>
</else>
</if>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>build-apr-linux-mac</id>
<activation>
<os>
<family>!windows</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>source-apr-linux-mac</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target if="${linkStatic}">
<!-- Add the ant tasks from ant-contrib -->
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
<if>
<available file="${aprBuildDir}" />
<then>
<echo message="APR was already downloaded, skipping the build step." />
</then>
<else>
<echo message="Downloading and unpacking APR" />
<property name="aprTarGzFile" value="apr-${aprVersion}.tar.gz" />
<property name="aprTarFile" value="apr-${aprVersion}.tar" />
<get src="http://archive.apache.org/dist/apr/${aprTarGzFile}" dest="${project.build.directory}/${aprTarGzFile}" verbose="on" />
<checksum file="${project.build.directory}/${aprTarGzFile}" algorithm="SHA-256" property="${aprSha256}" verifyProperty="isEqual" />
<gunzip src="${project.build.directory}/${aprTarGzFile}" dest="${project.build.directory}" />
<!-- Use the tar command (rather than the untar ant task) in order to preserve file permissions. -->
<exec executable="tar" failonerror="true" dir="${project.build.directory}/" resolveexecutable="true">
<arg line="xfvz ${aprTarGzFile}" />
</exec>
</else>
</if>
</target>
</configuration>
</execution>
<execution>
<id>build-apr-linux-mac</id>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target if="${linkStatic}">
<!-- Add the ant tasks from ant-contrib -->
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
<if>
<available file="${aprHome}" />
<then>
<echo message="APR was already build, skipping the build step." />
</then>
<else>
<echo message="Building APR" />
<mkdir dir="${aprHome}" />
<exec executable="configure" failonerror="true" dir="${aprBuildDir}" resolveexecutable="true">
<arg line="--disable-shared --prefix=${aprHome} CFLAGS='-O3 -fno-omit-frame-pointer -fPIC'" />
</exec>
<exec executable="make" failonerror="true" dir="${aprBuildDir}" resolveexecutable="true" />
<exec executable="make" failonerror="true" dir="${aprBuildDir}" resolveexecutable="true">
<arg line="install" />
</exec>
</else>
</if>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!--
netty-tcnative must be released from RHEL 6.6 x86_64 or compatible so that:
1) we ship x86_64 version of epoll transport officially, and
2) we ensure the ABI compatibility with older GLIBC versions.
The shared library built on a distribution with newer GLIBC
will not run on older distributions.
-->
<profile>
<id>restricted-release</id>
<build>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-release-environment</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<!-- Enforce JDK 1.8+ for compilation. -->
<!-- This is needed because of java.util.zip.Deflater and NIO UDP multicast. -->
<version>[1.8.0,)</version>
</requireJavaVersion>
<requireProperty>
<regexMessage>
Release process must be performed on linux-x86_64.
</regexMessage>
<property>os.detected.classifier</property>
<regex>^linux-x86_64$</regex>
</requireProperty>
<requireFilesContent>
<message>
Release process must be performed on RHEL 6.8 or its derivatives.
</message>
<files>
<file>/etc/redhat-release</file>
</files>
<content>release 6.</content>
</requireFilesContent>
</rules>
</configuration>
</execution>
</executions>
<dependencies>
<!-- Provides the 'requireFilesContent' enforcer rule. -->
<dependency>
<groupId>com.ceilfors.maven.plugin</groupId>
<artifactId>enforcer-rules</artifactId>
<version>1.2.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<modules>
<!-- When doing a release we only want to deploy dynamic openssl version and the static boring one. -->
<module>openssl-dynamic</module>
<module>boringssl-static</module>
</modules>
</profile>
<!--
Profile for building all modules. This is enabled by default so if any profile is manually specified,
this will be disabled automatically.
-->
<profile>
<id>all</id>
<activation>
<property>
<name>!moduleSelector</name>
</property>
</activation>
<modules>
<module>openssl-dynamic</module>
<module>openssl-static</module>
<module>boringssl-static</module>
<module>libressl-static</module>
</modules>
</profile>
<profile>
<id>java9</id>
<activation>
<jdk>9</jdk>
</activation>
<properties>
<!-- Needed because of https://issues.apache.org/jira/browse/MENFORCER-275 -->
<enforcer.plugin.version>3.0.0-M1</enforcer.plugin.version>
</properties>
</profile>
<profile>
<id>java10</id>
<activation>
<jdk>10</jdk>
</activation>
<properties>
<!-- Needed because of https://issues.apache.org/jira/browse/MENFORCER-275 -->
<enforcer.plugin.version>3.0.0-M1</enforcer.plugin.version>
</properties>
</profile>
<profile>
<id>java11</id>
<activation>
<jdk>11</jdk>
</activation>
<properties>
<!-- Needed because of https://issues.apache.org/jira/browse/MENFORCER-275 -->
<enforcer.plugin.version>3.0.0-M1</enforcer.plugin.version>
</properties>
</profile>
<profile>
<id>java12</id>
<activation>
<jdk>12</jdk>
</activation>
<properties>
<!-- Needed because of https://issues.apache.org/jira/browse/MENFORCER-275 -->
<enforcer.plugin.version>3.0.0-M1</enforcer.plugin.version>
<!-- This is the minimum supported by Java12 -->
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
</profile>
</profiles>
</project>
|