Page MenuHomeFreeBSD

[new port]: java/netty-tcnative: mavenized fork of Tomcat Native which incorporates various patches
Needs ReviewPublic

Authored by dvl on Oct 29 2019, 9:23 PM.
This revision needs review, but there are no reviewers specified.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 27264
Build 25528: arc lint + arc unit

Event Timeline

dvl created this revision.Oct 29 2019, 9:23 PM
dvl added a comment.Oct 29 2019, 9:26 PM

Based on https://netty.io/wiki/forked-tomcat-native.html#wiki-h2-7 we need to invoke: mvn clean install

I haven't gotten this to build yet, but when running testport -i, I do this:

root@120R-dvl:~ # cd /wrkdirs/usr/ports/vrt/netty-tcnative/work/netty-tcnative-netty-tcnative-parent-2.0.26.Final/
root@120R-dvl:/wrkdirs/usr/ports/vrt/netty-tcnative/work/netty-tcnative-netty-tcnative-parent-2.0.26.Final # mvn clean install

It finishes with:

[INFO] executing: /bin/sh -c ./autogen.sh
[INFO] auto reconf...
[INFO] ./autogen.sh: autoreconf: not found
[INFO] rc: 127
[INFO] 
[INFO] --- maven-hawtjni-plugin:1.11:build (build-native-lib) @ netty-tcnative ---
Downloading from central: https://repo.maven.apache.org/maven2/io/netty/netty-tcnative/2.0.26.Final/netty-tcnative-2.0.26.Final-native-src.zip
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Netty/TomcatNative [Parent] 2.0.26.Final:
[INFO] 
[INFO] Netty/TomcatNative [Parent] ........................ SUCCESS [ 16.163 s]
[INFO] Netty/TomcatNative [OpenSSL - Dynamic] ............. FAILURE [  3.560 s]
[INFO] Netty/TomcatNative [OpenSSL - Static] .............. SKIPPED
[INFO] Netty/TomcatNative [BoringSSL - Static] ............ SKIPPED
[INFO] Netty/TomcatNative [LibreSSL - Static] ............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  22.537 s
[INFO] Finished at: 2019-10-29T20:41:52Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.fusesource.hawtjni:maven-hawtjni-plugin:1.11:build (build-native-lib) on project netty-tcnative: build failed: org.apache.maven.plugin.MojoExecutionException: Requested download does not exist.: Could not find artifact io.netty:netty-tcnative:zip:native-src:2.0.26.Final in central (https://repo.maven.apache.org/maven2)
[ERROR] 
[ERROR] Try downloading the file manually from the project website.
[ERROR] 
[ERROR] Then, install it using the command: 
[ERROR]     mvn install:install-file -DgroupId=io.netty -DartifactId=netty-tcnative -Dversion=2.0.26.Final -Dclassifier=native-src -Dpackaging=zip -Dfile=/path/to/file
[ERROR] 
[ERROR] Alternatively, if you host your own repository you can deploy the file there: 
[ERROR]     mvn deploy:deploy-file -DgroupId=io.netty -DartifactId=netty-tcnative -Dversion=2.0.26.Final -Dclassifier=native-src -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR] 
[ERROR] 
[ERROR]   io.netty:netty-tcnative:zip:2.0.26.Final
[ERROR] 
[ERROR] from the specified remote repositories:
[ERROR]   sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots, releases=false, snapshots=true),
[ERROR]   central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :netty-tcnative
root@120R-dvl:/wrkdirs/usr/ports/vrt/netty-tcnative/work/netty-tcnative-netty-tcnative-parent-2.0.26.Final #

From here, I am lost and will come back to this tomorrow.

linimon retitled this revision from Create a new port for https://github.com/netty/netty-tcnative to [new port]: java/netty-tcnative: .Oct 30 2019, 2:12 AM
linimon retitled this revision from [new port]: java/netty-tcnative: to [new port]: java/netty-tcnative: mavenized fork of Tomcat Native which incorporates various patches.